Tuesday, August 20, 2013

SMARTFORM : Print Totals only on the Last page

To print Totals only on the last page and print “ Please refer to last page “ on the other pages in the smart forms.

<![if !supportLists]>1.       <![endif]>Create a window and add the following condition to print that text except on the last page. Create a text field under this window. Here we are printing “ Please refer to last page “.
Condition :Check not last page

Make window type “ Final”.




<![if !supportLists]>2.       <![endif]>Create another window(with text fields/template) and add a condition to print that value only on the last page. Here we will print the actual totals. Also check option “only after main window”.
Declare window type as final for the window which is holding the text fields.
<![if !supportLists]>3.       <![endif]>
<![if !supportLists]>4.       <![endif]> 

Output:
1st Page:


Last Page:

SMARTFORM : Print Totals only on the Last page

To print Totals only on the last page and print “ Please refer to last page “ on the other pages in the smart forms.

<![if !supportLists]>1.       <![endif]>Create a window and add the following condition to print that text except on the last page. Create a text field under this window. Here we are printing “ Please refer to last page “.
Condition :Check not last page

Make window type “ Final”.




<![if !supportLists]>2.       <![endif]>Create another window(with text fields/template) and add a condition to print that value only on the last page. Here we will print the actual totals. Also check option “only after main window”.
Declare window type as final for the window which is holding the text fields.
<![if !supportLists]>3.       <![endif]>
<![if !supportLists]>4.       <![endif]> 


SAP ABAP Copy variants from one program to another program


Use Function Module RS_COPY_SELECTION_SETS  to Copy variants from one program to another program.