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: 

EPC error while using at endat in Loop

Former Member
0 Kudos

Hi all

I have used following coding in my prog.

loop at wa_plant.

LOOP at LV_PURREQ into gs_PURREQ WHERE WERKS-WERKS EQ WA_PLANT-WERKS.

-


-


at last

print text....

endat.

endloop

endloop.

but i checked in EPC

its showing following error

The LOOP statement processing will be limited

(FROM, TO and WHERE additions in LOOP)

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

(The message can be hidden with "#EC *)

How can i solve?

1 REPLY 1

former_member589029
Active Contributor
0 Kudos

The reason for that message is that because of the where extension in the loop the at-endat might not work as you expect it to work.

Whenever the field you check (or any field in the table before that field) changes the at-end event is triggered. But in case you use WHERE and that condition does not select a consecutive line block the at-endat event triggering is undefined.

In case your WHERE condition meets this requirements you can add "#EC * behind the statement to suppress the error to be displayed in Code Inspector.

Hope that helps,

Michael