Hi all,
I have extended program check for a program i was getting a error with description like this "The LOOP statement processing will be limited
(FROM, TO and WHERE additions in LOOP)
Interaction with group change processing (AT NEW, ...) is undefined".
The piece of code where i am getting a error is
LOOP AT itab_input_process INTO l_wa_input
WHERE inforstatus NE locked AND stage NE ' '.
wa_input_process = l_wa_input.
AT NEW stage.
LOOP AT itab_input_process INTO l_wa_output
WHERE stage = wa_input_process-stage
AND saprefno NE ' '
AND inforstatus NE locked.
wa_input3 = l_wa_output.
AT NEW saprefno.
wa_final-stage = wa_input3-stage.
wa_final-saprefno = wa_input3-saprefno.
wa_final-networkid = wa_input3-networkid.
wa_final-matnr = wa_input3-matnr.
wa_final-uom = wa_input3-uom.
wa_final-matdesc = wa_input3-matdesc.
wa_final-inforbatchid = wa_input3-inforbatchid.
wa_final-psttr = wa_input3-psttr.
wa_final-pedtr = wa_input3-pedtr.
wa_final-plwrk = wa_input3-plwrk.
wa_final-inforstatus = wa_input3-inforstatus.
ENDAT.
wa_final-gsmng = wa_input3-gsmng + wa_final-gsmng.
*--Taking the records in a another table to update the Z table
*--accordingly
CLEAR wa_pln.
wa_pln-mandt = sy-mandt.
wa_pln-werks = wa_input3-plwrk.
wa_pln-plnum = wa_input3-saprefno.
wa_pln-zbatch_id = wa_input3-inforbatchid.
APPEND wa_pln TO itab_pln.
AT END OF saprefno.
APPEND wa_final TO itab_final.
CLEAR wa_final.
ENDAT.
CLEAR : l_wa_output, wa_input3.
ENDLOOP.
CLEAR wa_final.
ENDAT.
CLEAR : l_wa_input, wa_input3.
ENDLOOP.