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

PBO event error for table control

former_member625844
Participant
0 Likes
869

I 'm learning table control. I draw a table control in screen and add below code in PBO event and error "." expected after "IRESULT". occurred.

MODULE STATUS_1200 OUTPUT.
 LOOP at iresult1 into iresult WITH CONTROL T2 CURSOR T2-CURRENT_LINE.

ENDLOOP.
ENDMODULE.

This looks like a very basic error. but I can't figure out, can someone help? Thanks. iresult1 is a internal table without heading.

I 'm learning table control. I draw a table control in screen and add below code in PBO event and error "." expected after "IRESULT". occurred.

MODULE STATUS_1200 OUTPUT.
 LOOP at iresult1 into iresult WITH CONTROL T2 CURSOR T2-CURRENT_LINE.

ENDLOOP.
ENDMODULE.

This looks like a very basic error. but I can't figure out, can someone help? Thanks. iresult1 is a internal table without heading.

2 REPLIES 2
Read only

dev_parbutteea
Active Contributor
0 Likes
744

How is iresult defined ? and are you looping at the table control table or a regular internal table ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
744

Look at the documentation of LOOP AT ... WITH CONTROL ...

And anyway, always press F1 to access the documentation of the ABAP language when you have such errors.