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

Sales Order

Hello Friends,

While using BAPI_SALESORDER_CREATEFROMDAT2, I can create the BAPi successfully, but get the following error when I go to VA02 to edit the Order :

SD document 722000 is not in the database or has been archived

Message no. V1302

Diagnosis

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

(discrepancies in R/3) for a sales requirement single record.

System Response

In the initial sales order supply, the following error message appears

'Document xxxxxx not available' V1 302.

Procedure

If an error occurs in initial data supply in APO, discrepancies have

occurred between the requirements and sales documents in R/3. This

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

I can succesfully create an Order in VA01.

Any ideas why this is happening?

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:53 AM

    have you used the function module BAPI_TRANSACTION_COMIT

    after that BAPI Call ?? if not, add this.

    if sy-subrc = 0.

    data : L_WAIT TYPE BAPITA-WAIT VALUE 'X'.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    EXPORTING

    WAIT = L_WAIT.

    endif.

    regards

    srikanth

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:50 AM

    Hello,

    Please check the following things..

    1. Check whether inside the BAPI you are doing a

    BAPI_TRANSACTION_COMIIT

    2. Check the update termination logs on transactions SM21 and SM13.

    3. If it is a update termination error please check whether there is a repition in the number ranges of the slaes document you are trying to generate.

    Hope this will help.

    Thanks,

    Krishnakumar

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:53 AM

    hope u can are calling COMMIT work?.

    regards

    Prabhbu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:56 AM

    Hi,

    You need to commit after the BAPI is called. For testing this there is no need to create the ABAp program.

    go to se37 press SHIFT+F8, it will allow you to call test sequence.

    give here ur bapi to create sales order first and then call BAPI_TRANSACTION_COMMIT.

    you can test both bapis one after other. and there will be entry in VBAK now.

    Reward if useful.

    Regds,

    Agasti.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:57 AM

    Hi

    Call the FM 'BAPI_TRANSACTION_COMMIT' or use the COMMIT WORK statement after calling the Sales order BAPI

    Regards

    Beena

    Add comment
    10|10000 characters needed characters exceeded