cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms Reports

Former Member
0 Kudos

Hi gurus,

It's my first time doing smartfoms, I want to write a report to call methods and tables so that the data within them can be displayed on the smartform. Where do I write it?

If possible please give a lot of details.

Your assistance will be highly appreciated.

Kind regards,

Sabelo

Message was edited by: Sabelo Gida

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

hi,

for this you can use two approach.

1. you can create smartfrom and all your data declaration and retrieval logic you can write inside smartform. and after that you can call this form by generated function module on your driver program.

2 you can create one report program and all your data retrieval logic you can write on that program and you will pass those by declaring import parameter inside smartfrom and call your form on same program.

if you think that same data retrieval logic should be used for other forms also then go for second approach.most of the time this is most preferable approach.

venkatakrishna
Active Participant
0 Kudos

Hi ,

you can call all you methods in initialization area of smart form.

Tcode:- smartform--- Click on Chnage -- in Global settings click on global definitions

there you will find initialization  tab to write all you code.

make sure all your variables declared in global data tab.

Regards,

Venkat

ivy_li
Active Contributor
0 Kudos

Hi,

Please read wiki below to get how output from smartforms are fetched:

https://wiki.scn.sap.com/wiki/x/IoSLFQ

BR,
Ivy