Smartform Main window and Footer Overlap Issue

Hi,
I have a problem in printing my invoice smartform.
I have to print the footer at the bottom of the main window. If the line items flow to the next page the footer should be printed only on the last page.
I have overlapped the main window and footer windows in first and next page so that the footer window space in the main window is not left empty when there are more than one pages
The problem is sometimes the main window is overlapping into the footer window space.
Can someone suggest a solution for this.
Thanks,
Viswas

Hi,
Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
Following are the steps.
Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
The footer window will be behind the main window
Step 2:  Create a folder within the main window say “Check_Footer”.
Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
Step 4: Save & Activate the Smartform and check the output.
regards
Rohit

Similar Messages

  • Porblem in displaying the data in main window and footer in sapscript

    Hi Friends,
    I have created a 2 pages with a main window and 6 footer windows for purchase requistion printout. My requirement is footer windows should only be displayed at the last page. If i bring the footer window at the last page there is blank space in all pages after the main window since the main window size is smaill, if i increase the main window size it is overlaping footer windows at the last  page.
       I want the main window shouldbe big and footer should be displayed at the last page.
       please hellp me to solve this.
    Thanks
    Gayathri S

    If you want to position footer texts right after the last line of the MAIN data (thus, anywhere in the page), you define them as text nodes inside the MAIN window, and you use a template node if you wan't to position them precisely.
    If you want to position footer texts relatively to the page edges (and not relatively to the MAIN), do like this (as my previous answer is wrong):
    - define your footer windows in the same page of the MAIN, select condition "Only after main window" (so that the windows will be printed on the page of the last line of the MAIN data.
    - If the footer windows span over the MAIN window (because you want to maximize MAIN window height on all pages except last where you put the footer, as it was the case for Gayathri), you must add a template node inside the MAIN window, as the last element. Its height must be equal to the part of MAIN that is overriden by the footer windows, so that a new page is triggered automatically if there is no sufficient space and the footer windows will be printed on next page, and if there is enough space, the footer windows will be printed at the bottom of current page.

  • Command issue in smartform main window table footer

    Hello Experts ,
    I got an issue , that really puzzled me ! hope you could help .
    In my smart form main window I have a loop node inside loop node is a table , and there is a footer in this table node.
    in footer event , I only set check box 'at page Break' , and in footer , I created a command to goto another page, but when I preview the layout , there comes an error : 'Page break is allowed only in the main window' . I didn't create any command outside the mainwindow.
    anyone know how this happened ? how should I correct it ?
    or you can tell me antother method to goto a new page when page break .
    Thank you in advance!
    Kevin
    Edited by: kevin wang on Mar 13, 2010 12:46 PM

    Hi,
      The problem may due to not Selecting at the "End of Table" in the footer node.
    My Assumption: According to my understanding since you have selected with at "Page break" only, this night be triggering at every page break and since you have mentioned Goto Next page using command node without printing on the current page.
    You can try by selecting the "At the End of Table" for Footer node, then it should work correctly.
    If you want a Page break after the Footer, then place it after Footer Node, then it should work.
    Thanks & Regards,
    Vamsi.
    Edited by: Vamsi Krishna on Mar 13, 2010 1:42 PM

  • No header, main area and footer in smartforms while creating table in 4.6c

    Hi Experts,
    Iam working in SAP 4.6c version and iam creating smartform for domestic invoice, in smartform i have created table but when expand the table its not giving the option of Header, Main Area and footer, can anyone explain how i can get the above details.. pls reply ASAP as its very important.
    Thanks in advance,
    Abhishek Pandey.

    Hi,
    I had faced a similar situation in 4.6c.
    As clearly stated, you get the Header and Footer from Events.
    The Window defined under Page, should have
    Main window checked in it's General Attributes
    I guess that should get hold of your problem.
    Cheers,
    Remi

  • How to print horizantal lines in smartforms main window  table

    hi ABAP gurus,
           i am faceing the problem in smartforms main window, i created the table, in that header, main area, footer is coming and i am created the line type in that five culamns, i am specifing the header and main area data, after the printing the header information, in main area 5 record or more than 5 records,each record after one harizantel line,  it will be print a table maner i.e 5 culamns and more than 5 rows in a table.
    thanks,
    raj.

    Hi,
    Double click on the table.
    Click on Select pattern icon>Display framed Pattern>Select the Second one (1 row 2nd column)
    Regards
    Sandipan

  • Unable to print main window and associated secondary windows in next page

    Hi All,
    iam print line items values in first page by using main window (table) and associated  terms &condition in second window(template).
    But i want terms & condition to printed in other page.I tried to create COMMAND to manually trigger second page but it doest work.
    Kindly suggest.
    Attached is snap shot of current output(Shaded region are space of dat window).Also attached is overlapping of main and secondary windows.
    Since i need to increase the above template sizes i shifted main window and other 2 secondary window downwards so i wanted them to print in next page.

    Hi abhijeet,
    Add Programming lines before Command before loop statement,
    In that Count the itab using describe table.
    Add condition if count EQ Sy-tabix.
    pass to command line.
    Try this,
    Regards,
    Venkat.

  • Smartforms main window is not printing

    Hi,
    I would like to ask what to do with this problem.
    The smartform main window is not printing in all the pages.  All the other windows, even the window with the total data is printing.  The only problem is the contents of the main window is not printing.
    Also, the problem only happens when the I've changed printer.
    When I use LOCL as printer, the smartform is OK but when I change the printer, the problem is encountered.
    This also happens when I change environment from development server to production server.  In production server, even the LOCL printer is encountering the problem.
    thanks.

    Hi Mike,
    Have you checked the device type in transaction SPAD? Try to click on Full Admininstration from application toolbar and select device types.
    Hope the above helps.
    Cheers,
    Patrick

  • Regarding vertical lines smartform main window

    hi all,
           How can i draw vertical lines in Smartforms. I want vertical lines between columns in the main window and i want the lines from top to bottom even if i have just one record in the table data.
    how can i solve this using table.
    Please reply.
    Regards
    Rami Reddy

    Hi Rami,
    Refer these links.
    Re: how to draw vertical line in a particular window
    http://209.85.175.104/search?q=cache:phjbJwuDWssJ:www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smartforms_technical.File.tmp/SAP_SmartForms_V3.pdfHowtodrawverticallinesinsmartform&hl=en&ct=clnk&cd=3&gl=in
    Or table tab -> ypu will see a box for table pattern - > click on select
    pattern and there u will find many options to draw lines!!!
    below your table, you will have the header line type.
    double click to select it.
    on the right pane, go to attributes
    click on the top left button here (select option) ...
    in the popup, click the display frame button
    select your choice
    activate your smart form. this should work
    Or
    Even you can draw a window as vertical and specify its width as 0
    .02.It will automaticall draw a vertical line of specified parameters.
    Cheers
    Mohinder Singh Chauhan

  • Sapscript MAIN window and character separation

    Hi all
    We have encountered two issues, when we create Form painter.
    How we want to create the form is below.
    Display 6 fileds below at the top of the paper and at the bottom of the paper with correct character separation.
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Ideal Form>
                                        Check
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    <Issue>
    1. We cannot display two main windows.
    What we want to realize is
    print 6 fields 2 times in the same form like labels. but right
    ex)Display 6 fileds below at the top of the paper and at the bottom of the paper
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Issue 1>
    In below, the bottom part (MAIN01) is blank and nothing comes up
                                        Check
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    2.When one field is blank, the character separation become different in each row.
    ex) In below, doc#54322 has no Invoice# then character space for Invoice# is not blanked but the
    space between ACC doc# and Date got really tight
    <Issue 2>
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    If you know the solution, please let me know
    Best regard Masanobu Kubota
    Edited by: Koji Yamada on Jan 8, 2009 5:59 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:00 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:02 AM

    Hi,
    As per my understanding of the question,
    As u need two different pages, i.e. one with a single window n other with 2 windows:
    In script create 2 pages:
    1.Page1 have main window and sub window
    2.Page2 have only main window.
    Now in driver program,
    call function open-form.
       when scenario 1
          call function start-form for page1
               call function write-form etc.....
          call function end-form
       when scenario 2
          call function start-form for page2
               call function write-form etc.....
          call function end-form
    call function close-form.
    Hope its clear.
    Plz revert back if u get any doubts.

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- 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.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • Smartforms: main window side by side at the same page

    Hi friends,
    how can I print the content of my main window side by side at the same page?
    In SapScript is very easy, I just make two "page windows" of the main window and position it.
    Do I need to do this control manually?
    Thanks in advance
    Michel

    Hi,
      I think this is not possible as we have to use MAIN window if our data is going to over flow into other pages.
       Even if we use templates and loop nodes in secondary windows, then this will do fine for one page. But the data is not going to over flow into the next page if we have more data.
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Smartform - Main window

    Hello,
    I need to create a smartform with the following behaviour:
    When the page shown is the last one, the main window has to take half page. On the other hand, when the page shown is not the last one, its main window has to take almost the whole page (I need a bigger main window).
    When only exists one page, the first page is also the last one.
    Thanks in advance,
    Ricard.

    Hello Oscar,
    Its Possible, as I feel.
    Just need to design 2 pages.
    PAGE1: Keep the header and item part as you want to.
    PAGE2: copy the MAIN WINDOW of PAGE1 to PAGE2.
                 Increase the size of the MAIN WINDOW in page2 .This is the flexibility that smartform gives and
                 we don't get this main window resizing facility in SAPscript it remain same in first and second
                 page.
    Navigate to : loop->table->footer.
    Create folder and under folder create window to display your footer details.
    And please unckeck the check box "On page break" in the footer condition tab.
    Hope the discussion was helpful. Revert back in case of any further issues.
    Cheers
    Suvendu
    Edited by: Suvendu Swain on Jun 9, 2009 5:06 PM

  • Problem With Smartform Main window

    Dear All,
    I have a requirement in which I need to print a PO using Smartforms.
    In this requirement we need to check a flag, and based on the flag we need to call the subsequent pages.
    if the Flag is set then I need to print the first page 2 times and after these two pages Terms and conditions page would come.
    In the main window of first page i have put a contition check for this flag.If the condition is true I am calling the First page as Next page and if the condition is not true the Last page(T&C) is called.
    now, the issue is when the condition is true means when I need to  call the first page twice then the very first page of the output is coming fine but when the same page is printed again the item details are not getting printed also the last page is not coming in this case.
    please help.
    Thanks in advance.
    regards,
    Shweta

    When you are calling first page again (as Second page) based on your flag, it will copy the only the content of all windows except main widow.
    To solve your issue, Put the same loop again in the mainwindow with condition which is used for trigerring second page.(Repeat page).
    Regards
    Afsal

  • Truncating Data Output in SMARTFORM main window

    Hi,
    I have a requirement that i will only show 5 lines from a certain table in my smartforms, currently its required to be in the main table because of spacing issue and the possibility that there will be no data from the table.
    My problem is that even though my my table only contains 5 lines..it can/will display 6 or more lines because if the data does not fit the form in 1 page the smartform default will put it in the next line...
    for example in my table:
    1 ABCDE
    2 WWWWWWWWWWWWWWWWWWWWWWWW
    3 QWERTYUP
    4 ASDFG
    5 AQSWDEFR
    display:
    ABCDE
    WWWWWWWWWWWW
    WWWWWWWWWWWW
    QWERTYUP
    ASDFG
    AQSWDEFR -
    > this should have been truncated
    How will I know that i'm using 6 lines already.... or how can i use the width of my main window to know when to truncate the data

    Thanks Karthik D,
    Ive used that approach, i count the maximum number of char in my line using largest letter 'W' (its 85), so i create an internal table with 85 char each row, the problem that exist is that they said that i didnt maximize the whole space the window can handle.
    because when i display all W:
    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    WWWWWWWWWWWWWWWWWWWWWWW
    - it will use all spaces in 1st line before creating next
    but when i use letters like I:
    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
    - it will have another line without maximizing the space in the 1st line...
    *could there be a possible FM that will determine the width i will cover using font style/ number of char....
    Thanks..
    Edited by: Alvin Rosales on Jun 1, 2009 10:22 AM

  • Data overflow in Smartform Main Window

    Dear Experts,
    I need your advice in smartform's main window's data overflow problem. I have a smartform to display invoice output through VF02/3. This smartform contains a main window which contains:
    - Code lines
    - Table
    - Table's main body have some 18 columns starting with Product column (Product name + Manufacturer name), division, rates etc.
    - Table's footer contains some 18 Rows (Terms & Conditions).
    Now my problem is since 1st column of table's main body contains product name + manufacturer's name, data flows to next page. But on 2nd page of Output it will show only one line and rest all page is blank and then on 3rd page onwards data will continue. I don't know why this space is coming between table rows.
    For Eg: if internal table contains 20 records, it will show 10 records (whatever number of rows fits in window) and 11th row on 2nd page and then 12th row onwards on 3rd page.
    Why this blank is coming on 2nd page. I tried using folder, ie, i put all the lines of table's main body in a folder and used page protection option but still same result.
    Please advice any solution.

    Solved.
    In old development a command was written which was triggering new page after 9 records.

Maybe you are looking for

  • How do I find activities folder on MacBook Pro?

    How do I find the activities folder on MacBook Pro ?

  • Extensions/add ons not appearing in photoshop cc2014

    Hi, I've been downloading add ons/ extensions especially for photoshop and i'm not able to see ANY of them in the window-->extensions submenu. Does someone have the same problem? Thanks

  • How to reduce the query fetch from TKPROF output?

    Hi, Below is my query contains the TKPROF output.Here fetch is too high. How to reduce the fetch from here. And please check the explain plan is good or not? SELECT  czci.config_hdr_id,         czci.config_rev_nbr,         asoqla.quantity,          (

  • Problem in SE24 Transaction

    Hi, This is my coding, here after move all the data to internal table(IT_EMP), i should export this internal table, i declared this internal table as export parameter, but error is coming IT_EMP has already been declared, then how i can export this i

  • Unexpectedly Quitting Applications

    I posted on the Macbook forum about this problem and didn't ever get a solution, so I figured I'd try the OS forum. I have consistent problems with unexpectedly qutting applications. Mostly this is with AIM, but I also have had problems with VLC and