Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Nested Commit statement inside an User Exit

Former Member
0 Likes
1,178

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

6 REPLIES 6
Read only

Former Member
0 Likes
701

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.

Read only

Former Member
0 Likes
701

Hi Experts,

Any more input on this.

Regards,

Amit

Read only

0 Likes
701

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

Read only

Former Member
0 Likes
701

Do not use commit statement inside a user exit. The user exit auto commits itself.

Read only

0 Likes
701

> The user exit auto commits itself.

And how does that happen?

Read only

Former Member
0 Likes
701

I created Notification using BDC recording and it's working fine.

Thanks to all of you for your response.

Regards,

Amit