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.

Similar Messages

  • Need to print some text only in last page in SAP script

    Moved to correct forum by Moderator.  General wasn't right either.
    Hi All.
    I need to print "Remarks" only in last page of sap script.
    Can anyone please help me on this.
    Thanks
    Senthil kumar V.
    Edited by: Matt on Nov 21, 2008 7:38 AM

    Hi,
    you have 4 possibilities.2 at non main window, 2 at main window.
    at non main window.
    1. /: IF &PAGE(C)& = &SAPSCRIPT-FORMPAGES(C)&
    remarks
    remarks
    remarks
       /: ENDIF
    2, /: if &NEXTPAGE& ='0'.
    remarks
    remarks
    remarks
       /: ENDIF
    at main window
    3. Add the remarks at the last item of the main which is printed
    4. add a new item to your main (/E)
        put your remarks in it.
       Change your program in such a way this item will print as last one.
       like
        /E REMARKS
    remarks
    remarks
    remarks
       and in sapscript program add logic at the end.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'REMARKS'
    EXCEPTIONS
    element = 1
    window = 2.
    I am sure this will do. Make a choice.
    Gr., Frank

  • 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

  • SAPScript:  why the window only show the LAST line

    Dears,
    In my form, one of the window only show the LAST line of the it.
    I have set the window enough space,  also when  debuging the program , open_form, write_form,
    all of those sy-subrc = 0.
    both static texts and dynamic texts are set  in the window,   but only the last line shown.
    Anyone could help me?
    Thanks a lot.
    Sincerely,
    Julie Lv

    Hi,
    There are several possibilities to resolve your problem.
    You can work with 2 main windows on in1 page.
    With NEW-WINDOW you switch to the next main-window
    How to use it.
    make an item in main window with that /: NEW-WINDOW command
    if you are ready with first loop call a WRITE_FORM with that NEW-WINDOW statement.
    to cojntinue in the other main.
    Other possibility is. (in case there are not ot many lines)
    Use for every line other variable names.
    Fill these in the loop. And after loop WRITE FORM
    eg. (if maximum is 3 lines)
    &VAR1_1& &VAR1_2& &VAR1_3& &VAR1_4&
    &VAR2_1& &VAR2_2& &VAR2_3& &VAR2_4&
    &VAR3_1& &VAR3_2& &VAR3_3& &VAR3_4&
    Hope this helps.
    Gr., Frank

  • Firefox won't open a message tells me it is all ready running I need to close the window to open firefox. Firefox is not open so why do I get this message

    When I try to open firefox a box opens up and tells me firefox is already running in another window and I need to close the window if I want to open firefox in a new window. Firefox is already closed, nothing is left open when I close out firefox. I would only have this problem once in a while but now it is happening more often why?

    Open Task Manager and click on the Processes tab. Scroll down to "Firefox.exe" , click on that line and click on "End Process" button.

  • Not able to find out the path where i need to place the .plx file on server

    I have to make some changes in the PLL (library) file and compile it into it's .plx file and move the .plx to the server.
    I am not able to find out the path where i need to place the .plx file on the server.
    I have placed it in /iasapp01/app_name/library,but it is not taking it into effect.
    Please help,if anyone knows about this,as to how to solve this issue
    Thanks
    GAG

    Hi Andreas,
    My Forms Version is 9.0.2 and the application server is 9iAS( 9.0.2)
    The variable FORMS90_PATH in the .env file has the following entries
    FORMS90_PATH=/iasapp01/app_name/fmx:/iasapp01/app_name/library:/iaspp01/app_name/html
    and i have placed the plx in the /iasapp01/app_name/fmx path,but somehow its not referencing it.
    My Formsweb.cfg has the following entry...
    [app_name]
    pagetitle=app_name_WEB
    serverapp=/app_name/app_name
    width=800
    height=550
    colorscheme=blue
    separateframe=true
    form=log.fmx
    otherparams=REPORT_PATH=/iasapp01/app_name/html/report_files/ FILE_PATH=/iasapp01/app_name/rep/
    WEB_PATH=http://server.com:7778/app_name/
    envfile=/ias01/app/oracle/product/ias_9.0.2/forms90/server/app_name.env
    I have another question which is ..Does applciation built on Forms 9.0.2 would work on Internet Explorer 8 and Windows 8 environment using Sun JRE.
    I was going through this website
    http://nutthaphon.blogspot.com/2009/05/how-do-jinitiator-and-jpi-parameters.html
    and followed the steps as mentioned,but it did not work for me.
    Can you help me if you have any info on this?
    Thanks
    GAG

  • How to get footer only in last page of report

    anybody tell me
    1).how to get footer only in last page while we are displaying reports
        and header only in first page .
    2) how to create search help and how to use it .
    3) how to create lock objects and how can we use it

    Hi
    This posting has an example of using a splitter container:
    Changing width of a custom container dynamically
    This posting has a discussion about using TOP-OF-PAGE:
    Display Page numbers in ALV
    This posting has an example of using picture control:
    Insert picture in selection screen.
    This posting has an example of putting a picture on top of an ALV grid:
    Logo in OO ALV Grid
    The page footer is defined using the statement END-OF-PAGE.
    The processing block following END-OF-PAGE is processed only if you reserve lines for the footer in the LINE-COUNT option of the REPORT statement.
    <u><b>CREATION:</b></u>
    Go to SE11 Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    <b>Creating Search Help:</b>
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_imp.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee2b446011d189700000e8322d00/frameset.htm
    A lock object is a virtual link of several SAP tables which is used to synchronize simultaneous access by two users to the same set of data ( SAP lock concept).
    Locks are requested and released in the programming of online transactions by calling certain function modules which are automatically generated from the definition of the lock objects. These lock objects must be explicitly created in the ABAP Dictionary.
    <b>To set locks, you must perform the following steps:</b>
    1. You must define a lock object in the ABAP Dictionary. The name of the lock object should begin with E.
    2. The function modules for requesting and releasing locks which are created automatically when the lock object is activated must be linked to the programming of the relevant online transactions.
    <u><b>Reasons for Setting Locks</b></u>
    Suppose a travel agent want to book a flight. The customer wants to fly to a particular city with a certain airline on a certain day. The booking must only be possible if there are still free places on the flight. To avoid the possibility of overbooking, the database entry corresponding to the flight must be locked against access from other transactions. This ensures that one user can find out the number of free places, make the booking, and change the number of free places without the data being changed in the meantime by another transaction.
    <u><b>Lock Mechanisms in the Database System</b></u>
    The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.
    Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System.
    <u><b>SAP Locks</b></u>
    To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.
    The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.
    Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary. A lock object definition contains the database tables and their key fields on the basis of which you want to set a lock. When you create a lock object, the system automatically generates two function modules with the names ENQUEUE_<lock object name> and DEQUEUE_<lock object name> . You can then set and release SAP locks in your ABAP program by calling these function modules in a CALL FUNCTION statement.
    <u><b>Lock Types</b></u>
    There are two types of lock in the R/3 System:
    <u><b>
    Shared lock</b></u>
    Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks.
    <u><b>Exclusive lock</b></u>
    Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.
    example uses the lock object ESFLIGHT and its function modules ENQUEUE_ESFLIGHT and DEQUEUE_ESFLIGHT to lock and unlock the object.
    For more information about creating lock objects and the corresponding function modules, refer to the Lock objects section of the ABAP Dictionary documentation.
    The PAI processing for screen 100 in this transaction processes the user input and prepares for the requested action (Change or Display). If the user chooses Change, the program locks the relevant database object by calling the corresponding ENQUEUE function.
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'SHOW'....
        WHEN 'CHNG'.
    * <...Authority-check and other code...>
          CALL FUNCTION 'ENQUEUE_ESFLIGHT'
    EXPORTING
    MANDT = SY-MANDT
    CARRID = SPFLI-CARRID
    CONNID = SPFLI-CONNID
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3.
    IF SY-SUBRC NE 0.
    MESSAGE ID SY-MSGID
    TYPE 'E'
    NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    The ENQUEUE function module can trigger the following exceptions:
    FOREIGN_LOCK determines whether a conflicting lock already exists. The system variable SY-MSGV1 contains the name of the user that owns the lock.
    The SYSTEM_FAILURE exception is triggered if the enqueue server is unable to set the lock for technical reasons.
    At the end of a transaction, the locks are released automatically. However, there are exceptions if you have called update routines within the transaction. You can release a lock explicitly by calling the corresponding DEQUEUE module. As the programmer, you must decide for yourself the point at which it makes most sense to release the locks (for example, to make the data available to other transactions).
    If you need to use the DEQUEUE function module call several times in a program, it makes good sense to write it in a subroutine, which you then call as required.
    The subroutine UNLOCK_FLIGHT calls the DEQUEUE function module for the lock object ESFLIGHT:
    FORM UNLOCK_FLIGHT.
         CALL FUNCTION 'DEQUEUE_ESFLIGHT'
              EXPORTING
                  MANDT     = SY-MANDT
                  CARRID    = SPFLI-CARRID
                  CONNID    = SPFLI-CONNID
              EXCEPTIONS
                  OTHERS    = 1.
         SET SCREEN 100.
    ENDFORM.
    You might use this for the BACK and EXIT functions in a PAI module for screen 200 in this example transaction. In the program, the system checks whether the user leaves the screen without having saved his or her changes. If so, the PROMPT_AND_SAVE routine sends a reminder, and gives the user the opportunity to save the changes. The flight can be unlocked by calling the UNLOCK_FLIGHT subroutine.
    MODULE USER_COMMAND_0200 INPUT.
      CASE OK_CODE.
        WHEN 'SAVE'....
        WHEN 'EXIT'.
          CLEAR OK_CODE.
          IF OLD_SPFLI NE SPFLI.
             PERFORM PROMPT_AND_SAVE.
          ENDIF.
          PERFORM UNLOCK_FLIGHT.
          LEAVE TO SCREEN 0.
        WHEN 'BACK'....
    <b>
    Another Example</b> :
    please see this link with Screen shot .....
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm
    Reward all helpfull answers
    Regards
    Pavan

  • How we can use footer window in a last page?

    I m making SAP SCRIPT..
    How we can use footer window in a last page?

    Hi vikas,
    is it that you want to use footer window to be printed in last page...then do like this,
    command to be used:
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    and go thru the link and revert back if any quiries r present..
    http://sapscriptcode.blogspot.com/2007/05/print-footer-notes-only-on-last-page.html
    pls reward if helps,
    regards.

  • 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 output particular text in main window only in first page

    Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

    Hi,
    Try this.
    /: IF &PAGE& = '1'
    /: ENDIF
    Thanks,
    Naren

  • I need to reduce the size of a 150 page report

    I need to reduce the size of my 150 page report.
    Presently I have opened and copied about 25 MS Outlook 2007 personal e-mail messages into the Word document. Please advise if one of your programs would solve my problem. If so please recommend the correct program. This is a one shot report of this size.
    I am using MS 2007 Word, Outlook, Excel and Google Chrome.
    Thank you for your support.
    Regards,

    Hi Earle Rheaume ,
    Using Adobe Acrobat you can directly convert the emails to PDF which would be less in size as compared to a DOC or Excel.
    Also, you can convert the existing word or excel file to PDF.
    Thanks,
    Vikrantt Singh

  • Why doesn't Firefox recognize the Windows Live Mail login page as such and offer to remember the password?

    For most other sites' login pages, Firefox recognizes that they are login pages and offers to remember my password. For the Windows Live Mail login page it does not.

    That log in page is created via JavaScript and the Password Manager doesn't work in that case.
    You can see that if you inspect the page source.
    *Firefox > Web Developer > Page Source
    *Tools > Web Developer > Page Source (Ctrl+U)
    *Right-click on a web page to open the right-click context menu and select Page Source
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=518516 bug 518516] - Make login manager work with JS generated forms (after pageload)

  • 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

  • Footer note on last page of script

    Hi All,
    I want to display a footer note on the last page of script. For that I am writing following code in my script.
    :/BOTTOM
    :/IF &NEXTPAGE& EQ 0
    END OF SCRIPT
    :/ELSE
    CONTINUE ON NEXT PAGE
    :/ENDIF
    :/ENDBOTTOM
    Also I am using top of page using top & endtop.
    It is working fine.
    Regards,
    Dilip
    Message was edited by: Diliip Gupchup

    Hi,
    Check this one
    Re: Printing Footer in the output.
    Re: Smart Form Footer help
    Thanks & Regards,
    Judith.

  • I can open the window only once, once i close it, i need to restart my laptop to open firefox again

    i can open my firefox window only once, if i close it, i cannot open it again, it is not working. i need to restart my laptop again to open it. This had been happening from the date i did the recent update for the new version.

    No, as many times as you need. Log into the App store with the same Apple ID you used when you first downloaded it. Where it says Purchase,  option click and it will change to install. Next time you download it, before you install, keep a copy on a USB drive or external drive to save downloading it again and wasting power and Bandwidth.
    Good Luck

Maybe you are looking for

  • JAVA MPG code [/i] or whatever the tag is

    This is an MPG code I am working on. It can build and run, but it does not find the average and I'm not sure why. Ithink I have something out of place, possibly missing a key piece of code. I have spent WAY too much time trying to figure it out by tr

  • Sun App Server 8.1 and 8.2 could not start

    Hi friends, thank for various suggestions. pls i'm having problem with Sun App Server 8.1 and 8.2. I installed Portal 7 on Red Hat Enterprise Linux 3 and also Sun Portal 6 on Suse Linux 9. The problem is that App server keep giving Login exception af

  • A NEW UPDATE (12/8/10)

    This morning when I turned on my phone there was a new update. It had something to do with Goggle and a couple of other things. On my main page I got a new icon that say Goggle Search BUT up at the top where the time, 3G network symbol, battery level

  • Facing a problem on youtube website

    hello! i'm facing a problem on youtube website look at these pictures and you will understand what i'm trying to say: http://i.imgur.com/NWMNZS0.png everything is alright, but when i try to click on show the comment i get this: http://i.imgur.com/wJf

  • Cisco RV042G DMZ for WAN 2?

    Hi, I run my business network on the 192.168.x.x range with a server set as 192.168.2.4 statically. The router is currently connecetd to two DCHP wan connections from my ISP, I'm on a residential consumer plan. It has defaulted to loadblanacing with