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 document not there in bkpf

Former Member
0 Likes
2,757

Hi,

I am using the BAPI  'BAPI_ACC_DOCUMENT_POST' for posting values into GL accounts. My problem is that the return message from the BAPI shows that the document has been posted successfully, but the document does not exist in the table BKPF. I searched a lot through the forums and found certain suggestiong that calling BAPI COMMIT TRANSACTION will update the tables correctly, but that is not the case with me.

I even did an SQL trace(ST05) for a program that i created for this BAPI and found that it are no insert statement in the BAPI  which are being executed.

What might be the problem??? kindly help me out.

7 REPLIES 7
Read only

Former Member
0 Likes
1,848

Hi Joyal,

Ask FI consultant to check the periods are open or not and check bapi commit as well.

Regards,

Raman

Read only

0 Likes
1,848

Hi Raman,

I tried posting it manually using t-code fb01 and i was able to post it successfully so that means that the period is open.

Regards,

joyal

Read only

0 Likes
1,848

Hi Joyal,

if you are able to post the entry using t-code FB01 that means periods are open.

just pass  the same parameters  in BAPI and try it should work.

Are you posting GL to GL or GL to customer/vendor??

Regards,

Raman

Read only

ThomasZloch
Active Contributor
0 Likes
1,848

Did you check ST22 or SM13 for signs of update task problems?

Thomas

Read only

Former Member
0 Likes
1,848

Hi Joyal joy,

Use BAPI  BAPI_ACC_DOCUMENT_CHECK and use the same parameter which you are sending to BAPI_ACC_DOCUMENT_POST.

Regards,

Ragavendra

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,848

So I will suppose you execute a COMMIT-WORK or a call of BAPI_TRANSACTION_COMMIT, else only some randomly created event could post the document. Also don't forget that BAPI_TRANSACTION_COMMIT too can raise errors in RETURN parameter (Even if you were not alone in this case)


Can you check if there are some failed update(s) in transaction SM13.


Regards,

Raymond

Read only

Former Member
0 Likes
1,848

Hi,

The problem got solved as there was some configuration mistake in the server, Thanks for your help.

Regards,

Joyal