01-08-2008 10:15 AM
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?
01-08-2008 1:19 PM
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