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 in code inspector

Former Member
0 Likes
818

Hi all,

I have a program where a section of code is as follows:

LOOP AT ITAB WHERE FIELD2 IN VARIABLE.

AT NEW FIELD1.

IF COND.

PERFORM....

ENDIF.

ENDAT.

AT NEW FIELD2.

IF COND.

PERFORM....

ENDIF.

ENDAT.

ENDLOOP.

When i check the program with Code Inspector, for this section it gives an error that reads as follows..

"The loop statement processing will be limited".

(Interaction with group change processing (AT NEW...) is undefined).

Any body got any idea about how to solve this error? Any helpful suggestions are welcome.

Thanks and regards,

Ram.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
652

I think it is due to the fact that you are using a WHERE condition in the loop and AT NEW events...because it is possible that the behaviour of AT events can be an issue depending on the data filtered via the WHERE condition.

Regards

Anurag

5 REPLIES 5
Read only

Former Member
0 Likes
652

hi ram,

you are using a condition in a loop for field2.

then wats necessary to use at new field2.

Read only

0 Likes
652

Hi Rajesh,

The condition is not on the field2. The condition is inside the loop but not for that field...

Regards,

Ram.

Read only

Former Member
0 Likes
653

I think it is due to the fact that you are using a WHERE condition in the loop and AT NEW events...because it is possible that the behaviour of AT events can be an issue depending on the data filtered via the WHERE condition.

Regards

Anurag

Read only

0 Likes
652

Hi Anurag,

Lemme try removing the where condition and get back to you.

Regards,

Ram.

Read only

0 Likes
652

Hi Anurag,

The issue is resolved. Thanks a bunch.

Regards,

Ram.