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

Adding Screen Elements Dynamically

Former Member
0 Likes
554

Hi!

<b>Is it possible to add screen elements at run time?</b>

I have tried doing

APPEND g_wa_screen TO screen

but it is not allowed.

Im trying to add new colums to my table control. I've already added columns in the cols sub-structure of my table control but nothing gets displayed. My hunch is that those fields arent defined in the screen structure.

2 REPLIES 2
Read only

former_member186741
Active Contributor
0 Likes
441

there are some commands for the dynamic maintenance of dynpros. I've never used them and it looks like SAP discourage their use but they are there: check out import dynpro, export dynpro, generate dynpro.

Aside from that approach which would be pretty drastic, how customised do you want your table control to be? Perhaps you could define your table control with a generic list of columns say col1,col2 etc and then hide or display the ones you want to depending on your own logic.

Read only

0 Likes
441

I've thought about the table control with a generic list of columns. My first impression on it is that its a bit of a cheat.

Anyways, I have been experimenting on the new RTTS and have developed a dynamic internal table wrapped in a class. I wanted to created a dynamic table control (variable columns specified during run-time) to go along with it.

I guess my goal is try to make a simpler version of an alv. thx for the reply btw.