2019 Aug 23 11:07 AM
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.
2019 Aug 23 11:28 AM
How is iresult defined ? and are you looping at the table control table or a regular internal table ?
2019 Aug 23 11:44 AM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |