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

Similar Messages

  • 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

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

  • Blank pages in smart forms

    hi am working on smartforms i developed a smart form in which i designed a selection screen it will take run-date and run-id from the user and displays vendors address iten details and description and amount after tht cheque will be printed.
       giving the adress and item details of each vendor in one go.
      in my test data , three vendors are comming one is having 16 line items and the other 5 and 3  now  i want to put a condition i want to pick only those vendors who r having more than 10 items .
      so am using a codition on address window main vindow
      i declared
    data:  V_LINES(3) type c.
    describe table it_regup1 lines V_LINES.
    and in the conditins options i gave 
       v_lines ge or eq to 10.
    so only one vendor is displaying but two blank pages are
    how to supress them
    pls let me know
    cheers
    uday

    hi thanks for the reply
    there is only one page
    first one address winow is there here am displaying vendor name1 name2 street postal code and all.
      in the main window there is a dynamic table for line items in tht regup-xblnr and sgtxt and regup- dmbtr is comming  below tht am printing a cheque . in a preprinted format
    and tht is fine.
       i put a condition in it tht if line items more than 10. am displaying a text for tht particula vendor 'please see the enclosed attachment'. n its over
       in the second smartform am picking only those vendors who has line items more than 10 and am not printing the cheque as in the first one it will be printed..
       so here i put a condition in the command line
    greater than or equal to 10.  so only those vendor who's having more than 10 line items are comming but the problem is          in  my test data there r three vendors one with
    16 items other with 5 and 3 
      so for the first vendor everything is fine and it is showing
    as the window can hold only 10 its going to the new page thts what i want but after tht its showing blank two blank pages   thts the prob
      hope u got my prob if not pls revert back
    cheers
    uday

  • Blank Page in Smart Forms

    Dear All
    A blank page is printing in Invoice through Smart Forms.
    Help Me?
    Thanks in Advance

    Look at these things:
    <b>check how manty pages you designed.</b>
    <b>on each page what you defined in next page box.</b>
    suppose you have 2 pages page 1 and page 2.
    for page 1 next page shold be page 2.
    and for page 2 it should be page 2.
    if still you have a problem then download your smartform and send it to me .
    reward if useful..
    Amit Singla

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

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

  • HT5557 Using IBook, I can't seem to figure out how to insert a blank page inbetween pages that are already set up, like if you want to add some pictures or something.  Anyone have any tips on this?  Thanks, Mark

    Using IBook, I can't seem to figure out how to insert a blank page inbetween pages that are already set up, like if you want to add some pictures or something.  Anyone have any tips on this?  Thanks, Mark

    To enable the form to be signed in Reader you will need to open the form in Acrobat; goto Advanced>Enable Usage Rights and then save this copy of the form for sending out to the users.
    The user should then be able to edit and digitally sign the form. They can then email the signed/saved pdf as a browsed for attachment or via the email icon in the toolbar. Note - if you have created an email submit button on the form, then unless they have Acrobat they could only return an xml file.
    The other way to do this however is to create a dataset by 'distributing' the form. This time the Email Return button will send back a full version of the form. During the distribution setup you will have the option to email the form directly or to save it and send it later,so you can send to users as and when or even post it to a website or intranet.
    When you receive and open the returned form it will ask whether you want to add it to the predetermined dataset (or if you want to categorise the returns into geographical areas for example, you could create new additional datasets at this point). If the form is data heavy however, the dataset will become very large and unwieldy pretty quickly, but you can export the data from it (including signatures) in xml format and import this into an Excel spreadsheet.
    To simplify the Excel xml import process I'd recommend you carefully structure your form in the hierarchy (LiveCycle) into the order you would want the data items to appear in your spreadsheet and switch off those data items that you will not need by setting the default binding for the irrelevant fields to "None".
    Clear as mud? Hope this helps.

  • How can I delete blank pages in iPhoto project?

    How can I delete blank pages in the middle of an iPhoto album?

    I believe you can right click on the images in question and delete them.

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

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

Maybe you are looking for