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

Dynamic Column in Smartform

Former Member
0 Likes
1,688

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.

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
Read only

Former Member
0 Likes
1,238

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

Read only

0 Likes
1,238

Hi,

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

Thanks for you reply,

regards,

Read only

0 Likes
1,238

Hi,

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

Rich

Read only

AniketB
Explorer
0 Likes
1,238

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.

Read only

Former Member
0 Likes
1,238

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,

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,238

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.

Read only

0 Likes
1,238

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.