Skip to Content
Author's profile photo mohsin syed

SAP OTC Process – BAPI Sales Order Create Extension- Part 2

In Part 1 of SAP OTC Process, I discussed a demonstration for Creating Quotations with Extensions. In this part I am going to create Sales orders with customer extensions.

The process which i used is the same as in the Part 1, however there are certain considerations and customization which need to be considered for creating sales order based on customer requirements. In a usual process Sales Orders are created in response to a quotation.

Step 1 :

Same structures are adjusted for the custom fields as i did in Part 1 and they are :

  1. VBAPKOZ
  2. VBAPKOZX
  3. BAPE_VBAP
  4. BAPE_VBAPX
  5. VBAPKOM
  6. VBAPKOMX

 

Step 2 :

After adding custom fields , next we need to fill up the required tables using the function module BAPISDORDER_GETDETAILEDLIST

 

Step 3: 

Next is again filling up the extension Container as discussed previously.

 

Step 4:

Now the function module Call for creating the sales order is will be done:

 

Step 5: Check if we get values in lv_new_sales_document_type and in ext_cont for the custom fields.

 

 

 

The function module has returned new Sales Order number as mentioned above, and ext container is filled with the custom field values .

 

STEP 6: 

Now we check the VBAP table with new created sales order number to check if custom fields are updated.

 

 

 

 

 

 

 

 

 

 

 

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mansoor Ahmed
      Mansoor Ahmed

      Link is broken.. Please correct:

       

      https://blogs.sap.com/2017/04/16/sap-otc-process-bapi-quotation-create-extension-part-1/

      Author's profile photo mohsin syed
      mohsin syed
      Blog Post Author

      Hi Mansoor

      Links are active , please check and let me know if you still find issues.

      thank you