cancel
Showing results for 
Search instead for 
Did you mean: 

convert one row to multiple column dynamic in smartform

Former Member
0 Kudos

i want to convert on row to multiple column in smartform.As number of column is not per define..Please suggest the way out in smartform

Accepted Solutions (0)

Answers (5)

Answers (5)

Vinay3
Participant
0 Kudos

hi Florian what more information you want can you specify so that i can tell you on that particular point

aneel_munawar
Participant
0 Kudos

I suggest you to create an internal table and pass it ti smartform.

Create maximum no of columns on the smartform. and pass any unique value in the column of internal table which has not any data.   then apply condition on the smartform for the columns which have that unique value to hide those columns.  So in this way you can make dynamic smartform.

Florian
Active Contributor
0 Kudos

Hi Aneel,

this Question is from 2011 and the last answer is (no! was) from 22 Jun 2011!

Watch this information first, your answer just produced some noise and it also was marked as assumed answered. That means, there is nothing to add, except you would face exact the same problem and hope that the author remember the solution and share it with you.

~Florian

aneel_munawar
Participant
0 Kudos

I saw a post and working perfect. The link is given below.

http://scn.sap.com/community/abap/blog/2013/10/06/the-case-of-dynamic-columns-in-smartform

Thanks to Eitan.

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

You are welcome.

Regards.

Vinay3
Participant
0 Kudos

my requirement is to create dynamic column...but number of column is not per define as when we retrieve the record line from database, in that one of attributed we want to make as title but number of record is not define.

In short i have to convert one of the row in multiple column but number of row as not per define as which column is not define..

Can you please suggest another option or in sapscript

Former Member
0 Kudos

i guess your problem is solvable but with that much information given it is not.

Former Member
0 Kudos

Hi,

As jorge mentioned we cannot change it dynamically.

Table is something we define statically while cretaing a smartform. You can get an internal table to fulfill your requirment.

But replicating that to your smartform would not be possible.

Former Member
0 Kudos

Hi,

there´s no way to do this dynamically in the form, since there´s no functionality. Your form is static and you cannot influence the design per code.

What you have to do is to manipulate the data in the internal table before you pass it to the generated function.