‎2008 Feb 20 3:48 PM
Hi All,
in a Module Pool Program i have created a screen where
a table control is there .in that i am displaying 1 field
as a dropdown list ( listbox ). now i want to populate the values
in it.
Pls tell me how can i do it.
‎2008 Feb 20 3:51 PM
Hello,
Check the demo report.
RSDEMO_TABLE_CONTROL
Cheers,
Vasanth
‎2008 Feb 20 3:56 PM
check...
RSDEMO_TABLE_CONTROL
This program gives values in list box in the first field...
‎2008 Feb 21 10:28 AM
hi,
u need to take that field as list box and write this after PAI in screen flow logic...
PROCESS ON VALUE-REQUEST.
FIELD itab1-xblnr MODULE bill_drop.
MODULE bill_drop INPUT.
CLEAR itab1.
REFRESH itab1.
itab1-xblnr = '5105600513'.
APPEND itab1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'XBLNR'
value_org = 'S'
TABLES
value_tab = itab1.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDMODULE. " bill_drop INPUT
DATA : BEGIN OF itab1 OCCURS 0,
xblnr LIKE rbkp-xblnr, "Bill Number
END OF itab1.
I have made table control from internal table itab but first field which is listbox is itab1-xblnr in table control...
reward if usefull...