Skip to Content
author's profile photo Former Member
Former Member

Sales order


(1) I have a BOM material , I enter it in VA01 --> It breaks down into header + 3 components on its own in VA01.

(2) I need to simulate the same through BAPI, therefore I first explode BOM using CS_BOM_EXPL_MAT_V2, then I call BAPI_SALESORDER_CREATFROMDAT2 with the following parameters

In ORDER_ITEMS_IN I pass header + components (ORDER_ITEMS_IN -HG_LV_ITEM for components has header number of 10)

In ORDER_SCHEDULES_IN I pass quantity of header + components.

Sales order does not get created, I need that the sales order gets created from BAPI, then I check BAPI, it returns a SO number but if I go to transaction va03, I get the message

SD document 100044538 does not exist

Message no. V1 302


This message is issued if no document header (VBAK) can be found for a SD

individual requirements record (VBBE) (inconsistency in R/3).

System response

During the initial supply of sales order, the following error message

occurs 'Document xxxxxx does not exist' V1 302.


If the error occurs during the inital supply of data in APO, there is an

inconsistency between the requirements in the SD documents in R/3. This

R/3 inconsistency can be corrected using report SDRQCR21 in R/3.

I need to replicate BOM SO creation in VA01 in BAPI_SALESORDER_CREATFROMDAT2.

Any pointers -- thanks.

Edited by: Alvaro Tejada Galindo on Jan 29, 2008 1:55 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:29 PM

    Did you do a commit after running the BAPI?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.