cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a smartform from scratch

Former Member
0 Kudos

Hello experts,

I need to prepare a complex print format. The driver program will send a table to the smart form with which the form will be initialised and would be available for printing.

Can anyone guide me for this ?

Regards,

Shubhendu

Accepted Solutions (0)

Answers (1)

Answers (1)

venkateswaran_k
Active Contributor
0 Kudos

Do You want a help on Driver program ?

Or

Do You want  a help on Smartform?

Regards,

Venkat

Former Member
0 Kudos

Hello Venkateswaran ,

First I would want to be able to create the SMARTFORM

Regards

Shubhendu

aferngas
Active Participant
0 Kudos

Hi Shubhendu,

You can use this step by step guide as example:

http://wiki.sdn.sap.com/wiki/display/ABAP/SMART+FORM+guide

Regards,

Alex

Former Member
0 Kudos

Hello Alex,

Thanks but that doesnt help my requirement.

I have a tree. I want to collect the values of the tree and make a pdf file for printout.

Regards,

Shubhendu

aferngas
Active Participant
0 Kudos

Hi Shubhendu,

Do you mean it needs to be printed in hierarchy format? If so, Smartforms doesn't support this format natively and some users have tried to insert left spaces without success.

http://scn.sap.com/message/14099594

You can use nested tables inside rows of a parent table. Not a great solution and so static but might solve your requirement. Let me know more detail about.

On the other hand, if you want convert your print form to pdf file you should use the OTF table returned by the Smartform function module in driver program. Then call to function module SX_OBJECT_CONVERT_OTF_PDF.

Regards,

Alex

Former Member
0 Kudos

Hello Alex,

I have a table ready from the calling program.

The struct type of this table is defined in the data dictionary.

It has Work station, Post, Name.

And the table which I require in the smart form will be like this

+-------------------------------------------------------------------------------+

|    Work station                   |                                       |

+-------------------------------------------------------------------------------+

|    Post 1                            |          Name                    |

|    Post 2                            |          Name2                  |

|   ................  so on            |          ....                         |

+-------------------------------------------------------------------------------+

|  Work Station 2                  |                                       |

+-------------------------------------------------------------------------------+

|    Post                               |     Name                         |

...............continues like this.

aferngas
Active Participant
0 Kudos

Hi Shubhendu,

You can solved your requeriment using a smartform table with two different types of row.

Include your post/name data in a nested table and for each iteration of the main table, print the first type of row and then loop over the nested table with the second type of row.

Ex. Data type

Regards,

Alex