Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

selection screen


In My report,

I have 2 fileds 1st is material group and 2nd is material number.

I want

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.



Former Member
Former Member replied

Hi Kumar,

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
      dyname             = sy-cprog
      dynumb             = sy-dynnr
      translate_to_upper = 'X'
      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_.....

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question