01-29-2008 9:29 AM
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.
01-29-2008 9:38 AM
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
01-29-2008 9:38 AM
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
01-29-2008 9:41 AM
Hi jagannathan,
Yes I have added loop in both the PAI and PBO. But also not coming out.
Thanks,
bsv.
01-29-2008 9:45 AM
can u just send the codes which u written in the corresponding PBO.
01-29-2008 9:51 AM
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.