cancel
Showing results for 
Search instead for 
Did you mean: 

Changing of sold to party in sales order

Former Member
0 Kudos

hello friends,

User created a quantity contract for a party.With reference to contract  sales order created and all the data copied from contract to order with sold to party in uneditable mode.Now user deleted all the line item in the sales order and sold to party become editable and user change the sold to party and again enter the line items in order.

How to stop this??

Reagrds

Accepted Solutions (0)

Answers (3)

Answers (3)

andrea_brusarestelletti
Active Contributor
0 Kudos

Hello,

  using Sales Order's user exit, for instance USEREXIT_CHECK_VBAK, you can try to check that if the Sold-to-Party of the Sales order is different from the Sold-To-party of the contract, an error message is issued. Since the latter is created with reference to the former, you should have on-line all the data required. You can control that also with the USEREXIT_SAVE_DOCUMENT_PREPARE.

Best regards,

Andrea

Lakshmipathi
Active Contributor
0 Kudos

If standard routine 001 is assigned at header level in VTAA for the field "Copying requirements", I dont think, this is possible even if users deletes the line item.  Check any user exit is causing the issue.

G. Lakshmipathi

former_member187610
Active Participant
0 Kudos

Hi Sachin,

Are you trying to control the user from deleting the line item from Sales Order or editing the Sold to Party?

We could restrict this by setting authorization to user.

Regards,

Sharan