Skip to Content
-1

Dump :While creating long text by BAPI_ALM_NOTIF_CREATE in EXIT_SAPLIMR0_001.

Dec 21, 2016 at 10:40 AM

101

avatar image

Hi All.

I have to create a notification by BAPI_ALM_NOTIF_CREATE from function exit EXIT_SAPLIMR0_001(user exit for IK34).Notification has been created Successfully based on measuring document by transaction IK34 and entries are there in QMEL table.

But I got dumb whenever long text internal table is filled for long text.

Dump said that Nested call of PERFORM On CIMMIT.

Could you please help me.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Dec 21, 2016 at 03:00 PM
1

Consider that BAPI_ALM_NOTIF_CREATE execute a transaction, as you insert it into another transaction (D'oh), problems are raised when the commit of the two transactions conflict. Wrap the call of the BAPI and its commit in a RFC enabled FM and execute it in another luw (e.g. destination or in background task)

To prevent such problem, you can use some of the cl_system_transaction_state methods to check if you are already in PERFORM ON COMMIT (or ROLLBACK) with method get_on_end_of_transaction, or even in update task with method get_in_update_task. So your program can adapt to different situations. But be aware that most of the case you must not use a BAPI in the middle of the execution of a transaction as you can mess with the database integrity.

Regards,
Raymond

Share
10 |10000 characters needed characters left characters exceeded