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

declarations in smartforms

kiran_k8
Active Contributor
0 Likes
725

Hi Folks,

I have a program having an Internal table ITFINAL which displays the output in ALV.

Now I want to display it even in the smartform.

How to pass on the data in itfinal to smartform?

Declarations in global definitions?

How many columns can we display in a smartform at the max when the page is DINA4.

Kindly let me know about the same.

Thanks,

K.Kiran.

Message was edited by:

Kiran K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Hi Kiran,

in form interface declare the same internal table type that u have defined in alv program with type as global structre that exists in se11.

and call this smartform in u r alv program and try

for number of cloumns it depends on width availabilityon page.

Reward points for all helpful answers,

kiran.M

6 REPLIES 6
Read only

Former Member
0 Likes
709

hi,

var type itfinal.

this is the global definition.

http://sdn.sap.com

Regards,

Divya.

Read only

Former Member
0 Likes
709

Hi,

Go through the following Links, here u can find example with step

by step.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

http://sap.niraj.tripod.com/id67.html

Check these step-by-step links

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501...

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

Check these links also.

http://www.sap-basis-abap.com/sapsf001.htm

http://www.sap-press.com/downloads/h955_preview.pdf

http://www.ossincorp.com/Black_Box/Black_Box_2.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

for Smartforms material

http://www.sap-basis-abap.com/sapsf001.htm

http://www.sap-press.com/downloads/h955_preview.pdf

http://www.ossincorp.com/Black_Box/Black_Box_2.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

How to trace smartform

http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

http://www.sap-img.com/smartforms/smart-006.htm

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

http://www.sap-img.com/smartforms/smart-006.htm

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
709

Hi,

To pass a Internal table to the samrtform, in the FORM routines, you need to declare the smae internal talbe in teh TABLES parametrs, but you need to create a structure with the same internal table, then only it will not give the error.

Print the columns in the smartform, that is depends in the column length of the internal table, DINA4 will have some specific lenght, so count the each column then you can print that many columns in the SMARTFORM, there is no limitation in the smartforms, but you need take care of the page length

Regards

Sudheer

Read only

Former Member
0 Likes
710

Hi Kiran,

in form interface declare the same internal table type that u have defined in alv program with type as global structre that exists in se11.

and call this smartform in u r alv program and try

for number of cloumns it depends on width availabilityon page.

Reward points for all helpful answers,

kiran.M

Read only

Former Member
0 Likes
709

Hi,

The table can be declared in tables section of the global definitions in a smartform. It is like passing a table to any function module.

call <fnmodulename>

tables <tablename>.

remember the variables whose definitions are made in the global section need to passed to the function module of the smartform.. the other definitions made locally are for internal use.

All the best !!

Regards

Aparna

Read only

Former Member
0 Likes
709

How many columns depends on the width of the page. the font size u use and how many characters fit into the page..

All the best !!

Regards

Aparna