Skip to Content
-3

Validate matnr with sold to party in VA01

Apr 07 at 04:14 PM

44

avatar image

Hi,

I need to pass error message in VA01 when we enter sold to party and material in the trasaction, it will vaildate with the ztable with the combination of sold to party and matnr is present in Ztable or not. If the combination mismatch then it will throw message in VA01.

please suggest.

Thanks in advance.

Regards,

Khusboo

10 |10000 characters needed characters left characters exceeded

Why do you need a z-table and custom code when the same outcome can be easily achieved with standard configuration and master data maintenance?

I would suggest that you discuss first with the functional consultant why none of the possible options via configuration + master data maintenance are not feasible (there are at least 3 ways to do that with zero development effort).

If it is really unavoidable to resort to development - it makes sense to explain in your question what you have tried so far and at which point exactly you face problems, add code samples, show errors etc.

1

Hi Madam,

there are at least 3 ways to do that with zero development effort

Could you please tell what are these three ways?

0

I was thinking of listing, exclusion and CMIR (the last one is not a good approach, but I have seen it used for such purposes as well).

1

Yes CMIR is also an option.

Thanks!

0

Hi,

Would you please explain the business requirement ?

Material Listing & Exclusion is already available in the standard system to meet such requirement, then why to go for zee Table?

Regards

Kamlesh

0
Kamlesh Kumar Arya

the requirement is like I need to throw a message whenever we enter material in line item in va01 , it will validate the material with the sold to party from the z table and if the combination of sold to party and material is not present it should throw a message.I tried doing change in user exit mv45afzz but its not hittng the include userexit_save_document_prepare.

please guide.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Himanshu Gupta
Apr 09 at 05:39 AM
0

Hi Khusboo,

You can use USEREXIT_SAVE_DOCUMENT_PREPARE of program SAPMV45A to validate your requirement before Save.

Share
10 |10000 characters needed characters left characters exceeded