2014 Mar 07 8:19 AM
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.
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.
2014 Mar 07 8:22 AM
Hi Joyal,
Ask FI consultant to check the periods are open or not and check bapi commit as well.
Regards,
Raman
2014 Mar 07 8:34 AM
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
2014 Mar 07 8:39 AM
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
2014 Mar 07 8:54 AM
Did you check ST22 or SM13 for signs of update task problems?
Thomas
2014 Mar 07 11:47 AM
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
2014 Mar 07 11:56 AM
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
2014 Mar 11 7:24 AM
Hi,
The problem got solved as there was some configuration mistake in the server, Thanks for your help.
Regards,
Joyal
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |