Monday, 24 April 2017

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:
  • VBAPKOZ
  • VBAPKOZX
  • BAPE_VBAP
  • BAPE_VBAPX
  • VBAPKOM
  • VBAPKOMX
SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

Step 2:

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

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

Step 3: 

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

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

Step 4:

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

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

Step 5: 

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

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material

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.

SD (Sales and Distribution), SAP All Module, Tutorial and Certification, SAP Live, SAP Material
SAP Online Guides, Tutorials, Materials and Certifications.

Related Posts

1 comment:

  1. Thanks for sharing article about SAP OTC Process: BAPI Sales Order Create Extensions as i got for more information about various steps involved to create Sales orders with customer extensions.
    Visit now SAP SD Online Training in Hyderabad if you are looking to learn SAP SD skills.


    ReplyDelete