‎2006 Oct 11 2:27 PM
hello,
Iam creating a material master using a selection screen and I need to have a screen validation before I pass on this data to MM01..The validations requires are with material group and Valuation class, plant-Storage Location,Plant-mrp controller..How do I do this..Can anyone help on this please..
Thanks
Vicky
‎2006 Oct 11 2:55 PM
i don't really understand your Problem.
do you mean you want to check the entries on the selection-screen before the program starts ?
‎2006 Oct 11 3:00 PM
‎2006 Oct 11 3:07 PM
Hi
It's not really clear which validations you need, anyway you have to insert in AT SELECTION-SCREEN event.
Max
‎2006 Oct 11 3:12 PM
Yes, But is ther any fm to check on the plant the MRP controller and material group-Valuation Class..
Thanks
Vicky
‎2006 Oct 11 3:14 PM
In the AT SELECTION SCREEN event you will do the selection screen validation.
For example if you want to validate if the user entered value on selection screen for Material group , then goto check table for material group (T023 table) and validate...
SELECTION SCREEN
PARAMETER : P_MATKL LIKE T023-MATKL.
SELECT SINGLE MATKL INTO V_MATKL FROM T023
WHERE MATKL = P_MATKL.
IF SY-SUBRC <> 0.
MESSAGE E001. " Invalid Material Group
ENDIF.
similarly do for other fields too.
Hope this helps.