How to Print T&C on backside of the last page in smartform.
Hi All,
I have requirement from one of the my client to print the terms & condition page on the back side of last page in invoice form.
I have created three pages as below.
First page: To Print header data,Print mode:blank,Next page : NEXT.
Second page : Contains the continuation of the data,if there are enough lines,Print Mode: D,Next page : NEXT.
Last page:To Print T&C,Print mode : blank,Next page :blank.
This is working properly when form has 2 pages.Here my question is,
How to print the T&C on backside of first page,if form has only one page.
Thanks in Advance.
Hi Vineesh,
I have 3 pages in my form.
First page: To Print header data, Print mode:blank, Next page : NEXT.
First page has the comment node, go to next page as Third page.
Second page : Contains the continuation of the data, if there are enough lines, Print Mode: D,
Next page : NEXT.
Third Page: T&C page, Print mode : blank,Next page :blank
The 3rd page should print back side of the page.
If form has only one page,then first page should be in D mode.Hence the T&C page will print back side of first page.
If form has multiple pages. then the last page ( where the main window gets end ) should be D.Hence
the T&C page will print back side of last page.
How to achieve this both the scenarios?
Thanks & Regards,
Priya Chandran
Similar Messages
-
How to print grandtotal in table footer only in the last page in SMARTFORMS
Hello Experts,
How do I print the GRANDTOTAL in the table footer only on the LAST PAGE in SMARTFORMS.
What I have done is in the text element of CELL1 of the table footer i wrote the folowing logic but not working.
/: IF &SFSY-PAGE& EQ &SFSY-FORMPAGES&.
* V_SUM.
/: ENDIF.
I even tried this.
/: IF &NEXT-PAGE& EQ 0.
* V_SUM.
/: ENDIF.
but still it displays the grand total on all pages at table footer.
How do i go for this experts.
Regards,
Ranjith NHI Nambiar,
To print the grand total only on the last page then create the secondary window --> create the text node for the grand total -->In the condition tab check only after the end of the main window.
This grand total will be displayed after all the items and end of the main window.
Footer in the table displays as the subtotals i.e on every page total is displayed..
Regards,
Sravanthi -
How to print a field on the last page of Smartform?
HI FRIENDS,
I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
SYSF BUT NOT worked.
Thank you.
ROGERIO VAZHi,
Goto the conditions tab of that window and enable the check box for Only after the end of main window.
This will surely print your field in the last page.
try this and get back to me if any issues.
Regards,
Anand. -
How to print a field on the last page of Smartform with more of 2 pages?
HI FRIENDS,
I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
SFSY BUT NOT worked.
The form has more of 2 pages.
Thank you.
ROGERIO VAZHi ,
You dont have to hard code anything to achieve this functionality,
just create a window and in that window define a text element to print
that variable.In the conditions tab of that window check the check box
"only after end of main window".i think you might have used a main window,
so irrespective of the no of pages the smartform prints,it always displays that
field in the last page of the smartform.
regards,
srikanth. -
How to decide the last page in smartforms
Hi experts,
I want to display a signature block only in the last page, can anybody tells me the perfect way to decide when it's the last page?
Now I'm using a window with the check EVENT "Only Before End of Main Window", a flag is set in this window, and then use another window for signature block with the condition of flag is on.
This method is not working perfectly, sometimes it works fine, sometimes not.
Please let me know how will you do this, thank you
Best Regards
RaymondHi Raymond,
Try this logic!!!!
I hope you have used table in main window to display items. Just after the table in your main window, create a program line and set a variable(let say "x').
Cretae a separate window to display the signature. In the signature window use a text element to display the required value. Go to conditions tab of text element and set the condition (i.e. check your variable value which you have assignes before) and accordingly your text will get printed.
Hope this will help you to resolve the issue & close the thread.
Do appreciate if found useful.
BR,
Vinit -
How can i let firefox not to remember the last page that i've closed?
At the beginning, Firefox asked me wither to remember the last page that i've closed or not. i accidently chose yes, but i dont know how to change it back.
The [[passwords]] article shows how to delete individual usernames/passwords.
-
How to print a report in half of the A4 page
Hi,
Please help me, how to print a report in the half page of the A4 size paper.
Thanks,Hi
If you are using the command MEW-PAGE PRINT ON
then we can give this layout options
like
NEW-PAGE PRINT ON
DESTINATION <printer name>
immediately 'X'
KEEP IN SPOOL 'X'
LAYOUT 'X_65_132' (OR X_65_255)
RECEIVER SY-UNAME
NO-DISPLAY.
OTHERWISE WHEN YOU SELECT THE PRINTER
IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
you will have this facility to select LANGSCAPE/PORTRAIT
use that and print
Reward points for useful Answers
Regards
Anji -
To print 3 different bar codes on the same page in SMARTFORMS
Hi,
I want to print three different bar codes (HU) per page instead of one in Smartforms. I need to change the print program but I don't know where?
can you help me plzHi,
To display Bar Codes in smartforms you need to create charecter format in smartsyles:
Example :
Charecter Format :BC
Description : Bar Code
Bar code Name : C128A
And next insert two text node in the tempalte
1. &value1& type BC for dispalying barcode lines
2. &value1& type any for dispalying values for the barcode.
This way you can display the values in form of barcodes.
Regards,
Dep -
How to print based on the logic that it is the last page of the report
HI
I want to print something on the last page.For example,I have to print a image(signature) file on the last page.How can I have the logic that it is the last page or any counter or variable to find that it is the last page of the report??
Thanks in advance.Is there an example of this posted somewhere that actually works?
I have used this exact syntax in everyway, every location possible and it either locks my MSWORD window on preview or throws a Java error.
I am using the most current BIP template builder v10.1.3.2.1
Thanks,
Scott
Sample files below:
<?start:body?><?for-each:G_TEST?>
<?TEST1?> <?TEST2?>
<?TEST3?>
THIS SHOULD PRINT ON ALL PAGES
<?start@last-page:body?> PRINT ONLY ON THE LAST PAGE<?end body?>
<?end for-each?><?end body?>
<?xml version="1.0" encoding="WINDOWS-1252"?>
<TEST>
<LIST_G_TEST>
<G_TEST>
<TEST1>TEST Data Line Number One</TEST1>
<TEST2>Test Data Line 2</TEST2>
<TEST3>33 Test Data Line 3</TEST3>
</G_TEST>
<G_TEST>
<TEST1>TEST Data Line Number One</TEST1>
<TEST2>Test Data Line 2</TEST2>
<TEST3>33 Test Data Line 3</TEST3>
</G_TEST>
<G_TEST>
<TEST1>TEST Data Line Number One</TEST1>
<TEST2>Test Data Line 2</TEST2>
<TEST3>33 Test Data Line 3</TEST3>
</G_TEST>
<G_TEST>
<TEST1>TEST Data Line Number One</TEST1>
<TEST2>Test Data Line 2</TEST2>
<TEST3>33 Test Data Line 3</TEST3>
</G_TEST>
<G_TEST>
<TEST1>TEST Data Line Number One</TEST1>
<TEST2>Test Data Line 2</TEST2>
<TEST3>33 Test Data Line 3</TEST3>
</G_TEST>
</LIST_G_TEST>
</TEST> -
I need to print a text but only for the last page in the main window.
I have tried with IF.
IF &PAGE& = &SAPSCRIPT-FORMPAGES&
BOTTOM
....TEXT
ENDBOTTOM
ENDIF
But it prints in all pages in every main window.
Can someone point me what I am doing wrong or how can I do this?
Regards,
CarlosHello Carlos,
the problem with this condition is the following.
The Sapscript composer cannot know during the processing of e.g. the first page,
how many pages will follow. So &SAPSCRIPT-FORMPAGES& still contains the same
value like& PAGE& and is filled with the correct values only at the very end of the processing.
(when the total number of pages is known).
So I suggest you to use the BOTTOM command in the print program,
when the processing of all item of the MAIN window is ended.
There is an other variable &NEXTPAGE&. &NEXTPAGE& will always be 0
when it reaches to last page to print. The problem with this variable that
it can not be used in a condition in MAIN window too, only in a separate page window.
Regards,
Hedvig -
Layout Question - How to print a frame on the bottom of the last page ?
I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page (just the last page).
Thanks in advance.You might like to take a look at the following threads:
Last frame with last record of proceding repeating frame
Re: How to capture a keystroke - including control chars? -
Formatting - How to print a frame on the bottom of the last page ?
I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page.
Thanks in advance.Hello,
I know this is an old post, but I have the same problem. I am unable to access the examples for Note.252881.1 (corrupted file). May I impose on you to send me examples via e-mail? If this is not possible can you point me in a direction where there is "good" documentation on frame manipulations? What I've found on metalink, otn, internet, etc. haven't been too forthcoming.
Thank you. -
How to print a label in the last page of the report
Hi, I have a report af bottom page I trid to put a label, the label is in the margin, but when I change the print condition send me a error, illegal print condition, how can I print this label only in the last page at the botton of the page
ThanksHerbe,
You can do this using format trigger
Please see the building reports manual / Tutorial for details
at http://otn.oracle.com/docs/products/reports/content.html
Thanks
The Oracle Reports team -
How to print last page in smartforms
Hi,
In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
RgdsHello,
According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
The best soln would be,
1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
2) In the driver program ,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
control-no_open = 'X'.
control-no_close = 'X'.
output-tdnewid = 'X'.
PERFORM ssf_open.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
user_settings = ' '
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
output_options = output
control_parameters = control
IMPORTING
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it-1.
CALL FUNCTION l_fm_name
endloop.
CALL FUNCTION 'SSF_CLOSE'.
2) In the smartform
FIRST -> next page -> NEXT
Beneath the main window -> Table, put Command - Goto new page as LAST.
NEXT -> next page -> NEXT
LAST -> Next page -> Blank
I hope this will work as I have done a similiar dev.
Regards,
Radhakrishnan -
How to print in the last page of the script..?
Hi,
I am working on a script. I have a header window and one main window. In the main window, I am printing the line items of the Invoice. Once the line items finish, I have to print the sub totals there. and also to print the company agreement details(around 10 lines of text) in the last page of the script.
So, <b>how to print the agreement details in the last page of the script..?</b>
Can anyone provide me a sample code to find the last page of the Script layout..?
And regarding writing the agreement details, is it better to hard code the text or use the standard texts..? which one is better..?
Regards,
Paddu.HI,
Just create a Standard text, if you are going to use this standard text in other layouts also... and use it otherwise you can hard code it as this its of only 10 lines.
declare one more element in the main window itselft and call it atlast it would print in the last page..
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'<b><- This element should contain the agreement details</b>
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
Thanks
Mahesh
Maybe you are looking for
-
NullPointerException while Inserting New Entity in EJB 3.0
Hi I have created an entity with Three underlying database tables using "SecondaryTables" annotation. I have set "insertable" property to "false" on the columns derived from secondary tables. While persisting a new entity using "EntityManager.persist
-
CTS+ error while transporting
Hi Folks, We have configured CTS+ for our systems using PI7.1 system as the CTS+ system. Please find the below error. Deployment Transport request : SIDK900107 System : SID tp path : tp Version and release: 372.04.40 701 CT
-
My Mac won't open certain files anymore so I can't install new programs.
I accidentally reset the default application used to open new programs that I try to install and now it won't open. It's set accidentally to use ScriptEditor. I'm not sure what "program" was used originally to open them, so I don't know what to reset
-
PO no Search in SXMB_MONI
Hi All, I have designed one Interface from ECC 6.0 to SRM SUS Server. it process the purchase orders. I need to search based on PO No's in SXMB_MONI. So, how to search based on PO No's in SXMB_MONI? Thanks in advance Mahesh
-
public synchronized Product GetProductItem (int productid) throws CategoryException Statement stmt = null; stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select c.CategoryName, p.ProductName from category_product cp