How to use Value-Request on Screen Field
I m facing a problem .. the scenario is i have to limit search help on Screen 100 field . but the following line is not working
AT SELECTION-SCREEN ON help-REQUEST FOR wa-soffice.
kindly help me out
Suhas Saha replied
Assuming you made the corrections as mentioned by Marcin & values are populated successfully in VALUES_TAB. You should try making these changes to the function call & check :
DATA: IT_RET LIKE DDSHRETVAL OCCURS 0 WITH header line. "-->Add the Return Table CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'VKBUR' "--> This should be the field of VALUES_TAB which should be returned to RETURN_TAB dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'WA-SOFFICE' value_org = 'S' TABLES value_tab = values_tab. RETURN_TAB = it_ret. "You have to use RETURN_TAB to get the value back to the screen field