Skip to Content

Link sales order to contract after creation

Jan 30 at 07:49 PM


avatar image

Hi SAP Gurus ,

Objectives or problem statements:

  1. Is it possible to create a sales order (without reference to a contract). And after creation, link it to a value contract without customization?
  2. Is it possible to add line items to an order created with reference to a value contract and make sure that the new line item is also linked to the contract ?


  • We are trying to implement sales order creation with respect to contracts for make-to-order scenario.
  • Business stakeholders currently upload sales orders (without reference to contract) using a mass upload tool from excel (using Winshuttle )
  • If we move to order creation with reference to contract then it might become challenging to perform order uploads using Winshuttle --- which means more data entry work


1. My first objective is the best case scenario where we would be able to create sales orders like we do now(without reference to contract) and then simply link it to contract after with another Winshuttle script.

2. If I cannot achieve objective 1 then I would like creating a sales order with reference to the contract and then add line items to the sales order after with Winshuttle. This option is only valid if the line items I add later will also be linked to the contract reference in the sales document header --(VBAK-VGBEL). The challenge i have found in doing this in our quality system is that the new items do not show the conract as preceding document in VBFA-VBELN field

Thanks for taking the time to try and help me out !

Cheers !


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

G Lakshmipathi
Jan 31 at 08:22 AM

It is always go with Best Practice rather doing some customization or changing the logic in interface. Whatever be the interface you use, better try to go with standard SAP functionality which means, it is better to create a contract first followed by a sale order. Might be a one time exercise from interface point of view to change the logic / coding but once it is done, SAP will take care of the subsequent activities

10 |10000 characters needed characters left characters exceeded
Mohammed Shoeb Jan 31 at 05:29 AM

If you want to link any SO to contract after SO is already created goto VA02 and open your order in change mode.

in sales order goto tab "Edit" -> Assign Contract and here you can assign a contract to SO.

However your items in SO should also be present in Contract.

10 |10000 characters needed characters left characters exceeded