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

Is it possible to create Table Controls(in Dynpro) dynamically

Former Member
0 Likes
627

HI All

I am not sure if we can create screen elements dynamically especially Table Controls. I need to create a Table control in a custom screen but the fields/columns in the table control are known at run time. Is it possible?? Appreciate any light on this subject.

Thanks

Van

1 ACCEPTED SOLUTION
Read only

Vijay
Active Contributor
0 Likes
552

hi

ccheck for the link

Check following link for the same.

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

also take a look at the FM

take a look at FM:

FREE_SELECTIONS_INIT

FREE_SELECTIONS_DIALOG

hope will be helpfull to you.

regards

vijay

<u><b>plz reward pts if helpful</b></u>

hi

ccheck for the link

Check following link for the same.

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

also take a look at the FM

take a look at FM:

FREE_SELECTIONS_INIT

FREE_SELECTIONS_DIALOG

hope will be helpfull to you.

regards

vijay

<u><b>plz reward pts if helpful</b></u>

3 REPLIES 3
Read only

Vijay
Active Contributor
0 Likes
553

hi

ccheck for the link

Check following link for the same.

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

also take a look at the FM

take a look at FM:

FREE_SELECTIONS_INIT

FREE_SELECTIONS_DIALOG

hope will be helpfull to you.

regards

vijay

<u><b>plz reward pts if helpful</b></u>

Read only

Former Member
0 Likes
552

HI

I could not find the information on the link you have provided. Can you please kindly give me more information.

Thanks in advance

Van

Read only

Former Member
0 Likes
552

HI Van,

As far as I know this is not possible with the current releases. In order to satisfy your request I would go for selection screens includings tabs. If you have a 6.x installation you may check cl_CI_Query_Attributes=>Generic() to get an impression whats necessary.

True dynamic screen creation with dynpros is not possible. But with Web Dynpro Abap we can do it..

more over you can do this using ALV

grid all the options you have in Table control all are

avialable here.check the program BCALV_EDIT_01.

Using field symbols we can dynamicaly create output

table and use it for Grid.

and if possible try to look in to this function module RS_FUNCTION_TEST.

Regards,

sathish