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

Error when dealing with the DO statement

Former Member
0 Likes
353

Hi,

In my program, I have a DO statement like below. <b>DO for 6times</b>....

<b> DO 6 TIMES

VARYING TEMP_INV_AGING_COUNT FROM <FS1> NEXT <FS2> RANGE E_INV_AGING_STRU

VARYING TEMP_INV_AGING_AMOUNT FROM <FS3> NEXT <FS4> RANGE E_INV_AGING_STRU.

............................

............................

ENDDO.</b>

When processing this statement, there are no issues.

Later, in the program I have another DO statemnt like below. <b>DO for 8 times</b>...

<b> DO 8 TIMES

VARYING TEMP_AGING_COUNT FROM <FS1> NEXT <FS2> RANGE E_OTHER_AGING_STRU

VARYING TEMP_AGING_AMOUNT FROM <FS3> NEXT <FS4> RANGE E_OTHER_AGING_STRU.

........................

........................

ENDDO.</b>

Once it comes to DO 8 TIMES statement, it is going to DUMP.

Can someone help me why it is happening so..? Is there any limit for processing the DO Loop(for the number of iterations)...? Because, when processing the same DO statement for 6 times, there are no issues. But, when processing the same for 8 times, it is going to dump. Please help me. Thanks in advance.

Thanks & Regards,

Paddu.

2 REPLIES 2
Read only

former_member386202
Active Contributor
0 Likes
332

Hi,

What type of error u r facing could u plz paste that description of that error here

Regards,

pRashant

Read only

0 Likes
332

It is going to DUMP afetr coming to the DO 8 TIMES statement. This is the error description in Dump Analysis.

<b>Error in the ABAP Application Program

The current ABAP program "ZXX_ABCD_DSA" had to be terminated because it has come across a statement that unfortunately cannot be executed.</b>

Best Regards,

Paddu.