Hi All,
I have a requirement wherein i have 2 parameter fields on the selection screen, Matnr and Maktx.
Both these fields have search help attached to it.
I have to select a value through a search help for Matnr field, which i have completed.
Now in the secrh help of Maktx i should get the Matnr value selected and its corresponding Desciption only. The search help of Maktx should not show any other values and descriptions at all except for the Value selected in Matnr.
The Database table and the search help used is of Z type.
How do i go about doing this? I am posting how much of the code i have written.
******Data Declaration
DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
******Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK block0 WITH FRAME TITLE text-000.
PARAMETERS: v_matnr TYPE matnr.
PARAMETERS: v_maktx TYPE maktx.
SELECTION-SCREEN END OF BLOCK block0.
******At Selection-screen on value-request.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR v_matnr.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'ZMAT_DESC'
fieldname = 'MATNR'
searchhelp = 'ZDESC1'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'V_MATNR'
callback_program = sy-repid
TABLES
return_tab = return
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
Regards,
Darpana.