Leading zero's while printing total pages in Smartforms

Hi All,
I have a requirement where i need to print leading zero's when printing the total number of pages in a smartform.
I have used  Page &sfsy-page& of &sfsy-formpages(Z3.0)&
But for the above we get the output as Page 1 of 2, Page 2 of 2. and so on...
But my requirement is it shoud come as Page 1 of 002, Page 2 of 002.
The total number of pages will always be less than 999. and we need total of 3 numbers displayed.
Ex: Page 1 of 002 or Page 1 of 010 or Page 1 of 100...
Thanks,
Hari Prasad.

Hi Sudha,
We have tried that too and we get the output as Page 1 of 001. Page 2 of 002.
inside the node sfsy-formpages gives the current page number.
Thanks,
Hari Prasad.

Similar Messages

  • How to print specific page in smartform !

    Hello Friends,
                  I like to print specific page in smartform. for Ex. page 4. But when I give page no. 4, the print preview not showing the exact page.
    Thank you for your time.
    Senthil

    Hi Senthil,
    chk this link you get a brief idea abt Smartforms.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Reward points if you find this helpful
    Regards,
    Harini

  • How to Print next Page in smartform ?

    Hello ,
    I want to print next page in smartform.
    The situation is :-
    I am passing an internal table containing list of personal numbers.
    I have to print their details . Every candidate's detail should be printed on a new page .
    I have designed the whole form , but I am not print their details on a New Page.
    Please guide.
    Thanks in Advance.

    Hi, Nikita.
    Please Have a Look the following Link
    [MODERATOR MESSAGE: SapScript/Smartform questions go in FORM PRINTING forum|/thread/1360534 [original link is broken];
    So, Please Post Questions Regarding SapScript and Smartform in FORM PRINTING.
    1. First of all you need to set a Flag at the end of every Personal Number.
    2. Than Right Click on the object Like Main Window
    --> Create --> Flow Logic --> Command
    3. From First Tab of Command General Attributes Check the Check Box Go to New Page and Select Your Page
    4. In the Conditions Tab Give you Flag Condition.
    Hope will help you to solve out your problem,
    Please Reply if any Issue,
    Best Regards,
    Faisal

  • Preview : error while printing several pages per sheet

    I have a pdf file from which I would like to get a pdf with several pages per sheet. I cannot do that using acrobat through printing into a pdf file because it tells me to save it first ! So, as I did before upgrading my OS from SL to Lion, I tried to do it with Preview. The problem is that I get the following message "Error while printing" and no more information.
    - I tried with an other pdf file and I got the same problem.
    - Printing one page per sheet is OK, either into a pdf file or to an actual printer.
    - Printing several pages per sheet from Acrobat to a printer is working fine.
    - I asked to a colleague who is still using SL to do the same procedure with my file and it worked fine.
    My conclusion is that there is something fishy with Preview under Lion.
    Does anyone get into the same trouble than me ? Is there a solution even an alternative one ?

    In the printing configuration window, I selected Layout and then 2 pages per sheet, save in Pdf, select a directory and name then save. At the end of the process, I got the printing error message. Looking at the /var/log/system.log, I got an error message concerning PMSessionEndDocumentNoDialog() returning 1282.
    I am using past because I do not have the problem anymore. My MBP is a bit funny since the Lion upgrade. It looks like windows : from time to time, I get the black screen telling me that I should press the switch on button (like the famous blue screen).
    I am suspecting that XQuartz (last update) is messing-up somehow my laptop (system crashes happened when it was launched or even when it was starting).
    Thanks anyway.

  • Leading zeros deleted while downloading to excel sheet

    Hi ,
    i am downloading data to excel sheet  from internal table, iam using gui_download but its deletin leading zeros can any one tell me as to how i go about this
    for ex i ahve a mterial no : 00123
    i see 123 i want it to be 00123
    Thanks
    kajol

    Hi,
      try to explain to excel, that this field is character field (I think that it will be done by adding single quote as first character of string).
    Pointing to my previous answer try:
    Constants: c_single_quote(1) type c value ''''.   " I _hope_ it works
    loop at itab.
    concatenate c_single_quote itab-matnr to texttab-c_matnr.
    endloop.

  • How to modify total pages in smartforms?

    Hi All,
    In smartform Im printing ' page of total pages' as &SFSY-PAGE& of &SFSY-FORMPAGES(3CZ)&. All are working fine. Now at last I have to print one extra page without page no. So, If the total o/p pages are 16 ( including last page) I have to show i.e
    1 of 15, 2 of 15 .... 15 of 15 , and in the last pages nothing. For this Im moving SFSY-FORMPAGES to one variable and substracting one from it, but its not working, its showing as 1 of 0, 2 of 1 ... 15 of 14..
    so how to decrease the total page number. I think it generates in runtime and in my smartform all windows are in one PAGE.
    So how to do this ? any Idea?

    Hi,
    I think we can try this. Issue new page after all pages. If page less than or equal to total pages, display that, else issue new page.
    /: IF &SFSY-PAGE& LE &SFSY-FORMPAGES(3CZ)& .
    ' page of total pages' as &SFSY-PAGE& of &SFSY-FORMPAGES(3CZ)&
    /: ELSE.
    /: NEW-PAGE.
    /: ENDIF.

  • How to Print Particular Page in Smartform

    Hi ,
         Anyone Give me steps to Print Particular Page when Printing Several Forms in One Print Request .
        Am Using smartform Within the Loop , So  i Used SSF_OPEN And SSF_CLOSE. When am printing the Smartform i gave particular    Page in Dialog Box , But all the pages are Printed.
        Please Help me to Solve this Problem.
    With Regrds
    Kesavaperumal

    Hi Kesav,
    You can do this in Print Control Dialog, when you give printer name as LP01 or LOCL , just below that, one input field 'Page Selection' is available,
    You can give like
    Pages selected for printing
    You can define which pages should be output in the page selection.
    All pages are printed if an entry is not made here.
    You can either specify individual pages or a range of pages. These entries are separated by a comma.
    Examples:
    4     only page 4
    2-5   pages 2 to 5
    -20   up to and including page 20
    3-    from and including page 3
    4,8-10,15-   pages 4, 8 to 10, and page 15 onwards.
    And If you need to control the rpinted copies from the program , you can try with the OUTPUT_OPTIONS-TDPAGESLCT parameter of Functionmodule (which is generated from Smartform).
    Hope this solves your issue
    Rgds,
    Sripal

  • How to print total stock in smartform by material wise

    Dear Experts,
    I am trying to print total material stock which is issued and receipt during entered date in a smartform ,Here  I want to print totatl stock issued n receipt by material wise in seperate line .For that I fetch alldata and put into one internal table .In smartform I am using table for printing data.
    Edited by: BharatRathod on Mar 8, 2010 11:43 AM
    Edited by: BharatRathod on Mar 8, 2010 11:46 AM

    Hi,
    Try using the CALCULATIONS tab in the tables for printing the total stock in smartforms.
    Regards,
    Sharin.

  • 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.
    Rgds

    Hello,
    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 two pages in smartforms

    Hi All,
    How to create two different pages in smartforms.In my requirement the first page contains Table data in main window and in second page only the hard coded desription should be printed containg instructions,but the second page is mandatory after first
    page is completed,the first page may have n number of pages after printing those pages my second page should trigger.Help me if any one knows.
    Thanks in advance............
    Regards,
    Satya.

    hi ,
    once a main window size is declared , then that space will be placed in each page created.
    eg. if a table with header and footer is created, first of all the space for header and footer are allocated and body page is allocated.
    so we cannot dynamically change the size of the main window , even it is a copied main window.
    Otherwise another option is to continue the main window into the second page.
    for that first page main window -> create table -> add page break command to page 2 -> hard code description in template.
    page attribute for first page --> GOTO assign same page ( for continuing the same page)
    Page attribute for second page --> no need default is enough

  • Getting Runtime error while adding Second page in Smartform.

    I added 2 pages in smartform. When I worked with single page. smartform working properly. Now I added one more page(i.e Second page) I am getting runtime error.  ("The current ABAP/4 program encountered an unexpected
    situation".   A RAISE statement in the program "SAPLSTXBC" raised the exception
    condition "ERROR".)   When I debug this standard program Something width problem getting on line number 110. Both width not matched so program raising exception. Can you please tell me to solve this problem what changes will I do in my smartform?

    Please let me know the details of each page.
    Error can occur in these cases.
    1) You copied the first page to second. and later you change the width of second page
    2) You created the second page and there is template in second page. each column width is not matching with the total width of the template.
    3) windows width is greater than the page width
    Please have a look.
    Regards,
    Nikhil
    Edited by: Nikhil V Kumar on Jul 27, 2010 12:16 PM

  • Printing extra pages in smartform

    Hi All,
    i'm new to smartforms.i got an issue on invoice(smartforms).i'm getting 3 extra blank pages in smartform.how and where should i rectify that.can any one help me please.
    thanks in advance

    Hi Mr Rao & Mr Reddy,
    thanks for your prompt responses...added to the question, in the extra page i'm getting spool information.actually the program is set in background.once the invoice is issued the form is sent to printer.and in the spool it is displaying the actual pages only.its not showing the extra pages.but once it is out from the printer,i'm getting the extra pages with the spool information
    the information on the extra page is....
    user:
    host:
    class:
    job:
    these are the four lines i'mm getting on the extra page.could u please help me.
    thanks in advance.

  • Printing Multiple pages in Smartform on Local printer

    Hi guys,
    I have a smartform with a command to print a page with the general conditions.
    When I print this on a defined printer in SPAD everything goes fine (got 2 pages) but when I print this same form thru the Local printer I only get 1 page. It seems the second page is printed over the first.
    Tried it with more pages, 1 with data then general conditions then data again, and it also prints it all on 1 page thru the Local printer. With the third page on top of the second on top of the first.
    Does anybody know how to solve this issue.
    Thanks.

    Hi,
    I checked the printers and they are using the normal SAPWIN type. I tried it with access method F and G but both give the same result. The page format used is the standard DINA4.
    On the print preview it looks fine, when I print it on a printer from my windows session using the local printer it all prints on the first page (so it only shows the last page).
    I tried to add the check SY-TABIX > 1 and it is the same issue.
    The problem seems not to be with the smartform because if I print a layout which do not have a command to add an extra page but it contains enough data to print on multiple pages and we get the same result. Second page is printed over first page.
    Thx.

  • Problem while displaying 2 page in Smartforms

    I'm working on Smartforms.
    My problem is, i have 2 different pages with 2 diiferent main windows.
    The First Page lasts after 7 pages of Data Printing.
    It is coming corrctly.
    I've assign the Next Page as Second Page in the First Page and i'm maintaining a condition in the First Page to go to the Second page.
    Everything is working fine, but in the second page i'm not getting the Main Window.
    What could be the Problem??? Why the control is not going to main window of second page???
    Thanks in advance.
    Regards,

    Well , If you are getting an error as A page cannot point to itself better do this way..
    Let your main window sit in page 1. and create a page 2 and create a secondary window as suggested.
    Now in general attributes of page 1 set the next page : page1 (itself) .
    Create a command in your page1 and set goto next page: page2.
    In your page 2 general attributes leave blank in the next page option.
    This will work.!
    Regards,
    Swetha

  • Print next page with SMARTFORMS

    How can I print the next page with transaction SMARTFORMS?
    I connected the second page to the first in the general characteristics of the first, but when i execute the function only the first is print.
    What's the problem?
    How can I print the second page after the first?
    Thank you.
    CV

    hi,
    In the first page specify any condition, such that the condition get satisfied during the first page and result of which a second page is created with respect to the CHECKED CHECK BOX GOTO NEW PAGE.
    Check for the data on the first page, is it sufficing to the first page only in that case you wouldn't get a new page.
    Refer this wiki for more information
    [Page break|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/pageBreakin+SMARTFORMS]
    regards
    Sharath

Maybe you are looking for

  • HP LaserJet Pro M451nw

    Where can I find step-by-step instruction on setting up wireless printing on HP 400 M451nw? Is it possible to have both printing service via the USB port as well as Wireless connection? This question was solved. View Solution.

  • How to Display Purchase Order Number IN G.R.P.O

    Hi Guys, i am unable to find solution regarding Getting Purchase order number and displaying in Goods Receipt P.O. Report automatically when we copy from purchase Order ie Copy From button .My problem is we are Expecting Purchase Order Number in Good

  • Have a new computer and want to down load previously purchased movies how do i do this

    I have a new computer and want to down load previously purchased movies but can't find them. How do I do this.

  • 3G Ipod Touch won't turn on...

    I have a 3G Ipod Touch and it will not do ANYTHING. I've had it since 2009 christmas I think. I tried to update it on iTunes so that I could sync new songs that my brother had on his 4G iPod Touch. Once I tried to update it, it said I had to restore

  • Help Needed XML query

    I have troubles with my XML query. It returns to many results and double results. My code select xmlelement("test", XMLAgg(xmlelement("Customer", XmlAttributes(a.CUSTOMER_ID "cid"))), XMLAgg(xmlelement("Account", xmlagg(xmlelement("Account", b.ACCOUN