I think you have written code of "BAPI_PS_PRECOMMIT" betweeen if and endif statements and it does not get executed because the if condition is false or "BAPI_PS_PRECOMMIT" returns error, and then you are calling "BAPI_TRANSACTION_COMMIT" . Since the earlier BAPI is not getting called or returning error, you get this dump. Please make sure that you call "BAPI_TRANSACTION_COMMIT" only if "BAPI_PS_PRECOMMIT" is executed without any error. Please do as follows:
- call function 'BAPI_PS_INITIALIZATION'.
- Call BAPI_OBJCL_CREATE and check return table. If it contains any error, dont call "BAPI_PS_PRECOMMIT", otherwise call this BAPI
- Check return table of "BAPI_PS_PRECOMMIT". If it contains error, do not call "BAPI_TRANSACTION_COMMIT", otherwise call this.
Following link might also be helpful:
Please paste your code in case issue still persists.
Regards