Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_ACC_DOCUMENT_POST for t-code F-47 is not generation document Number???

Hi All,

I am facing a problem while using BAPI_ACC_DOCUMENT_POST.

I tried doing a manual entry in F-47 with the following data.

Document date :sy-datum

Posting date :sy-datum

Document type : 'KA'

Company code : BUKRS

Currency : INR/USD

Refrence :TEST

Doc.Header Text : TEST

Account :LIFNR(Vendor)

Sp G/L Ind: 'C'

Amount :


Bus Area:

Due Date:sy-datum

PO Number with Item no:


House/bank: BANK_ID/Housebnkid

It is generating a document number with single entry against posting key 39.

But when I tried using BAPI_ACC_DOCUMENT_POST in Z Prog for executing a preliminary posting.

Its not generating the document number.

The following table was filled in the BAPI.

>ACCOUNTGL - 1 entry


>currencyamount - 2 entry

Exporting Parameter:documentheader - 1 entry

Please suggest solution to this.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question