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: 

Problem in a Custom screen

Former Member
0 Kudos

Hi Experts,

I am getting a error while executing the custom screen which is contained table control. Error is "Generation Error(s): "LOOP" cannot be assigned to any field.".

Could anybody help me in this regard.

Thanks,

bsv.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If the program is regarding Module pool then,

Add,

loop with control <tabcontrol name>.

endloop. in PBO PAI of the screen.

And don't forget to declare,

controls: <tabcontrol name> type tableview using screen <screen number>.

Hope this helps.

Edited by: jagannathan krishnan on Jan 29, 2008 10:40 AM

4 REPLIES 4

Former Member
0 Kudos

Hi,

If the program is regarding Module pool then,

Add,

loop with control <tabcontrol name>.

endloop. in PBO PAI of the screen.

And don't forget to declare,

controls: <tabcontrol name> type tableview using screen <screen number>.

Hope this helps.

Edited by: jagannathan krishnan on Jan 29, 2008 10:40 AM

0 Kudos

Hi jagannathan,

Yes I have added loop in both the PAI and PBO. But also not coming out.

Thanks,

bsv.

Former Member
0 Kudos

can u just send the codes which u written in the corresponding PBO.

Former Member
0 Kudos

Hi,

Try like this,

Add the below code in PBO and PAI.

LOOP AT <itab> WITH CONTROL <table control name> CURSOR <table control name>-CURRENT_LINE.

ENDLOOP.

Use the above code, if you are facing the same problem,

just send us your code which you used in PBO and PAI.