‎2009 Feb 11 5:22 AM
I have a subscreen in which i put a table control TC1. The first element is a ITEMNOTEXT which is txt box as a header of my i/o column ITEMNO. while activating the code i am getting the following error
The field "ITEMNOTEXT" is not assigned to a loop. "LOOP .
must appear in "PBO" and "PAI".
any idea why i am getting this error and how it can be rectfied
‎2009 Feb 11 5:35 AM
Hi,
To use table control we need to use LOOP...END LOOP statement in flow logic of the screen.
check the following code for assitance.
process before output.
module status_1001.
loop at it_salesitems with control tabctrl.
module edit_salesitems.
endloop.
process after input.
module back_command.
loop at it_salesitems.
module user_command_1001.
endloop.
Regards
Rajesh Kumar
‎2009 Feb 11 5:30 AM
Hi Vishal,
If we are using Table Control or Step loop in dialog programming we need to use the declared field as an internal table between LOOP and ENDLOOP statements in both PBO & PAI sections.
If you have to code any logic you can apply with in that loop ..endloop otherwie just use the table between LOOP and ENDLOOP statements, this solves the issue.
PBO
LOOP AT it_tab.
process logic if any.
ENDLOOP.
PAI
LOOP AT it_tab.
process logic if any.
ENDLOOP.
Regards
Hari
‎2009 Feb 11 5:34 AM
‎2009 Feb 11 5:35 AM
Hi,
To use table control we need to use LOOP...END LOOP statement in flow logic of the screen.
check the following code for assitance.
process before output.
module status_1001.
loop at it_salesitems with control tabctrl.
module edit_salesitems.
endloop.
process after input.
module back_command.
loop at it_salesitems.
module user_command_1001.
endloop.
Regards
Rajesh Kumar
‎2009 Mar 19 11:59 AM