Code: Alles auswählen.
call function 'VRM_SET_VALUES'
EXPORTING id = 'DY_GEB'
values = geb_values[].
Code: Alles auswählen.
TYPES: BEGIN OF ty_geb,
geb(4) TYPE c,
name(4) TYPE c,
END OF ty_geb.
DATA: t_geb TYPE STANDARD TABLE OF ty_geb WITH HEADER LINE,
dy_geb(4) TYPE c.
Code: Alles auswählen.
MODULE create_dropdown_box INPUT.
t_geb-name = 'B799'.
t_geb-geb = 'B799'.
APPEND t_geb.
t_geb-name = 'C517'.
t_geb-geb = 'C517'.
APPEND t_geb.
t_geb-name = 'D765'.
t_geb-geb = 'D765'.
APPEND t_geb.
t_geb-name = 'D465'.
t_geb-geb = 'D465'.
APPEND t_geb.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'GEB'
value_org = 'S'
TABLES
value_tab = t_geb
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
ENDMODULE.
Code: Alles auswählen.
PROCESS ON VALUE-REQUEST.
FIELD dy_geb MODULE create_dropdown_box.