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

screen element table control issue

Former Member
0 Likes
653

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

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

4 REPLIES 4
Read only

Former Member
0 Likes
622

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

Read only

Former Member
0 Likes
622

Ignore this

Read only

Former Member
0 Likes
623

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

Read only

Former Member
0 Likes
622

thanks