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

Duplicate Table Control Field

former_member194669
Active Contributor
0 Likes
489

We have requirement to Create a 2 Table Control for the same field in 2 different table controls

Say For example


process before output.
  loop at i_ctcusage with control tabcntl4.
    field: yctcusage-tireusage,
           yusaget-descr
           module populate_usage_tab_0500.
  endloop.
  loop at i_ctcusage with control tabcntl9.
    field: i_ctcusage-tireusage,
           yusaget-descr
           module populate_usage_tab_0500.
  endloop.

If you see the above code here TIREUSAGE needs to be a column in 2 different table controls on the same screen.

But system not allowing. giving a syntax error message " TIREUSAGE already declared.

PS: I DONOT want to declare it as different name then user command control the same

a®

1 ACCEPTED SOLUTION
Read only

aabhas_wilmar
Contributor
0 Likes
455

Use Subscreens and create your table controls in two different screens.

regards,

Aabhas

2 REPLIES 2
Read only

aabhas_wilmar
Contributor
0 Likes
456

Use Subscreens and create your table controls in two different screens.

regards,

Aabhas

Read only

venkat_o
Active Contributor
0 Likes
455

Hi a®s, <li>You seem to have used same internal table to display data in two different table controls.That internal table has header as well it seems.But I do not understand why things which you kept inside LOOP-ENDLOOP are differed. <li>You should have kept like below for both LOOPs.

FIELD: I_CTCUSAGE-TIREUSAGE,
       I_CTCUSAGE-DESCR.
MODULE POPULATE_USAGE_TAB_0500
Thanks Venkat.O