Skip to Content
0
Oct 31, 2015 at 03:13 PM

BUS screen framework: Table Controls

225 Views

I have a screen with four subscreens, each of them must carry a table control. What I have to do to implement the table control? The same as I have to do in "old school"-screens, like:

LOOP AT ....

INTO ....

WITH CONTROL ....

....

ENDLOOP.

in PBO and PAI? Or are there any generic methods I can call?

Edit: Additional Question

I do have a table control, let's say it's linetype is MARA.

If I code:

LOOP AT lcl_subscreen=>table_control

INTO lcl_subscreen=>table_control_row

WITH CONTROL tc_mara

CURSOR tc_mara-current_line.

ENDLOOP.

the program does not work. Of course, there is a local class with:

CLASS-DATA:

table_control TYPE STANDARD TABLE OF mara,

table_control_row TYPE MARA.

If I change the loop to:

LOOP AT table_control

INTO table_control_row

WITH CONTROL tc_mara

CURSOR tc_mara-current_line.

ENDLOOP.

by using global data in TOP Include

DATA:

table_control TYPE STANDARD TABLE OF mara,

table_control_row TYPE MARA.

it works. But I don't want to use global data, I want to use class attributes.

What I am doing wrong? 😢

Message was edited by: Ralf Wenzel for entering additional question