‎2006 Jun 05 7:41 AM
How to get the dropdown list values in Screen painter.
Regards,
MARK K
‎2006 Jun 05 7:47 AM
Hello Mark,
U can assign search help in the screen painter for the field. Go to screen painter click on the field which should have this feature and goto dict attribute, here in searc help u can connect.
Alternatively if you are building ur custom program then u can use event PROCESS ON VALUE-REQUEST and process the search help.
‎2006 Jun 05 7:52 AM
Hi,
check this demo program
DEMO_DROPDOWN_LIST_BOX
DEMO_DYNPRO_DROPDOWN_LISTBOX
rgds,
latheesh
‎2006 Jun 05 8:01 AM
Hi,
Go to screen painter SE51 click on the field which should have this feature and goto dict attribute, here in search help u can connect. Other wise Create Search Help in SE11 assignt it to Screen name field.
Alternatively if you are building ur custom program then u can use event PROCESS ON VALUE-REQUEST and process the search help.
Otherwise...
call
DATA : BEGIN OF it_zmto_reason OCCURS 0,
reason LIKE zmto_reason-reason ,
descr LIKE zmto_reason-descr,
END OF it_zmto_reason.
DATA : iddshretval LIKE ddshretval OCCURS 0 WITH HEADER LINE.
Read ur Table into internal table...
SELECT reason descr FROM zmto_reason
INTO TABLE it_zmto_reason
WHERE doctype = 'DIN'.
for which sel field ur want call FM...
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'REASON'
dynpprog = 'SAPMZDIN'
dynpnr = sy-dynnr
dynprofield = 'IDINDTL-REASONCD'
value_org = 'S'
TABLES
value_tab = it_zmto_reason
RETURN_TAB = IDDSHRETVAL
.
Hope it would solve ur purpose...
Kindly rewards points....