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: 

Dynamic Column in Smartform

Former Member
0 Kudos

Dear Experts,

I have a requirement , where I have to print A table content with Dynamic Column Name, so is there any possibility through which i can create dynamic column in table in SMART FORM

Please suggest me..

Thanks in advance.

7 REPLIES 7

former_member182550
Active Contributor
0 Kudos

Hi,

Since a Smartform is a function module,  you can create all sorts of dynamic things using RTTS.

I would also suggest rather than passing the table to the smartform,  I would pass a memory reference.  In that way you avoid the problem of typing in the function call.

Rich

0 Kudos

Hi,

how to use RTTS in Smartform, will you please give me any reference guide,

Thanks for you reply,

regards,

0 Kudos

Hi,

You use a code node as you would for any code.

Rich

AniketB
Explorer
0 Kudos

Hi,

Can you elaborate on your requirement. Do you want to use Dynamic Internal tables i.e. different number of columns, or the number of columns will be constant but the Column descriptions will be dynamic.

Thanks.

Former Member
0 Kudos

Hi,

I want to use Dynamic Internal Table of different numbers of column, number of column is not fixed, I want to pass header data(column Description) as well as item data Dynamically as we can do in ALV report.

Thanks & regards,

Jelena
Active Contributor
0 Kudos

Even though you can pass dynamic data to the Smartform I'm pretty sure there is no option to create a dynamic table element. All the columns are set in the table node in the form, it's not feasible to add/delete them using the code AFAIK.

I've seen similar questions on SCN before (have you tried searching?) and the best suggestion so far was to create several tables, if necessary, and then set the condition for each of them to be called based on the appropriate criteria. You can change the table content dynamically (header/data), but not the table layout.

Not sure if this is feasible in the PDF forms.

Patrick_vN
Active Contributor
0 Kudos

In pdf you can use scripts (ex. FormCalc) to do an awful lot. Problem of those scripts is that these tend to make the form somewhat harder to maintain.