‎2008 Jun 16 7:26 AM
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
‎2008 Jun 16 7:32 AM
Hi,
Check the theard,you will get an idea.
https://forums.sdn.sap.com/click.jspa?searchID=12915003&messageID=4969756
Regards
Kiran Sure
‎2008 Jun 16 7:34 AM
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.
‎2008 Jun 16 9:55 AM
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
‎2008 Jun 16 10:45 AM
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
‎2009 Dec 02 9:39 PM
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