I'm getting message_type_x dump at runtime. I tried changing the code with all possible ways but not able to figure out the issue.
Short text of error message:
Unexpected COMMIT WORK
Long text of error message:
A COMMIT WORK was executed unexpectedly.
In order processing, a COMMIT WORK may not be carried out until the
save process is finished because otherwise the order data may be
posted incorrectly or incompletely.
Contact your SAP Administrator.
Procedure for System Administration
Ensure that you do not execute a COMMIT WORK in a User Exit or BAdI
and that you do not call any SAP functions that execute a COMMIT
WORK from User Exits or BAdIs.
For details on how to proceed, see the long text about the program
Using transaction OPJB set the type of this message to X (as the
version, enter 00000000 as a default) in your production system.
Technical information about the message:
Message class....... "C2"
Trigger Location of Runtime Error
Module type (FORM)
Module Name COMMIT_SUPPRESS
Edited by: Rob Burbank on Feb 10, 2010 9:12 AM