07-23-2010 12:02 PM
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)
07-23-2010 1:59 PM
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á
07-23-2010 12:18 PM
07-23-2010 12:51 PM
Hi,
Thank you for the reply.
Could you pls help me out in using this BADI.
Thanks
07-23-2010 1:59 PM
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á