How to Supress the Second Page in Smart form

Hi,
  I have First page where there is no Main Window and on the Second page is with Main Window.Now lets say if there is item detais then vlaue will be printed on second page but in case there is no Item details so..the second page should not come only the first page would appear i.e. we need ot supress this second page.
Thanks,
Pramod

Hi
just use the command Describe table ITAB lines v_lines.
so v_lines <> 0  means items Exist.
so use this field in the condition
Define a Text ELEMENT for the MAIN window data
Before that text element put a condition based on the v_lines field.
/:  IF V_LINES NE 0.
/E MAIN
/:  ENDIF
So when you give print , if no data in internal table it won't print.
Reward points for useful Answers
Regards
Anji

Similar Messages

  • How to supress a blank page in smart forms

    Hi,
    I am using a command in Smartforms to trigger a new page whenever a new BELNR(Accounting document). My problem is in the output i am getting a first page is blank and remaining pages are ok.
    What i did Is In conditions tab i written as temp NE belnr. So first time temp is nothing so blank page is coming. and in the following text elements i am passing a belnr value to the temp.
    Temp = belnr and in general attributes go to new page check box has been activated. Then how to supress a blnk page.
    Regards
    Ramakrishna .P

    Hi,
    I am not using loop.
    In main window i have the contents as
    Header---- Headers for table
    Main Area---- text elements ( i have fileds slno, belnr,glaccount,cost center,gtext,description,dmbtr,wrbtr)
    In belnr field i have created the command there i am comparing the condition temp ne Belnr and go to new page on conditions tab
    wrbtr text element i am passing the g_temp =belnr
    My requirement is whenever new belnr comes new page has to trigger and corresponding gl accounts need to be displayed and end of the belnr i want to display the footer.
    For your information passing the belnr values from the print program (select options) to smart form
    Footer---footer

  • Epson Artisan 810 in duplex printing, reverses the second page, so that it is upside down in relation to the first page. Does anyone know how to set the second page i.e the reverse side of the page, in the correct direction?in the

    Epson Artisan 810 in duplex printing, reverses the second page, so that it is upside down in relation to the first page. Does anyone know how to set the second page.... i.e the reverse side of the page.....in the correct direction?
    It worked perfectly last week, now there are problems.
    Thanks for any advice.

    Epson Artisan 810 in duplex printing, reverses the second page, so that it is upside down in relation to the first page. Does anyone know how to set the second page.... i.e the reverse side of the page.....in the correct direction?
    It worked perfectly last week, now there are problems.
    Thanks for any advice.

  • How to get a second page in a form letter report after create it by Wizard

    How to get a second page in a form letter report after create it by Wizard
    i've built a report by wizard with a sql-Query
    the sql give me back for example 3 dataset
    and the report prints 3 pages
    dataset 1 - page 1
    dataset 2 - page 1
    dataset 3 - page 1
    thats ok,
    but now I need a second page per dataset ( with only a text )
    so that the report should print 2 pages per dataset
    dataset 1 - page 1 ,page 2
    dataset 2 - page 1 ,page 2
    dataset 3 - page 1 ,page 2
    It's not really clear for me, what to do, to create the second page
    any help ?

    .... found answer in other forum

  • How to know no of pages in smart forms to be printed ?

    Hi,
         How to know no of pages in smart forms to be printed ?
    though i got SFSY structure during run time of smartform , even that was not useful.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output.
    for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
    during debug of smart form i don't  understand how it is calculating no of pages  ,as i kept break point before printing page no in smart form.
    please check my  two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
    Help Required.
    Thanks In advance.

    Hi Prakash,
    You will not get these values during debugging.. Let the program execute completely, you will get the right values.
    As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
    You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
    Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)&  as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How do u get New page in Smart form dynamically

    How do u get New page in Smart form dynamically

    page break in smart form
    Re: New Page in Smart Forms
    Page break inside a loop  in smart form

  • How to deal with multiple pages of smart forms

    Hi everyone,
       i have two pages in smartforms but whenever i show smart form through my program only first page is shown not the second one. i tried with next page attribute of both pages but no resolution.
    thanks alot in advance

    Which solution did you choose ?
    (1) main window on the two pages
    - The first page contains the main window, and its next-page attribute is the second page
    - The second contains the main windows, and its next-page attribute is itself
    - The main windows
    - - Begins with nodes to print on first page
    - - Then a command node force end-of-page
    - - Then some nodes and a table node that are to be printed on second page
    (2) main window only on second page
    - The first page do not contain the main window, and its next-page attribute is the second page
    - The second contains the main windows, and its next-page attribute is itself
    - The main windows
    - - Some nodes and a table node that are to be printed on second page
    Regards,
    Raymond

  • How to control the print pages in se71 form or smartforms

    Dear All:
             I have a issue for control the print pages in se71 form or smartforms.
    For example:my report used form or smartforms to print.it have 12  total pages.but user want to print the .3rd  page.3rd  page is customized.
             How can I do it?
    Thanks
    Sun

    Hi,
    By using command node, with some command we can handle this.

  • Display either ( first and second page ) or only second page on smart form

    Hi All,
    There is a requirement in which we get Program name and smart form name from table TNAPR.Now the smart form contains 2 pages.We have to check condition in the program and based on the condition we have to Display either ( first and second page ) or only second page of the smart form.
    Can any one please tell how to solve this .
    Tahnks in advance.

    SSFCOMPOP-SPONUMIV-->Number range number
    SSFCOMPOP-TDPAGESLCT-->Pages selected for printing
    Data: t_out type ssfcompop.
    If COndition.
    t_out-sponumiv = 'Number Range'.             " 1-2  or 2
    ESLE.
    t_out-sponumiv = 'Number Range'.
    ENDIF.
    OR:
    If COndition.
    t_out-TDPAGESLCT = '2'.        " Else Bot pages will print      
    ENDIF.
    Pass T_out to the function module.
    CALL FUNCTION 'FORM'
        EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    OUTPUT_OPTIONS             = t_out
    *   USER_SETTINGS              = 'X'.
    Regards,
    Gurpreet

  • Issue in printing second page in smart form

    in my smart form i have only FIRST page in tht i have pur order numberwindow, date window and all the item details in mainwindow. my problem is in my page 1 order number and date are getting printed at the exact position whre i  want but when it is coming to the next page that is page 2 order number and date are going out of scope. I cant even change the position of those two windows as it is getting printed properly on 1st page.

    Copy the first page and paste so as to create a second page, now give next page as this second page, and check, if there is any layout issue then make changes in this page, be careful as if you make any any changes, such as deleting some table or template or window in the copied [page it will get deleted in first page to, so only make changes to layout.

  • Unable to see the next pages in smart form

    in my smart form i designed 3 pages...
    in the first page i don't want data in main window...but i gave the main window dimensions as in 2nd and 3rd page(same height and width)...
    in 2nd and 3rd page i want to display the data in main window...
    but when i am trying to see the output i am able to see only the first page ...
    Please suggest me the suitable solution..
    Thanks in advance

    Hi,
    You've originally said.
    in the first page i don't want data in main window...
    yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
    Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change).  So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
    Remove the main window from page 1, set page2 as the next page for page 1.
    As for how to trigger page 3 you'll need to provide more detail on what the condition is.  Do you want multiple copies of page 2 to hold all of the main window data, or just one?  Do you want one copy of page 2 then the rest of the data on multiple copies of page 3.  Be specific.
    Regards,
    Nick

  • How to print the overflow entries in Smart Form

    Hi all ,
    I am having a problem regarding smart forms . I have 30 entries in may data base table . Bt while I am going to print these data in smart form table it is showing only 16 entries .How to print rest of the entries in smart form ? Can anybody give me any solution .
    Thanks,
    Regards,
    Swashrayee
    Edited by: Matt on Feb 20, 2012 10:15 AM

    Hi,
    Are you sure you are entering the data in the main window .
    If you are using the secondary window,there is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. Text and data that do not fit into the subwindow are truncated and not displayed.
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.

  • How to make a last page in Smart Forms

    Hi,
    I'm using 2 pages in my form, the first one (PAGE1) has a main window and prints out a table. The "next page" goes to PAGE1 since i dont know how many results i get.
    Then I have a second page (PAGE2) without a main window, that prints out a text-module containing terms & conditions.
    The problem is that when i run it, only PAGE1 is displayed.
    How can i call PAGE2?

    Thank you so much Sasi, that solved it.
    I was going nuts about this.
    Best regards
    BTW: Right now there seem to be no way of rewarding points to you. Those options are missing on my screen.

  • How to Set the Paper Size in Smart Forms

    Hi Friends,
                     I need to SET the Paper Size to default A4 in a smart form...and in some other case we need to set to other type 8.5 X 11...How can i set it....?

    Moving this discussion to the Scanning & OCR forum.

Maybe you are looking for

  • Did you know? (ATV power consumption)

    leaving your Apple TV connected to a power source when not in use will cost you $7.65 a month in hydro cost (based on prices for Hydro in Vancouver Canada. I am testing the consumption through our Hydro smart panel at home and will post the results a

  • Suddenly have a lot of free space?

    I just synced my iphone to itunes, and all of the sudden I have nearly 5gb of free space!   Up until recently, my phone was always on the verge of being full and the bar at the bottom of itunes confirmed that it was all music, photos, etc. only the t

  • What is this icloud good for

    what can icloud be used for

  • Contact Sheet with Photo ID?

    Hello fine folks, I want to print out the contents of a photo album onto a contact sheet. Bingo ... iPhoto gives me that option. But a digital contact sheet without photo file numbers is pretty much useless. Is there any way to print a contact sheet

  • Any software for Query Optimization?

    Hi, Is there any software to be used for query Optimization Please help me