Application Development 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: 

Exit or BADI for Matreial group

Former Member
0 Kudos

Hi,

I have a reqmt in Material Master, when we are creating Material and navigating to the sceond screen there we are giving Material Group.

So the Material Group we have maintained are old and new.

Old Material Groups will be having ~ symbol in front of Material group description

New Material Group will be normal in description.

Requirement is -

A user should receive an error message if the try to select a material group that has a ~ in the 1st pos. of the material description. For example, user should not be able to choose any of the following material groups.

Pls suggest me which exit or BADI do i need ot use and how(code snippet)

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

Check out the BADI using SE18 transaction. It has a CHECK_DATA method in the IF_EX_BADI_MATERIAL_CHECK interface.

You can implement this BADI, using SE19 transaction.

In the CHECK_DATA method, you have to use the WMARA importing parameter. Here in the MATKL field, you'll find the material group's code.

With this code give a SELECT on the T023T table for the description.

If the description is not correct, then give a MESSAGE E type error message.

Regards

Tamá

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi you can use badi BADI_MATERIAL_CHECK method check_data.

0 Kudos

Hi,

Thank you for the reply.

Could you pls help me out in using this BADI.

Thanks

Former Member
0 Kudos

Hi!

Check out the BADI using SE18 transaction. It has a CHECK_DATA method in the IF_EX_BADI_MATERIAL_CHECK interface.

You can implement this BADI, using SE19 transaction.

In the CHECK_DATA method, you have to use the WMARA importing parameter. Here in the MATKL field, you'll find the material group's code.

With this code give a SELECT on the T023T table for the description.

If the description is not correct, then give a MESSAGE E type error message.

Regards

Tamá