‎2010 Oct 25 11:56 AM
Hi All,
I am trying to crate a Notification using BAPI_ALM_NOTIF_CREATE. This BAPI is working fine when i use it a program.
But my requirement is to generate a notification when any measurement document is getting created.
For this I am using EXIT_SAPLIMR0_001 for creating Notification. But whenever I am using this BAPI it is giving run time error.
Error message is ' Nested call of PERFORM ON COMMIT: NESTED_PERFORM_ON_COMMIT caller: SAPLI
TX1 program: SAPLITX1 form: TEXT_UPDATE_F00'.
I tried to find out the reason and found that we should not use Commit statement inside an user exit.
I tried to use BDC recording for IW21 and it's working fine but it's not capturing long text details. Here my requirement is to create long texts too.
Please suggest what to do.
Your suggestions would be appreaciated.
Regards,
Amit
‎2010 Oct 25 12:46 PM
if exit not allowing to do the commit then try to find out some enahancement point futher to exit and thn checkout there whether bapi is giving some error or not (in exit using memory concept ) and then in enehanceemnt commit there. hope so it should work.
‎2010 Oct 26 5:09 AM
‎2010 Oct 26 5:31 AM
Hi,
For long texts use the function module create_text and update it. Once your BDC is sucessful , you will get the notification after that you call the "CREATE_TEXT" function module and update the long text.
Regards,
Nagaraj
‎2010 Oct 26 7:17 AM
Do not use commit statement inside a user exit. The user exit auto commits itself.
‎2010 Oct 26 8:13 AM
‎2010 Nov 25 10:37 AM
I created Notification using BDC recording and it's working fine.
Thanks to all of you for your response.
Regards,
Amit