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

Table Control Probelm

Former Member
0 Likes
1,269

Hi,

While making table control i am getting one error

Loop cannot be assigned to any field

Pls comments how to remove this error.

Ankesh Jindal

6 REPLIES 6
Read only

Former Member
0 Likes
862

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

Read only

0 Likes
862

No i have assigned it to Internal Table only with TC

Read only

Former Member
0 Likes
862

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.

Read only

0 Likes
862

could you please post your code portion where you are getting this error?

Read only

0 Likes
862
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

Read only

0 Likes
862

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.