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

GL Posting using BAPI BAPI_ACC_DOCUMENT_POST but not updating in table BSEG

Former Member
0 Likes
2,486

Hi Experts,

Hope all are doing greatu2026

I need you help to resolve the below issue.

We have on Z-Tcode to GL Posting the document using BAPI u2018BAPI_ACC_DOCUMENT_POST' and this program is successfully posted from the source file and documnet # also created successully.

We have entries in BKPF, but the table BSEG not updating and we do not have entries.

Please help me on this regards,

Thanks in Advance.

Amjad

Hi Experts,

Hope all are doing greatu2026

I need you help to resolve the below issue.

We have on Z-Tcode to GL Posting the document using BAPI u2018BAPI_ACC_DOCUMENT_POST' and this program is successfully posted from the source file and documnet # also created successully.

We have entries in BKPF, but the table BSEG not updating and we do not have entries.

Please help me on this regards,

Thanks in Advance.

Amjad

7 REPLIES 7
Read only

ChandrashekharMahajan
Active Contributor
0 Likes
1,477

Hi,

you might be used this but again check if you have written,

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = c_x.

after your BAPI call.

Thanks,

Chandra

Read only

0 Likes
1,477

Hi Chandra,

Yes, already called FM after calling BAPI and we are able to see the entries in table BKPF but we are not able to find entries in table BSEG.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

please let me know your suggestions.

Thanks & Regards,

Amjad Hussain.

Read only

Former Member
0 Likes
1,477

Hi,

Hope you would have passed the tables parameter ACCOUNTGL for the BAPI....but please check if it is populated correctly

Read only

0 Likes
1,477

Hi Srikant,

Thanks for your reply...

As you suggest, i have checked the structure ACCOUNTGL and below values are passing.

ACCOUNTGL -ITEMNO_ACC

ACCOUNTGL -GL_ACCOUNT

ACCOUNTGL- ITEM_TEXT

ACCOUNTGL- COMP_CODE

ACCOUNTGL- COSTCENTER

ACCOUNTGL- CS_TRANS_T

Could you please suggest me if there are any changes needs to do.

Thanks & Regards,

Amjad Hussain

Read only

0 Likes
1,477

Hi Amjad,

Could you please post your code in the thread...so that it would easy for us to identify the possible error?

Read only

0 Likes
1,477

Hi Srikant,

Thanks for your quick responce...

As you suggested, i am not able to send total code of porgram.

<< Moderator message - please do not ask for private information >>

Please help me in this regards.

Thanks in Advacne.

Amjad Hussain.

Edited by: Rob Burbank on Oct 3, 2011 10:08 AM

Read only

0 Likes
1,477

Hi

You should check which data you are transfering while calling the BAPI

I don't know which type fo document you're posting but you need to transfer the items (ACCOUNTGL and7or ACCOUNTRECEIVABLE and/or ACCOUNTPAYABLE), the amounts (CURRENCYAMOUNT)

Max