Application Development 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: 

2 Table controls in one screen using 2 different internal tables

Former Member
0 Kudos

Hi all,

My requirement is, I need to have 2 table control in one screen.

Which should have values before process and after process to show the user to proceed for save.

If i use one Table control the data is coming.If i use 2 table controls its giving blank table control with no data.

Different itab for each table control.

In PAI and PBO I am giving both the loops...

loop at lt_zfplt with control TC_FPLT

cursor TC_FPLT-current_line.

endloop.

loop at lt_zfplt_old with control TC_FPLT_B

cursor TC_FPLT_B-current_line.

endloop.

1 ACCEPTED SOLUTION

0 Kudos

Hi,

When you have Two Table controls

UPPER TABLE CONTROL in screen

LOWER TABLE CONTROL in screen

then

You should put the LOWER Table control's

LOOP AT ENDLOOP. First in the PBO and PAI and then the upper table control LOOP AT ENDLOOP should come.

Regards,

Sesh

.

2 REPLIES 2

0 Kudos

Hi,

When you have Two Table controls

UPPER TABLE CONTROL in screen

LOWER TABLE CONTROL in screen

then

You should put the LOWER Table control's

LOOP AT ENDLOOP. First in the PBO and PAI and then the upper table control LOOP AT ENDLOOP should come.

Regards,

Sesh

.

former_member491305
Active Contributor
0 Kudos

Hi,

Check the order of the loop stmt for both table controls in PAI and PBO.

For Eg:

In ur screen, if u have tc1 in left side and tc2 next to tc1 or below to tc1,then in ur PBO,PAI,

It should be like this,

PROCESS BEFORE OUTPUT.

Loop at itab1 with control tc1.

Endloop.

Loop at itab2 with control tc2.

endloop.

Message was edited by:

Vigneswaran S

Message was edited by:

Vigneswaran S