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: 

Validate matnr with sold to party in VA01

0 Kudos

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

7 REPLIES 7

VeselinaPeykova
Active Contributor

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.

former_member183501
Active Contributor
0 Kudos

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

former_member183501
Active Contributor
0 Kudos

Hi Madam,

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

Could you please tell what are these three ways?

VeselinaPeykova
Active Contributor

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).

former_member183501
Active Contributor
0 Kudos

Yes CMIR is also an option.

Thanks!

0 Kudos

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.

former_member564522
Active Participant
0 Kudos

Hi Khusboo,

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