cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent overwriting Sales Office at VA02 when changing Sold-to-party

Former Member
0 Kudos

Hello,

in the scenario where Sold-to-party is changed to another in Sales Order with VA02, the Sales Office value from Customer master overwrites the value given previously at Sales Order, is there any way to prevent this?

Logically this doesn't make any sense, since when creating a new order with VA01, this overwriting doesn't take place.

Any tips in form of e.g. customizing or enhancements is welcome!

Thanks,

LK

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos
where Sold-to-party is changed to another in Sales Order with VA02,

Surprising to note that you could change the sold to party. The standard behaviour is that once sale order is created and saved, sold to party field will become uneditable.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi,

As you know we can assign only one sales office to the sold to party in the master data.

So if you are changing the sold to party in the sales order then it will change the sales office also.

Because it gets the sales office from the master data.

If you want that this should not be changed when try out the user exist or by changing the data transfer routine in the copy control.

One doubt I have are you trying to say that sales office is changing automatically in VA02?

Regards

Raj.

Former Member
0 Kudos

Hi,

exactly that is what I mean:

why does this Sales Office change automatically on the Sales order when you change a Sold-to-party from C1->C2, even overwrites with a blanc value from customer master, but doesn't overwrite when creating a Sales order?

The scenario doesn't make any sense.

I don't see how copy control could influence this, this happens just when editing Sales order without any references.

br

LK

Former Member
0 Kudos

HI Der,

First Of all copy controls has got nothing to do with this.

Cuz ur not creating any orders with reference to another order., Here you are simply changing the sold to party.

if ur changing the sold to party in the sales order from C1 --> C2 obviously what ever sales office that has been assigned in C2 will be seen in the sales order.

if you can be more clear in what your requirement is ? exactly

any one will be able to clarify ur doubt.

regards

Former Member
0 Kudos

HI

you can use USEREXIT_CHECK_VBAK under program MV45AFZZ, here you can write piece of code such that, if you are changing customer through VA01 sales office will not change.

Former Member
0 Kudos

Hi

In my view, once you save the Sales order, system should not allow you anymore to change the Sold-to-Party especially, beacuse SP is unique & not changeable for a Sales order in standard SAP and this is logical also.

Secondly, ifyou have made the SP changeble in the Partner determination Procedure and before saving the Sales order you have changed the Sold-to-party then system will take the appropriate Sales office.

Suppose, your Sold-to-party initially was C1.

Let's say Customer C1 is available in Sales area 1000/10/00 only.

Now, suppose you are changing the SP from C1 to C2, whereas C2 is available in Sales area 1000/20/00 only.

In this case system will take the Sales office which has been assigned to Sales area 1000/20/00.

If you need one particular Sales office system should take irrespective of any Sold-to-Party, then first you assign the required Sales office to all your Sales areas.

Then, ask your ABAPer to write a program that system will take that particular Sales office irrespective of any Sold-to-party and irrespective of any number of Sales offices assigned to the Sales area.