Skip to Content

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

BAPI

Hi,

I am executing BAPI_ACC_DOCUMENT_POST bapi successfully showing 'S' flag msg.

like this -> 'S RW 605 Document posted successfully: BKPFF DOCUMENT NUMBER DV1CLNT400'.

but not genrated Accounting Document Number. Why ?

NOTE : I used commit work also.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

EXPORTING

documentheader = gd_documentheader

customercpd = gd_customercpd

contractheader = gd_fica_hd

IMPORTING

obj_type = l_type

obj_key = l_key

obj_sys = l_sys

TABLES

accountgl = it_accountgl

accountreceivable = it_accountreceivable

accountpayable = it_accountpayable

accounttax = it_accounttax

currencyamount = it_currencyamount

criteria = it_criteria

valuefield = it_valuefield

extension1 = it_extension

return = it_return

paymentcard = it_paymentcard

contractitem = it_fica_it.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

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