Footer required only on last page of report -template uses @section context

I have created a template that uses a tag - <?for-each@section:G_DELIVERY_ID?>. This is causing the Header and Footer to reset for each new Delivery ID. The template also has a last page only footer which I have added on the second page of template using <?start@last-page-first:body?> tag.
When the XML data has two Delivery IDs with one page data for each. This gives a two page output as expected.
The user requirement is that the last page only footer information in the template (on page 2) should be printed only on the last Delivery ID i.e. only once for the
report, that too on the last page of last Delivery ID. Currently the footer is printed on both pages of the report i.e. for bothe Delivery IDs. How can I achieve this?

Amit,
Did you find a solution to this issue.
Please advice what you have done to fix the issue.
Padma.

Similar Messages

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

  • 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

  • Printing report footer at bottom of last page

    I have a problem with a report I am trying to rebuild - the report is the AR invoice, and requires a footer to be printed at the bottom of the last page. I can get it to come out on the last page, but not anchored to the bottom of it.
    The previous version worked by using a format trigger on the footer and running the report twice, first time poplating a table with page numbers and then second time printing on the last page. This is horribly inefficient and time consuming.
    Is there any way to get this to work in a single pass of the report?

    Hello,
    If you have access to metalink, you can use the example in the note :
    Note.253881.1 How to Create a Report with a Frame Only on the Last Page at a Fixed Position:
    Regards

  • Displaying Footer on last page of report

    Hi:
    Is there a way to display the footer only on the last page of a report? For example, if I have a three-page report, I need the footer to be displayed on the third page only. Any help would be greatly appreciated. Thank you kindly.
    Sincerely,
    Dinesh.

    Hi,
    Use the Syntax <?start@last-page:body?><?end body?> before the footer , if your template is facing any exception include a Section break in continuous (one of the Section break types) before the above mentioned syntax.
    Best Regards,
    Mahesh

  • Print Text only on last page of layout

    Hello Experts,
    I would like to print some text lines only on the last page of invoice. Can any one help me with a formula?
    Thanks!

    I tried the options on the thread, but no luck. Here is what i have
    Page Header A
    Page Header B
    Page Header C
    Details
    Report Footer
    Page Footer
    Say the invoice is 2 pages, i want to print thrid page with only terms and conditions
    Thanks!

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

  • Reports only displaying first page off report

    I have a report on 6.0, but only the first page is being display and its has 11 pages. Reports is not giving me the option to advance to the next page.
    Can anybody help
    Thanks
    Juan

    click on Next Page,Last Page option from main menu.observe this options located just before page: ? box.
    --Raghu                                                                                                                                                                                                                                                

  • Last page of report is missing data

    .Net 2003 & crystal XI release I SP4.  My Ado.net dataset populates correctly and even the Group Tree shows the correct values.  However, the crystal viewer doesn't generate all of the expected detail lines on the last page of the report only.  Is this some kind of bug in the software?

    Well, maybe a little more background would help.  I am populating a dataset through the use of a select command in the data adapter where I join together 2 tables and fill the dataset.  I can fill the dataset without error and all of the data is there and correct.  My crystal report is passed this resulting dataset and has been built off of this dataset.  However, crystal is missing some of the information.  Also, oddly enough if I drop down the group tree pane in the report viewer I can drill down through the information and it IS in fact there and correct but the rest of the main report does not render that information.  So, I guess I don't really understand why the schema would be incompatible in any way nor do I understand why it shows in the group tree pane but not the report.  Is this method not viable for crystal reports then?  Otherwise given that the information still shows in the group tree in crystal isn't this then a bug in the software?
    Edited by: Neil Shimer on Oct 9, 2008 8:17 PM
    Further update - Still having problems.  Tried your suggestion and there is some sort of mapping problem but it doesn't make any sense to me.  I even tried creating a new view on the database, created a new data adapter, generated a dataset from this, connected the crystal to that xsd, etc. and the exact same problem persists.
    Edited by: Neil Shimer on Oct 9, 2008 11:32 PM

  • Want to hide a field in the last page of report

    Hi All
    I have an issue .. can anyone of the oracle techies give me a solution for this ..? pleeaassee
    The issue is that let us say i have a report for 5 pages. I have placed a field on the margin of a report to display CONTINUE.. . Now we dont want this field to be displayed when the report is on the last page. We tried of setting property of the field Print on to All but last page but it is not accepting that
    can anybody provide a solution for that ..?
    Thanx in advance
    Hari

    The problem you're hitting is that the margin area is formatted before the body area in the report. Since this is the case, you don't know if you are on the last page since the body has yet to be printed when you print your "continue" column.
    There are a several ways to accomplish what you want:
    - Guess whether it is the last page and print based on your "guess"
    Normally you'd use a running count along with a total count to see if you've printed the last instance of the repeating frame and are hence on the last page. Since your object is in the margin rather than the body, you'd need to estimate how many records will fit on the page and if there are less then these many records left then you shouldn't print the "continue" field.
    This can be tricky to do if your frame is variable sized so you don't really know how many instances of the repeating frame will be on each page.
    - Place the "continue" field in the body rather than the margin
    To do this, you need to create a fixed sized frame that all your normal layout goes into. This should be sized to your typical page size. Then create the "continue" field after the fixed sized frame (you may need to re-size the body area - do this in "margin" mode). Set the print condition to "all pages" against the "continue" field so that it prints on every page. You can then use the running count/total count method to determine if the last repeating frame has been printed when you come to print your "continue" field.

  • No Data on Last Page of Report

    Hi - I have a 3 page report in Crystal Reports for Visual Studio 2005. It is being rendered via a VB .NET web page that is using the CrystalReportViewer that has the page navigation buttons. Quite often (but not all the time) when you click the navigation buttons to go to the last page it has the text objects for the page but not any of the data fields. The data is completely blank.
    Sometimes when you navigate back to the second page and then go to the third page the data appears. Or some customers click the Print button and then they can see the data.
    The report was working well on an old clunky web server and I believe the problem started when we switched to a new web server. Is the new web server rendering too fast for Crystal or something?
    Any ideas to help view data on page 3 all of the time?

    Hi, Wendy;
    That is pretty strange. Have you ensured that the new server has updated Video drivers? Have you installed the latest service pack for Crystal Reports for .NET 2005?
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    Regards,
    Jonathan

  • How to print text or field (inside a rep fram)on the last page in report 6i

    Hi Everyone,
    I want to print the text on the last page.
    my text is inside a repetating frame.
    as i want to display page no in the filed
    and if it is a last page, display page number appended with Last
    so it will look like
    for 3 pages
    on the first page
    1
    on second page
    2
    and on last page it should display
    3 Last

    You cannot know if you are on the last page or not. See this similar thread: Get value of total pages variable
    Why not put the page number in the margin like this:
    Page 1 of 3
    Page 2 of 3
    Page 3 of 3
    You do that by creating a text field in the margin. Enter this text:
    Page &<PhysicalPageNumber> of &<TotalPhysicalPages>

  • Header and trailer pages in report templates

    Hi:
    I wonder how can i make header and trailer pages in the tamplate reports , so that the objects in the template header & footer report would be inherited to the generated reports. I use Oracle reports 6.0.8 and there is no header section, niether Trailer section in the Template Editor, I've read in the reports online help :"You can use the margin and body of the Header and Trailer sections to create a Header and Trailer “page” as in earlier releases. In future releases, you will be able to add and delete sections.", is there any method i can use to make header&trailer pages in the template.

    I have the same question. This is what I found on Metalink.
    goal: How To Define A Header/Trailer Section In A Reports Template Definition File (TDF)
    fact: Oracle Reports Developer
    fix: It is not possible to have a HEADER/TRAILER section in a Reports Template Definition File (TDF). Templates do not need to have a HEADER/TRAILER section, infact there is no sectioning in a template. They just define the visual layout when applied against a report section.
    This did not answer my question!

  • How to print total amount in last page of purchase orde using xml publisher

    Hi
    I customizing purchase order report using xml publisher.
    i have to print total amount at last every purchse order.
    how to compare carry forward amount in xml publisher

    I think the guys overhere :
    BI Publisher
    can help you a lot better

Maybe you are looking for

  • Stop motion FCPX

    Can stop motion video be done with FCPX like it can be done with adobe?

  • JAVA_HOME running tomcat

    hi! i recently downloaded the Java Web Services Developer pack. the installation went fine, howeve when i try to run tomcat it gives me Bad command or file name The JAVA_HOME environment variable is not defined This environment variable is needed to

  • Why are screenshots saved as png in 10.5? PDF was better

    Screenshots (using shift+apple+4) save as png files instead of pdf. Png blows; they're fuzzy, unreadable and generally makes the handiness of screenshot a waste of time Someone suggested using the new GRAB feature but it's no better. Anyone know how

  • Problem in queue operation

    hello friends, in the vi below if I am putting more than one commands ie strings in command control all the commands start executing one by one and after all commands are finished again they start executing as they are in loop.. for example if in the

  • Adobe Flash Player 11.7.700.169 Crashes On All Browsers

    Hello, recently my computer went completely nuts. Prior to this I did not mess around with anything important on my computer. The next day I start it up and my main browser, Google Chrome, could not load any pages from any website. After a while it t