Hi Poornanand,
I have created an internal table (IT_1)with only one feild 'MNO' to store material number.
the internal table is populated with material numbers from 1 to 100.
In the selection screen i have a parameter(MATNR) to select the material numbers , i want to display the material numbers in this internal table.
I am using AT SELECTION-SCREEN ON VALUES-REQUEST MATNR.
I have read the doucmentation and on trying it out , i get the message 'NO VALUES SELECTED'.
Kindly help me to solve this problem.
Regards
Arun
Hi Arun,
The Function Module that you specified provides an F4 help that returns the values that have selected in an internal table.
This FM(Function Module) is quite useful when you are programming your own F4 help for a field.
the following example may be of some help to you:
DATA: lf_repid LIKE sy-repid,
lf_dynnr LIKE sy-dynnr,
lf_dynprofield LIKE help_info-dynprofld,
lf_retfield LIKE dfies-fieldname.
MOVE sy-repid TO lf_repid.
MOVE sy-dynnr TO lf_dynnr.
MOVE 'PA_DPROF' TO lf_dynprofield.
MOVE 'PROFILNAME' TO lf_retfield.
PERFORM prepare_gt_value_tab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = lf_retfield
dynpprog = lf_repid
dynpnr = lf_dynnr
dynprofield = lf_dynprofield
value_org = 'S'
TABLES
value_tab = it_value_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
I hope this helps.
Hafeez
Add a comment