Need to increase main window size except last page in smartforms

I have only one main window in a smartform to print a invoice. Currently the mainwindow size is small because i added some additional info to print at the end of the main window.{i.e with some tax details}. All the pages execpt the last page has free spaces. Now the requirement is to increase the size of the main window to avoid the blank spaces except the last page.
  I have used the SFSY-FORMPAGES. THIS is not working to identify the total no of pages of the form. i have condenced it also.
Can anyone give some details to solve this.
Thanks in advance.

Hi,
I don't understand ... the size of the main window is not link between the different page ... so there is no problem.
My main window in all the form are never the same size between first page and next page.
Rgd
Frédéric

Similar Messages

  • Increase main window size in the second page

    Dear Experts,
    In my first page i have the main window, i want to increase the size of main window in the secon page. how?

    Hi Venkey,
    When you have two or more pages in a smartform it is necessary that each page should have it's main window. But one important thing is that all the main windows of all the pages should be of same width and height. You cannot have different measures for each of the main window. If you do so you will end up in run time error.
    In second page, add window and make it as main window. Make sure that width and height is same as main window   of first page. Next add another window and make it as secondary window. Later add any components like templates, texts etc to this secondary window. Otherwise they will not be shown up during print or print preview.
    Let me know if you have any further issues.
    Thanks,
    Rajesh

  • How to increase main window size dynamically in sapscript

    Hi,
    I have to print all records which are available in internal table in a main window.The main window is in between two variable windows.And below two other varaible windows are there.
    I want main window size to be increased as per no. of records available(max 12 records) in internal table.
    If the specified size is insufficient then the variable window which is below the main window should move below to accommodate the records available in internal table.
    This is very urgent requirement.
    Please help me.
    Regards,
    Vidya

    Hi Vidya,
    Main Window size cannot be changed dynamically.
    They are static values.
    However,  i hate to say this again but
    if you use a table with a footer the footer of the table will move up if the number
    of records are less. Sorry for not having a more positive reply.

  • Need to place the window only in last page in script

    Hi,
      I want to place the footer window only in the last page.If it has 2 pages the footer window shhould come in second page only if there is only 1 page then it should come in the first page.
    can anyone tell me how to do this in Script.

    HI Camila,
    In such a case, donot use the footer of the Table , but create another window-FOOTER which is positioned after your table, with such a design, your footer would alwyas come only at the end of the Table.
    This is a simpler approach.
    The other approach could be to set Conditions in the condition tab of the footer , such as it comes only on the last page.
    If you take my suggestion, i would say use the 1st option i have explained.
    This will help you.

  • Smartform doesn't show preview when the records exceed the main window size

    Hi
    When i print the smart form having line items exceeding the main window size on the page it does not show the preview. The internal table loop goes into infinite loop. Is there any means whereby if the records don't fit on the main window of the page will be continued to the next page. Right now I have no clue how it is to be resolved. I feel the problem is in layout, as when i remove the main window the internal table code works fine and it does not move in infinite loop. Please help me resolve this issue.
    Thanks in advance

    Hi
    I have deleted the table from main window and instead inserted a loop.
    Also i created the two pages. But the problem still persists.
    But for my requirement my each line item in the main window has 3 lines.
    Also my layout will be the same for all pages so is there a need to create a new page.
    Is there any mechanism whereby if the line items dont fit on the mainwindow of the page will automatically continue on another page without having to define it.. please guide? Right now the smartform goes in infinite loop if it doesn't fit in main window size
    Thanks

  • HT1461 I created a partition and installed Windows through bootcamp. But I need to increase my partition size due to me needing more space on the windows side. Can I do this with bootcamp, and how do I do it?

    I created a partition and installed Windows through bootcamp. But I need to increase my partition size due to me needing more space on the windows side. Can I do this with bootcamp, and how do I do it?

    Welcome to Apple Communities
    You can delete the partition in Boot Camp Assistant or use Camptune to modify it

  • Dynamic main window size

    hi all,
    Mian window size should vary based on the value.
    This is my situation ... if my footer window is not printed the space is left blank, but my scenerio is to cover the blank space with my main window when my footer window is not displayed.
    for example when the data exceeds first page then my footer window willbe printed only in the next page, so space left by the window should be filled by main window .
    how to dynamically chage teh main window size based on the footer window...
    Please provide me the details.
    Thanks in advance.
    Suresh RR

    Hi Suresh,
    Theres no need to use a dynamic main window. All you have to  do is to print the footer on the last page if theres no content in the main window. I will explain how.
    Just create a main window that fills up the page to the end. Use a text element for printing the main window content. Once that is done check &PAGE& equal to &SAPSCRIPT-FORMPAGES& (This field contains a number representing the total number of pages of the currently formatted form). Once that is done it means that the last page is reached. Then you call another text element having the footer text or data. that way you cqan print the footer in the last page without modifying the main window.
    Reward if helpful.

  • I need to call main window from a Standard program

    I need to call main window from a Standard program for SAP Script. I have wrote the code like this but it is not working. Kindly help me on that.
          FORM OPEN_AND_START_FORM                                     
    FORM open_and_start_form.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = space
          form     = 'ZOTC_SLI'
         language = print_co-spras
         OPTIONS  = pr_options
        EXCEPTIONS
          canceled = 01
          device   = 02
          form     = 03
          OPTIONS  = 04
          unclosed = 05.
      CHECK sy-subrc IS INITIAL.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window  = 'MAIN'.
    ENDFORM.                    "OPEN_AND_START_FORM
          FORM CLOSE_AND_END_FORM_FORM                                  *
    FORM close_and_end_form.
      CALL FUNCTION 'END_FORM'.
    ENDFORM.                    "CLOSE_AND_END_FORM

    Hi,
    FORM CLOSE_AND_END_FORM_FORM *
    FORM close_and_end_form.
    CALL FUNCTION 'END_FORM'.
    change this to CALL FUNCTION 'close_FORM'.
    as you are not using the start_form
    you can use End_form
    i hope you understand now
    ENDFORM. "CLOSE_AND_END_FORM
    reward points if helpful.
    thanks & regards,
    venkatesh

  • Need to Increase the Font Size of a screen field in a Dialog Screen ?

    Hi ppl,
    I have a requirement wherein i need to increase the font size of one field on a dialog screen .
    i was going through the threads and found this which has beautiful example given by vijay
    Increase text size in Screen
    But I'm facing a problem in implementing it since the value in the field (of which the font size needs to be increased) depends on a nother field filled by user at runtime only.
    Can anyone gimme some suggestions or alternative way to solve my problem
    Thanks
    Sachin Soni

    Hi Sachin,
    There is not way to change the font style.
    But you can add ur own text through icons or graphics.
    Create your own graphics or icons and include it in ur module pool.
    Or,
    Goto the Layout Editor of your Screen.
    Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that -> will open a Popup -> in that set Area Title to TRUE.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • I need to print the footer in all pages except last page.

    Hi,
    I'm working on PO RTF template. I got one probelm, I need to print the footer in all pages except last page.
    Can someone help me in this.
    Thanks in advance.
    Venki.

    This question has been answered already multiple times - please search the forum before posting a question - in case you did and you didn't find it - we added a feature
    in 5.6.2 to solve this problem - It is described in the user guide in the RTF template section search for start@last-page:
    Last Page Support
    XML Publisher now has the ability to show content only on the last page. This is useful for documents such as checks, invoices or purchase orders where you want want content such as the check or a summary in a specific place only on the last page.
    The basic command is:
    <?start@last-page:body?>
    <?end body?>
    http://forums.oracle.com/forums/search.jspa?threadID=&q=%40last-page&objID=f245&dateRange=last90days&userID=&numResults=15&rankBy=9
    Any content above or below these two tags will only appear on the last page of the document.
    Hope that helps,
    Klaus

  • How to print main window data in second page without header

    hi friends.,,,,,,,,,,,,,,,,,,,,
    I am printing billing docu details in main window ,the data is coming in two pages but there is problem in printing as the tables is continuing in second page the line is not coming for the table for first row,space is also coming for second page for header .
    my issue is to remove space before printing table and line should come for the table for 1st row in second page.
    please help .
    thanks in  advance.

    Hi Raghukumar,
    1. For the line not coming on the top row of the second page, check if the rowtype u have used in the table has been given a border on the upper side.
    2.For the space issue in the second page, I assume you might have used only a single Page in your smartform and the same page is called again.Hence as per the main window size and length data will be displayed in all pages of the smartform.
    You may need to create a second page with the Main window length occupying the compete page so that data display starts from the top of the page. next Page attributes of the smartforms should be entered accordingly.
    Please try to elaborate your query to help us understand your issue.
    Regards,
    Rijuraj

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Printing of MAIN window details on different pages

    Hello,
    I have creates a smart form with 2 pages (invoice & packing details) containing MAIN window in each page. Also created secondary windows for respective pages with changed data. There is one interface table. When I print this form all the details are getting printed correctly on both the pages except MAIN window details on 2nd page (i.e. packing details). On 1st page MAIN window is getting printed correctly but on 2nd page it doesn't. I try to put break point on MAIN window in 2nd page both it doesn't get triggered. Can some one help me to know the reason.
    Rgds
    Rajeev

    Hi,
    A small writing mistake in my earlier reply.
    Hi,
    I believe you have two pages ( FIRST page layout is for Invoice details ).
    If the first page is spilled over to second page then you have problems with the packing details which is to be in the second page.
    In that case design another page as NEXT page same as that of the FIRST page and for the FIRST page you mention the subsequent page as NEXT.
    Then use a command in the NEXT page and mention Goto--> SECOND page for the layout of packing details with proper condition.
    And display the packing details under the command.
    regards,
    Ram

  • 2 main windows in 2 different pages with different layouts

    Hi Guru's,
    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,
    Adi.

    Try like this:
    1. Set the Next page of the FIRST as FIRST
    2. In the MAIN window of the FIRST, after completing the TABLE, create a command which calls the SECOND PAGE.
    3. In SECOND page, create a MAIN window, with differnet name. If you create a same name, system will automatically refer the MAIN window in the FIRST page.
    4. Set the next page of the SECOND as SECOND.
    Regards,
    Naimesh Patel

  • To display vline if main window flows to next page in SAPScript.

    Hello,
    We are facing issue that we have to put vertical line at the end of page , if main window flows to next page.
    In our case, we have payment done for different currencies as well, so that means if for first currency USD we have 20 records then after 16 records page gets break then we want sy-vline to print there and next 4 records in next page, similarily for next currency EUR, then if we have 4 records it gets displayed on one page only, so no vline is required then.
    So like this if we have 3 pages to be displayed then on first page it should displayed vline as records gets overflowed.
    May be in Script we can have more than 3 pages as well, so at different currency when we have more records then only it should show vline, otherwise not.
    Also we have signature window inside main window, so on next page it should not display line after signature.
    So please help us for finding the solution to this issue as its really urgent.
    Thanks.

    Hi friend,
    So as of now you know that the line count for a page is 16.
    So after displaying records in main window just check the sy-index or keep a variable incremental for the loop.
    Check whether the variable count is 16 and put a sy-vline. So if we have less number of records or if we have a signature window the vline wont be executed.
    This will only be executed when there are 16 records for a page. So for better handling you can use the number of lines per page dynamically. Ie to know the size of lines in the page dynamically.
    Else use of end of page command to draw lines at the end of page. But the end of page command should be used inside an if else command.
    See the link below for more options in Scripts Link : [Editing Format Actions|http://help.sap.com/saphelp_nw70/helpdata/en/ce/6f0f82ea6311d18e2f0000e83dd9fc/content.htm]
    I think this solves your issue. Please revert back to me if you face any issues. I will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 31, 2012 4:27 PM

Maybe you are looking for

  • Syncing IPod to Itunes on G5

    I had posted this on the "IPod" forum. So far no response, so I would like to try it here. After 5 plus years of success I can no longer sync my classic IPod to ITunes on my G5. It will sync for a short time and move some songs to the IPod, but then

  • IMAC Wireless Internet Connection Problems All Of A Sudden

    My Imac is well over a year and a bit old and has been able to connect to my wireless internet connection absolutely fine until the past week and a half. At first the connection wouldn't work and when I would turn my airport on and off and reset the

  • No disc recognition

    I have a Pavillion a1710n.  When I place a disc from my Sony Handycam into the DVD drive, J, my computer does not recognize that there is a disc in the tray.  My video camera does not have any ports for me to hook up an USB cable to download the vide

  • External item category value

    If I change the external value of the field EPSTP concerning a language translation,in the following example (ES) from V to U, when I receive a SAP upgrade will I loose the new value - U? Is it going to be replaced by V? Int Code <b>7</b>            

  • Regarding the lenght of the string?

    hai friends,    can any one tell me how to find the length of the string..? ex: data x type string x = 9989. where now length of x is 4. so how can i  find what is the length of the string,..? regards satish.v