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: 

User Exit for correct ship-to Party while Creating Sales Order

Former Member
0 Kudos

Dear Friends,

Pls let me know which User Exit should I use to validate the Ship-to Party on the basis of Sold-to Party, while creating a sales order.

In other words we wish to make sure that the user gives the correct Ship-to party corresponding to the Sold-to party, while creating a sales order.

Regards,

Alok.

7 REPLIES 7

former_member181995
Active Contributor
0 Kudos

Check in Exit:mv45afzz

FORM USEREXIT_FIELD_MODIFICATION.

Amit.

former_member262988
Active Contributor
0 Kudos

hi,

use this V45A0002 EXIT_SAPMV45A_002

0 Kudos

Friends,

Thanks for your kind replies, but I am confused as there are two different relies suggesting two different Exits.

Can you please be kind enough to give me the code (logic) that I shall have to write in there.

regards,

alok.

Former Member
0 Kudos

Hi Alok,

SAP automatically validates the correct ship-to-party for sold-to-party while creating a sales order.

Thanks,

Naveen Kumar.

0 Kudos

Dear Naveen,

Thanks for replying.

I do agree with you that SAP may validate the Ship-to Party in accordance with the Sold-to Party. But still the user may change that Ship-to Party value and save the Sales Order with a wrong Ship-to Party.

Here, my user wants a check/validation that no one should be able to save the sales order with wrong Ship-to Party other than the ones defined in Customer Master.

Hope you got the issue now.

Regards and thanks once again,

Alok.

0 Kudos

hey alok,

As far as i know , sap itself checks in the customer master and does not allow you to enter wrong addresses, have you tried entering wrong Ship to part address.

anyways you can write the code in MV45AFZZ, you need an access key to write the code here, The structures vbak and vbap flow here, what i had suggest is put a debug point over there and see how you can map this data . you can use vbak directly to do your validations.

If you are doing a validation , i had suggest you to write the code in the form save_document

regards,

RK

Former Member
0 Kudos