cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms

Former Member
0 Kudos

Hi,

I have an internal table of 30 rows. I need to print the rows in three pages each row 10 rows using a smartform. I also need to print sub-totals at end of each page and total at last page.

Please let me know how to display the data...

Thanks in Advance,

John Vikram V

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Based on the SY-DBCNT field (where it is 10 for each page for 10 rows) you can split the data and print it in 3 pages.

See the doc related to smartforms

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

check most imp link

http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html

step by step good ex link is....

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

Subtotals - Check the link...

You can use the PROGRAM LINES node to calculate the page totals in Table node.

Table Node has three sections:

Header: (Triggered once in the beginning of a page)

Create a Program lines node to reset the value of TOTAL to 0.

Main Area (For each row of internal table)

Create a Program lines node to add the Value to TOTAL

Footer (Triggered once in the End of a page)

Display the TOTAL

Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.

2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters

regards

Anji