Application Development 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: 

How to create screen fields and table controls dynamically

Former Member
0 Kudos

Hi all,

I want to create screen fields and table controls dynamically.

My requirement: I will get the any function module interface at run time. I want to display the interface in edit mode.

Is it possible to create screen fields and table controls at run time?

If yes please let me know how to create screen fields at run time.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Parasuram,

I don't think you can dynamically create a table control on a dynamically created screen.

Using an ALV Grid might be a good option.

Regards,

Anand Mandalika.

8 REPLIES 8

Former Member
0 Kudos

take a look at FM:

FREE_SELECTIONS_INIT

FREE_SELECTIONS_DIALOG

Former Member
0 Kudos

Hello Parasuram,

I don't think you can dynamically create a table control on a dynamically created screen.

Using an ALV Grid might be a good option.

Regards,

Anand Mandalika.

FredericGirod
Active Contributor
0 Kudos

Hi Parasuram,

You have to create your report in dynamic, that's to create the code, and call it in run time.

Look the command : "load report" ....

You can use the ALV Grid to call a dynamic table, but you have to play with fields symbols, it's not an easy way.

Rgd

Frédéric

former_member183804
Active Contributor
0 Kudos

Hello Jonnala,

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 (release 7.00) thinks will improve significantely.

Regards

Klaus

Former Member
0 Kudos

Hi Parasuram,

As evrybody said it is not possible to create table

control dynamically. But 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.

I have done this kind of scenario in my program.

Thanks & Regards,

Siri.

Former Member
0 Kudos

If your requirement is specific to testing function modules from your program, look at function module RS_FUNCTION_TEST.

Srinivas

0 Kudos

Thanks to all,

Srinivas

RS_FUNCTION_TEST function module will work for my requirment. When i call this FM it is calling the given function modules interface in edit mode.

We are reading faild queue data we want to pass that data to function module interface .user will edit that data and hewill execute.

Is there any way to do this?

0 Kudos

Not with this one, I don't think so, but I will see if there is one like that.