Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dropdown Box

I created a dropdown box.I selected some values from table.When I select the displayed values of that list it disappears immediately.What to do to retain that vllaue selected?

REPORT ZEX_DROPDOWN_LIST MESSAGE-ID ZGENERAL.

TABLES SPFLI.

DATA: BEGIN OF ITAB OCCURS 0,

CARRID LIKE SPFLI-CARRID,

CONNID LIKE SPFLI-CONNID,

END OF ITAB.

DATA ok_code TYPE sy-ucomm.

START-OF-SELECTION.

CALL SCREEN 0200.

&----


*& Module USER_COMMAND_0200 INPUT

&----


  • text

----


MODULE USER_COMMAND_0200 INPUT.

*OK_CODE = SY-UCOMM.

CASE ok_code.

WHEN 'OUTPUT'.

MESSAGE i005.

WHEN 'CANCEL'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0200 INPUT

&----


*& Module create_dropdown_box INPUT

&----


  • text

----


MODULE create_dropdown_box INPUT.

SELECT carrid cONNID

FROM sPFLI

INTO CORRESPONDING FIELDS OF TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'CARRID'

value_org = 'S'

TABLES

value_tab = itab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

...

ENDIF.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question