When we are dealing with plants and storage locations, clients usually ask for requirement where they enter the material number in the material number field, and for the plant and storage location fields they ask for F4 help such that it will only show details related to that particular material number only.
When we enter a particular material number, the plant field F4 help is supposed to show only the plants to which this material is assigned to and when plant is entered the storage location field F4 help is supposed to show only the storage locations linked.
For this there are two simple function modules.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS. “ plant
CALL FUNCTION 'EINGABEWERTE_WERK'
EXPORTING
KZALL = ' '
KZBEW_WERK = ' '
MATNR = p_matnr “ pass material number
IMPORTING
WERKS = p_werks. “ give the plant field name here for having F4 help on that field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LGORT.
CALL FUNCTION 'EINGABEWERTE_LGORT'
EXPORTING
KZALL = ' '
MATNR = p_matnr “ pass material number
WERKS = p_werks “ pass plant
IMPORTING
LAGERORT = p_lgort “ give storage location field name here for having F4 help on that field
WERKS = p_werks. “ give plant field name
Thus we can get only values matching the criteria.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |