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

PROB. IN TABLE CONTROL IN MODULE POOL

Former Member
0 Likes
643

WHEN I ACTIVATE MY SCREEN THEN THIS MESG. COMES CAN ANY BODY EXPLAIN ME HOW TO CORRECT IT.

The field "IT_TAB-POSNR" is not assigned to a loop. "LOOP ..

must appear in "PBO" ANd "PAI".

I ALSO WRITE FOLLOWING LINES IN FLOW LOGIC

LOOP AT it_tab WITH CONTROL tbctrl CURSOR tbctrl-current_line.

MODULE copy_mark.

MODULE modify_screen.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
612

i belive the code which u pasted is in PAI.

in PAI u can just give a loop

ie like this

LOOP AT it_tab.

MODULE copy_mark.

MODULE modify_screen.

ENDLOOP.

Regards

- Gopi

5 REPLIES 5
Read only

gopi_narendra
Active Contributor
0 Likes
613

i belive the code which u pasted is in PAI.

in PAI u can just give a loop

ie like this

LOOP AT it_tab.

MODULE copy_mark.

MODULE modify_screen.

ENDLOOP.

Regards

- Gopi

Read only

Former Member
0 Likes
612

in PBO u have to write(may b u have written)

I ALSO WRITE FOLLOWING LINES IN FLOW LOGIC

LOOP AT it_tab WITH CONTROL tbctrl CURSOR tbctrl-current_line.

MODULE copy_mark.

MODULE modify_screen.

ENDLOOP.

in PAI also write like this...

LOOP AT it_tab.

Endloop.

ok

Ramesh.

Read only

Former Member
0 Likes
612

Hi,

use below logic .

in pbo

LOOP AT it_tab WITH CONTROL tbctrl CURSOR tbctrl-current_line.

MODULE copy_mark.

MODULE modify_screen.

ENDLOOP.

in pai

LOOP AT it_tab .

ENDLOOP.

problem is duee to use of control in loop in PAi and PBO.

Regards,

amole

Read only

Former Member
0 Likes
612

Hi,

Ensure that u r looping at it_tab in both PBO & PAI.

U cannot use 'WITH CONTROL' in PAI. It should be used only in PBO.

Read only

Former Member
0 Likes
612

Hi, Mukesh ,, just do like this ..

-


in the screen the format has to be like this ..

save and activate ..now see if u get any error.

regards,

Vijay.

-


PROCESS BEFORE OUTPUT.

LOOP WITH CONTROL TBCTRL.

MODULE DISPLAY_SERIALS.

ENDLOOP.

PROCESS AFTER INPUT.

LOOP WITH CONTROL TBCTRL.

ENDLOOP.