BAPI_ACC_DOCUMENT_POST for t-code F-47 is not generation document Number???
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
Doc.Header Text : TEST
Sp G/L Ind: 'C'
PO Number with Item no:
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
>ACCOUNTPAYABLE - 1 entry
>currencyamount - 2 entry
Exporting Parameter:documentheader - 1 entry
Please suggest solution to this.