‎2009 Jul 06 12:40 PM
Hi,
While making table control i am getting one error
Loop cannot be assigned to any fieldPls comments how to remove this error.
Ankesh Jindal
‎2009 Jul 06 12:43 PM
Please check the attributes of TABLE CONTROL Field.
It seems that you might have assigned it as a field and not as a table control.
Regds,
Anil
‎2009 Jul 06 12:50 PM
‎2009 Jul 06 12:50 PM
Hi,
I doubt if you have looped at your internal table with respect to your table control fields. Something like this in your PBO and your PAI
"In PBO
loop at t_itab with control tcl.
endloop.
"In PAI
loop at t_itab.
endloop.
You should loop your internal table fields with respect to your table control fields and then activate. Only then your error will be resolved.
‎2009 Jul 06 12:54 PM
could you please post your code portion where you are getting this error?
‎2009 Jul 06 12:56 PM
PROCESS BEFORE OUTPUT.
MODULE STATUS_1008.
loop at lit_place with control TP.
endloop.
PROCESS AFTER INPUT.
loop at lit_place .
endloop.
MODULE USER_COMMAND_1008.i hve declared lit_place as internal table at top , i hve done the same for another TC , it is working fine but
in this i m getting error.
Ankesh
‎2009 Jul 06 1:05 PM
Hi,
Please check if you have declared your table control in the top include properly.
And also please check by giving the cursor position..
decl: CONTROLS: TP TYPE TABLEVIEW USING SCREEN '1008'. <----- Your screen number
PROCESS BEFORE OUTPUT.
MODULE STATUS_1008.
loop at lit_place with control TP cursor TP-current_line.
endloop.
PROCESS AFTER INPUT.
loop at lit_place .
endloop.
MODULE USER_COMMAND_1008.