‎2007 Aug 03 11:20 AM
Hi All,
We are trying to post Goods Issue using the FM BAPI_GOODSMVT_CREATE.
Based on the return status of this FM we are commiting the transaction using BAPI_TRANSACTION_COMMIT.
On Execution we are getting the dump "COMMIT_IN_POSTING".
Please let us know if anyone has any idea about this error.
Regards,
Lavanya.
‎2007 Aug 03 11:22 AM
‎2007 Aug 03 12:00 PM
Hi Florian,
I have commented the BAPI_TRANSACTION_COMMIT, but it is giving same dump since commit work is happening in another FM which I am using in my program. So I have commented that FM, now it is giving a dump MESSAGE_TYPE_X. The dump error analysis is:
Short text of error message:
Nested call of PERFORM ON COMMIT: NESTED_PERFORM_ON_COMMIT caller: SAPLM
BRE program: SAPLMBRE form: DELTA_PUT
Long text of error message:
Diagnosis
During processing of a routine called using PERFORM ... ON COMMIT,
the system attempted to call PERFORM ... ON COMMIT again. Nesting
of this is not allowed.
System Response
Procedure
The program indicated after "Caller:" must be changed. This is the
program that calls the routine indicated after "Form:" during
COMMIT processing. This routine is part of the program indicated
after "Program:".
Regards,
Lavanya.
‎2007 Aug 03 12:10 PM
I suppose that you call BAPI_GOODSMVT_CREATE in an extension like a Business Transaction Event or a BADI and that this BADI or BTE is executed in update task, where only one COMMIT of the database is generated by the system for all the Functions executed (look at SM13)
Don't use any COMMIT or BAPI_TRANSACTION_COMMIT in this environment, it's forbidden.
Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTUP/BCCSTUP_PT.pdf">Updates in the R/3 System (BC-CST-UP)</a>
Regards