Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validation

Former Member
0 Likes
717

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

5 REPLIES 5
Read only

Former Member
0 Likes
660

i don't really understand your Problem.

do you mean you want to check the entries on the selection-screen before the program starts ?

Read only

0 Likes
660

yes

Read only

0 Likes
660

Hi

It's not really clear which validations you need, anyway you have to insert in AT SELECTION-SCREEN event.

Max

Read only

0 Likes
660

Yes, But is ther any fm to check on the plant the MRP controller and material group-Valuation Class..

Thanks

Vicky

Read only

0 Likes
660

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.