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

For dynamic structure in smartforms

former_member187748
Active Contributor
0 Likes
1,084

Hi all,

i have a requirement for making a smartforms for bidding purpose, my requirement is

to fetch all the values related to PR no, now according to my scenario for a single

value of PR , there may be various values of "ebeln " possible, now i have created

a smartform in which i can able to show only six set of values(for your reference,

herein i am posting screenshot of the layout of my smartform).

My requirement is that if i will get more values of quotataion no (ebeln), then i can get

all its related data,(as i got for one quotation), and i will take its print in A3 size.

So my question is how could i do that, i have got one set of data in it, please tell me how could i

achieve dynamic coulms for the set of data, based on different "quotataion".

1 ACCEPTED SOLUTION
Read only

AmarUbhe
Product and Topic Expert
Product and Topic Expert
0 Likes
809

Hi all,

You can not have dynamic structures in smartforms.

But you can create Dynamic internal table in Driver program then pass that internal table to smarform

i think this will help you

6 REPLIES 6
Read only

former_member187748
Active Contributor
0 Likes
809

Hi all,

sorry i was not able to add the screenshot in previous post.

Here is the screenshot.

Read only

Former Member
0 Likes
809

You can not have dynamic structures in smartforms.

A better solution to your problem is show the data in dynamic ALV (which is possible) and print the same through smartforms with limitations.

Read only

AmarUbhe
Product and Topic Expert
Product and Topic Expert
0 Likes
810

Hi all,

You can not have dynamic structures in smartforms.

But you can create Dynamic internal table in Driver program then pass that internal table to smarform

i think this will help you

Read only

Former Member
0 Likes
809

You can pass the dynamic internal table to smartform, but if you can not print it, whats the use?

Read only

0 Likes
809

Hi Chinmy,

i wants to take its print (when it exceeds 6 values) in A3 paper.

Can you littlebid elaborate how could i make dynamic internal table

because i am not getting exacctly how to achieve this.

I have two smartforms based on condition first when values are less than six

i will call my first program, and values greater than six , i will call my second smartform.

Please tell me how could i make a dynamic internal table.

Thanks in advance.

Read only

Former Member
0 Likes
809

What my solution is -

1. Drop the idea of smartform.

2. Present all the data in ALV using dynamic ALVs.

     You can see how dynamic ALV is created here - Create table structure dynamically

3. Once your ALV output is displayed, download the content into a spreadsheet and take a print from spreadsheet (excel) instead of from SAP.

4. In case you want to control the layout in excel as well, you need to use OLE.

Please let me know, if you could achieve dynamic table printout in smartforms.