Start of Content Area

Procedure documentation Using Dropdown Boxes  Locate the document in its SAP Library structure

Use

In addition to using tables, as described in Configuring the Front-End and Adding Tables, you can incorporate dropdown boxes in the user interfaces of your applications.

The values from the dropdown list are not transferred to the back-end, but key values that reference the related actual values in the back-end are.

Procedure

...

       1.      Create a dropdown element in the layout.

       2.      Create a context attribute underneath the VCDATA node in the context for your application.

       3.      Create an event handler for the dropdown box.

The value of the event is in a context variable that is filled during the INIT action. INIT is always called before the view is displayed.

       4.      You should use the HRXSS_SER_VALUE_SET structure in the back-end, which corresponds to the context attribute of the front-end.

The structure contains the columns VSKEY and VSVALUE. VSKEY contains the technical attribute that is used by the application. VSVALUE contains the value that is displayed on the user interface.

       5.      In the class that implements the interface, create a variable of the type HRXSS_SER_VALUE_SET.

 

End of Content Area