Skip to Content
author's profile photo
Former Member

Problem of SD_document on me21n

I use BAPI_PO_CREATE1 to simulate me21n,but It said SD document is not in the database or has been archived...Why?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    Posted on Aug 23, 2007 at 06:43 AM

    Check this too.

    Note 910636 - BAPI_PO_CREATE1: Error from account assignment check

    Cheers !

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2007 at 07:36 AM

    Hello,

    What is your account assignment category ?

    Cheers !

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      My account assignment category is just like that below:

      account-PO_ITEM = '10'.

      account-SERIAL_NO = '1'.

      account-SCHED_LINE = '1'.

      account-ORDERID = AUFNR.

      APPEND account.

      My proposal is to use ORDERID automatically assign account assignment category...but it seems can't find the infomation of something like SD_document...

  • Posted on Aug 22, 2007 at 02:11 AM

    Hello,

    Try this. In transaction VA03 enter the SD doc # (AUFNR) and check if it exists ?

    Cheers !

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      No, when I enter the ORDER_ID to VA03 it said "SD document 60003390 is not in the database or has been archived."

      I could use me21n to manually create po with ORDER_ID=60003390.

      But the bapi_po_create1 still said the SD document 60003390 is not in the database or has been archived.

  • Posted on Aug 22, 2007 at 10:31 AM

    i,

    That's strange. Please try this. Create the PO with ME21N and enter the order number. Then double-click on this field and check which order is displayed.

    Cheers !

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      It was played by KKF3...Is this order_id which is played by kkf3 should not be assigned to the Bapi_po_create1's table's field account-order_id?But the data element is the same AUFNR....

  • Posted on Aug 23, 2007 at 02:24 AM

    Hi,

    Data element is the same and is controlled by the account assignment category. If E or C, it will require sales order. In your case I think it is F.

    Cheers !

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2007 at 06:40 AM

    Hi,

    I remember that this BAPI does not cover all of the functions of the online transaction. I suggest you log this in OSS and await SAP's reply.

    Cheers !

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded