Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: WORKING OF FOR NEXT LOOP

$
0
0

Hi Praveen,

 

BREAK command in MII works in a different manner if compared with the various programming languages. Long time back I also thought that it would behave in the same manner as it works for the other languages.

 

When you put a BREAK on certain condition it breaks your NEXT loop as well as your REPEATER loop and hence will not have any further iterations on your REPEATER.

 

The way out here is to take a local variable and set and reset its values accordingly to meet your requirements.

To elaborate considering your scenario, take a local variable X set to 1 and refer the screenshot

 

 

Hope this helps!!

 

Best Regards,

Anuj


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>