In My report,
I have 2 fileds 1st is material group and 2nd is material number.
If I select the any material group in material group field,
I want in F4 ,all the material and its description under that group and material type will be FERT .
How can I do it.
I think i clearly understood your requirement as follows...
If you select a particular Material Group, you need only that group Material num ber and its description in your Material Number field. Right?
Fo this you need to dynamically read the value of Material Group Field. For this you can make use of the FM - DYNP_VALUES_READ.
How to use this FM.
CLEAR: field_value. REFRESH dynpro_values. field_value-fieldname ='<Material Group>'. APPEND field_value TO dynpro_values. * FM to Dynamically Read Values From Selection Screen Fields CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = dynpro_values. *To Read the Dynamic Value. READ TABLE dynpro_values INDEX 1 INTO field_value.
After this you can write a querry with a where condition using the above fetched Material Group. Then use that FM for Search Help -- F4_IF_.....