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

Table Control Challenge

herzelhaimharel_gilor
Participant
0 Likes
687

Hello ABAP Gurus ,

i wonder if there's a way to add (by code ) cols to Table Control from program in runtime mode .

if it is possible let me know how to do it please .

Thx all .

6 REPLIES 6
Read only

Former Member
0 Likes
669

Hello,

You cannot add a column at run time to a table control, as it should present in the layout.

But you can fullfill your requirement in this way. You can create all the columns you want ultimately at the first time itself. Then hide the columns which you want to display on run time.

You can write code for displaying these hidden columns while runtime.

use loop at screen

modify screen.

endloop. to do this.

Think it will help you.

Don't forget to reward if found helpfull.

Regards,

Rakesh.

Read only

0 Likes
669

i want to add cols to the standard sap table control not mine .

Read only

0 Likes
669

Hello Herzel,

Sorry I'm helpless. May be you have to go for an user-exit or so.

Regards,

Rakesh.

Read only

0 Likes
669

Thx anyway .

Read only

0 Likes
669

Hi Herzel,

I checked in SDN for your requirement and it seems to be possible with user exits.

You should find the user exit. In that your program will be refering, most probably a table type to create the table control internal table. You should add in that table type using append structures to add a new field.

check these links.

Don't forget to reward if found helpfull.

Regards,

Rakesh.

Read only

0 Likes
669

sorry mate but this is not the case what i'm talking about .