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.

Similar Messages

  • 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

  • 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

  • Mapping the data from main window to a popup

    Hi Everyone,
    Am an infant when it comes to UI5 development.
    i have been reading up as much as i can, but i need your help with a requirement analysis of mine.
    there is a main window of the UI5 screen, which has the details of a Service order.
    when the user clicks on a particular button(to create a sub service order), certain fields that are available in the main window should be automatically populated in the window that pops up.
    The UI fetches the data from an SAP r?3 backend system using  Odata protocols.
    Awaiting your valuable inputs.
    regards,
    Vamsi
    PS: am sure that this is a very basic question, it would be of gret help if any of you might share some links that will be useful for me.
    Appreciate your help very Much.

    Hi,
    You can bind multiple UI elements to the same property of the same model.
    Data Binding: Getting Started - User Interface Add-On for SAP NetWeaver - SAP Library
    If you want to reuse ui-elemnts I suggest you take a look at
    SAPUI5 SDK - Demo Kit
    Kind regards,
    RW

  • Hi gurus in scripts i want to display more then one main window on the page

    hi gurus in scripts i want to display more then one main window on the page how it is to follow any body explain to me plz.

    Hi all,
        I am printing check printing from F110 with Z-form and it has been assigne to FBZP also..
        My client need to print the check information twise that means main window data two times.
        like this: 
           First main window.  :      invice#       amt            amt
                                               9002          4000          4000
                                               9005          5000          4000
    Al so they want like to print same in down part of the main window.
           First main window.  :      invice#       amt            amt
                                               9002          4000          4000
                                               9005          5000          4000
    For this i  have created instance main window of main window like MAIN    01,  but it is not displaying the data in instnce window data
    in the instance main window. 
    Question: Could you please let me know abt the same or good solution. How to cal main window instance , i tried with  
    /:   NEW-WINDOW      in instance main window part but it also appering in main windoe also.
    could you please let me know how to call instance main window or any other solution to get teh data like my example above.
    thx

  • Displaying bottom text of main window in box?

    Hi all ,
    I am working with a sap script, where i need to display standard text in box at end of the main window.
    The problem is i am unable  to set the dynamic position of the box at bottom of the main window .
    please help me to fix this problem?
    Thanks,
    Vamshi.
    Edited by: VAMSHI KRISHNA on Oct 29, 2008 12:04 AM

    Hi Gustavo,
    Thanks for your reply.
    But here my requirement is the text should be displayed immediately after the data in main window is printed . If i used the bottom window , then it will display exactly in that position despite of the main window data.
    So Is there any way to display text in box dynamically, after main window data is completed?
    Thanks,
    Vamshi.

  • Way of displaying the date on the main screen in addition to the time?

    I see the time displayed at the top of the main screen. Is there a way of displaying the date as well?
    Thanks,
    doug

    But if you leave your calendar application on the main screen, the icon itself will show the day and date.

  • How to display the same content in the two different main windows?

    Hi experts,
    How to display the same content in the two different main windows?
    Thanks in advance.
    sarath

    Hi
    Sorry but you can't have two main windows in sapscripts.
    Regards
    Gregory

  • Reg: Displaying all the items of main window in the same page itself.

    All,
    I am developing an SAp Script form which is using five windows. Out of which third window is the main window. In the main window i am displaying details of item sold. The form prints perfectly when the number of items is with in the limit of the main window height. When it exceeds the main window height a second page with the same format of the first page is displayed with the remaining items in main window. ie 1,2,4,5 window is repeated in both pages.
    I want to display all the items of the main window in the first page itsel and if it exceeds first page show the remainng items in the next page and then display 4th and 5th window. IS it posiible using SAp script. Am i to do some configuration for this?
    Note: I have assigned Next page to first page itself.

    Thanks Anji.
    I understood about display of first and second windows.
    About main window and Fourth and Fifth window i still have doubt. I have given specific height to main window and after that put the fourth and fifth window with specific height in first page itself. So what happens is that When mainwindow overflows it will print up to specified height in the first page. Then prints the Fourth and Fifth window in first page. Then it goes to second window prints the remaining items in main window then again displays fourth and fifth window. Could you please find a solution for this too.
    Regs
    Rakesh

  • SAPSCript how to print  a comment at the end of main window on first page?

    In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
    - Ven

    hi
    good
    yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
    In such senario no need to use a window for footer.
    In the Script form:
    -> In the Main Window itself after all the main data create an Element.
    -> Use BOTTOM and END-BOTTOM; write your footer information between them.
    In your Driver Program:
    -> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
    I'm sure it will work.
    f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
    now insert this code in ur footer window
    IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
    *all code in footer goes here.
    ENDIF.
    &TTXSY-PAGE& holds the page number of current page.
    &SAPSCRIPT-FORMPAGES& holds total form pages.
    This will work.
    write this code then the footer will be printed in last page itself
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    You need to create an element in the MAIN window. You can do it in two ways:
    1. In SE71, you can create:
    /:E FOOTER
    /:BOTTOM
    Text
    /:ENDBOTTOM
    In the print program, just call this element.
    2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
    Ex.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'FOOTER'
    type = 'MAIN'
    window = 'BOTTOM'
    EXCEPTIONS....
    However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
    /:E INIT_FOOTER
    /:BOTTOM
    /:ENDBOTTOM
    Call this after passing all item data.
    reward point if helpful.
    thanks
    mrutyun^

  • Is there a way to display the date and time on my officejet 6500

    HP Officejet 6500a Plus Windows XP_ Is there a way to display the date and time on the display of my printer

    Are you referring to the Date and Time some cameras put right on the image?  If so there is nothing really good in iPhoto to do this. You could try the Retouch tool and see how that looks but I think you will need something more precise and powerful, like the clone tool in Aperture.
    Also something like PhotoShop or GIMP - The GNU Image Manipulation Program (free) should do what you want also.
    If your asking about some other date post back.
    regards

  • Problem in displaying the data of columns into rows in sap script

    hi,
    i am working on a sap script and i have to display the dat which is displayed in column into rows but it is not displaying it properly.
    eg, C
        12.1
        Si
        5.5
    it is displaying the data right now like this but i want to display the  data like this:-
    eg, C      Si
        12.1   5.5
    plzzprovide me guidelines how to solve this problem.

    hi,
    i am using this code to display the data:-
    plzz provide me guidelines where i am getting wrong?
    TOPparCOMPONENT DESP,,,,,, INS. LOT #, , , , , , MIC,,,,,,,,,, MIC VALUEparENDTOPparFINAL
    PROTECT
    IF &I_FINAL-PRUEFLOS& NE '000000000000'
    &I_FINAL-MAKTX(23)&&i_final-prueflos(12Z)&
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ELSE
    &I_FINAL-MAKTX(23)&     
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ENDIF
    ENDPROTECT
    ITEMHEAD
    POSITION WINDOW
    SIZE WIDTH +0 . 4 CH HEIGHT +1 LN
    BOX FRAME 10 TW
    BOX HEIGHT '1.35' LN INTENSITY 20
    IF &PAGE& = '1'
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '43' LN FRAME '10' TW
    For horizontal line at top
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '43' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '43' LN FRAME '10'TW
    ELSE
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '45' CM HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '20' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '47' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '47' LN FRAME '10'TW
    ENDIF
    LINEFEED
    NEWPAGE
    NEW-PAGE
    provide me guidelines to solve this problem.
    Edited by: ricx .s on Mar 13, 2009 5:58 AM

  • Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air

    Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air.  Date on Windows 8.1 is correct.  Thank you.

    Try doing  a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.

  • Footer of the Table in Main Window in Smartforms

    Hi,
    I have a smartform. In that I have declared a main window. And I want the Footer to appear on each page. So, I have checked both the check boxes in the Footer Event of the Table in Main Window.
    1. At page Break
    2. At end of table.
    But it is comming only on the first and last page.
    If I check only 1, it is printing on the first page only.
    If I check only 2. it is printing on the last page only.
    I want it to be printed on all the pages.
    Help needed.
    Thanks in advance.
    Ishaq.

    Hi
    Instead of using the Main window for footer
    Why can't you declare a separate constant window separately apart from MAIN window and use for the footer to print in all pages.
    create another window and write all your data in that and see
    Since MAIN window overflows as the data grows constantly it is coming only on the first and last pages.
    So to appear that on each page a fresh window is useful
    Reward points for useful Answers
    Regards
    Anji

  • How to display the data?

    hi all,
    Im using Java NetBeans IDE 4.1 to create an application. I have connected my apllication to MS Access database by ODBC and then retrieved the data of a field named "student-name" by using method b]ResultSet() , this retrieve all of the name student and store into a single variable, after that, i used Whike() loop and .next() method to read the data stored in the variable and then display all of the data. but i face some problem in displaying the data....
    1) if i display the data using jLabel, then just the last record (eg,last name) will be displayed.
    2) if i display the data using jTextArea and its method ( void append() ), then the record can't be displayed separately row by row.
    Actually I would like to display the retrieved data in 2 way:
    A) display every record in the variable separately row by row by using a single component. And then allow the user to select any certain record.
    B) display all of the records in variable one by one from 1st record to last rocord by using jLabel. Once i click on a button, the 1st record will be showed on the jLabel, if i click again the button then the 2nd record will be showed.
    can anyone help me???
    Thanks,
    ning

    Thanks,
    I have read the information that provided by you. I have made a testing by using the coding provided in that web page. The following is a part of my coding, is it any mistake of that? The coding can be compiled but can't display any data in the list ( i place the code in a event of a button, can i do like that?).
    import java.sql.*;
    import javax.swing.*;
    public class testing2 extends javax.swing.JFrame {
    public testing2()
    initComponents();
    private void initComponents()
    jButton1 = new javax.swing.JButton();
    jList1 = new javax.swing.JList();
    getContentPane().setLayout(null);
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jButton1.setText("jButton1");
    jButton1.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    jButton1ActionPerformed(evt);
    getContentPane().add(jButton1);
    jButton1.setBounds(20, 20, 90, 23);
    getContentPane().add(jList1);
    jList1.setBounds(20, 70, 200, 200);
    pack();
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    DefaultListModel listModel = new DefaultListModel();
    listModel.addElement("Alison Huml");
    listModel.addElement("Kathy Walrath");
    listModel.addElement("Lisa Friendly");
    listModel.addElement("Mary Campione");
    listModel.addElement("Sharon Zakhour");
    listModel.addElement("Alan Sommerer");
    JList List = new JList(listModel);
    public static void main(String args[])
    java.awt.EventQueue.invokeLater(new Runnable()
    public void run()
    new testing2().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JList jList1;
    // End of variables declaration
    Thanks,
    ning.

Maybe you are looking for

  • IF Statement in BI

    Hi BI Experts, Can we write the IF Statemenrt in BI 7.0 Query Designer. Please give me the reply. Thanks in advance. Regards, Anjali

  • HP Mini WIFI driver

    I got a HP Mini running windows 7 starter, in order to connect to the internal newtork we needed to upgrade to Windows 7 proffesional 32 bit. this worked fine except that the wifi driver was missing which is normal in VLSC instatlion of windows and n

  • N8 and western digital external network hdd

    Hello all Nokians I have N8 and i don't know how to connect to my external network hdd. Any help? Thanks in advance.

  • Update query running fine when subquery in where clause is wrong.

    Hi, I am running one update statement- Update table a set column1=2000 where a.column2 in(select col 3 from Table b where b.col4=111) Now when I run the subquery: select col 3 from Table b where b.col4=111-----> It gives me error "col 3 invalid ident

  • Bug in java arrays?

    Hi, just found this in a toy program and thought it might be a bug in the way java handles arrays... I'm working on Suse 8.0 & jdk 1.4, Red Hat 7.x/8.x with jdk 1.4 and Solaris 4 jdk 1.4: If you have a method like this:     public static void resize(