Application Development 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: 

Error in loop at function IQS1_POST_NOTIFICATION, BADI NOTIF_EVENT_SAVE

0 Kudos

Hi,

In the code below, there is a check command (Line 65) in a loop made in a table that has only one row. When you get to the check command instead of exiting the loop, the program is repeating the loop. This execution takes about thirty minutes to exit the loop. The problem is that this causes the BADI NOTIF_EVENT_SAVE to be called every second during this loop (line 57). This issue happens randomly, and I could not identify any specific characteristics of the scenarios that the error occurs. Can you help me? Thank you!

The code below is in the include LIQS1F16.

1 REPLY 1

NTeunckens
Active Contributor
0 Kudos

Please check the SAP Launchpad on your version / SP-level. I think you might needs some 'upgrading'.

As a point of reference in our version of include "LIQS1F16" the ...

*--- Check whether notification contains changes
      PERFORM  check_change_f16 USING xchange.

... is at line 160, and the BAdI-Call ...

*--- BAdI as customer exit
      PERFORM badi_at_save.

... is at line 126.

We're somewhat at a good version / SP-level, so that would atleast indicate your system is quite old / older and missing KBA's ...

You could run your Business Functions via the "Automated Note Suggestion Tool" (trx. "ANST") to get an insight in missing Code ... (See FAQ for ANST : link)

Hope this helps

Nic T.