Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_DOCUMENT_POST - Unable to create accounting document

Former Member
0 Likes
1,154

Hi All,

I am trying to post a document using BAPI "BAPI_ACC_DOCUMENT_POST" and "BAPI_TRANSACTION_COMMIT " . On execution the following message is being displayed "

S RW 605 Document posted successfully: FKKSU $ I00CLT030 " . But, I could not able to see the accounting document number generated in BKPF / BSEG table.

Can any one of you help me in creating the accounting document number in BSEG / BKPF table using the above said BAPI. Is there any thing which needs to be maintained in customization?

Thanks in advance.

Sunil.K

5 REPLIES 5
Read only

Former Member
0 Likes
733

Hi,

Check the theard,you will get an idea.

https://forums.sdn.sap.com/click.jspa?searchID=12915003&messageID=4969756

Regards

Kiran Sure

Read only

Former Member
0 Likes
733

Hi,

This BAPI has some problem it shows a succes message but it does not update the tables.

Please check the release notes of this BAPI.

Read only

0 Likes
733

Hi Sandip

Thanks for your reply. Can you please let me know where can I see the release notes for this BAPI ? Do you mean the Function Module documentation ?

Regards,

Sunil.K

Read only

Former Member
0 Likes
733

Hi,

Is it you are posting in program or thru SE37 test sequence?

Can you copy paste your code if posting thru program.

check if you are committing the post.

Regards,

Simha

Read only

Former Member
733

May be this is little late to answer .. but still it will be better for clarity.

First of all accouting document will be generated only after commit of the BAPI i.e. call BAPI_TRANSACTION_COMMIT after BAPI_ACC_DOCUMENT_POST.

Second to check the accounting document number generated from BAPI

When filling the BAPI interface, leave the following fields empty if the FI document number is to be the reference document number for the posting:

o DOCUMENTHEADER: OBJ_TYPE, OBJ_KEY and OBJ_SYS

o DOCUMENTHEADER and ACCOUNTGL: AC_DOC_NO

o ACCOUNT_GL: STAT_CON, AC_DOC_NO

In the importing paramters

IMPORTING

obj_type = l_type

obj_key = l_key

obj_sys = l_sys

The first 10 character of l_key will contain the FI document number