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

o/p for this code

Former Member
0 Likes
360

>wat happen if an itab 'i_ekko' having records in it processed by code.

loop at 'i_ekko'.

i_ekko-ebeln = 'xxxxxxxxx'.

append i_ekko.

endloop.

1.one extra record is inserted in to itab.

2.it will not go in to loop statement

3.loop will never end as it is an endless loop

4.none

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
344

Well, first of all, you don't need quotes around I_EKKO in the LOOP statement,

loop at i_ekko.

And second, it is an endless loop, so the answer is 3. But it will end eventually, either due a memory cap, or a runtime cap.

Did I pass the test?

Regards,

Rich Heilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
345

Well, first of all, you don't need quotes around I_EKKO in the LOOP statement,

loop at i_ekko.

And second, it is an endless loop, so the answer is 3. But it will end eventually, either due a memory cap, or a runtime cap.

Did I pass the test?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
344

Hi,

The answer is 3. But, it will eventually end because of TIMEOUT.

Reward points if the answer is helpful.

Regards,

Mukul