‎2006 Mar 20 2:19 AM
Hi!
<b>Is it possible to add screen elements at run time?</b>
I have tried doing
APPEND g_wa_screen TO screenbut 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.
‎2006 Mar 20 4:13 AM
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.
‎2006 Mar 20 7:38 AM
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.