How to identify last page of a group

Hi reports gurus!
I'm trying to have report of employee(table emp) group by department(dept). I want to have 5 employees per page and per departement. A department can have 10 employees. So we'll have 2 pages for this department.For Each page a want to have sum of salary. Only at the last page of a department i want to have the sum of salary per page and also total of salary for the current department.
So i want to know how to identify the last page of departement in order put only on this page the sum of salary for the departement?
PLZ help is't very very important.

Repeated masterpages use the same logic as any other repeated object - they have instance numbers.
To address the second instance you can use an expression like.
xfa.resolveNode("form1.masterpage[1].subform").presence = "hidden";
If you're not sure about the correct SOM expression you can use a small script for testing.
Put a textfield into the subform you want control.
Add this script into its calculate event.
this.rawValue = this.parent.somExpression;
If you preview the form in Designer you'll see the SOM expression of the text fields parent, which is the subform.
Copy it and put it into the script to hide the subform.

Similar Messages

  • Suppress a field in the page footer unless it's the last page of the group

    Hi,
    I have a report set up where one can pull invoice information.  There is a page footer used for every page which contains a field that I only want visible when it is the last page of the group.
    For example, one might pull several invoices, each invoice being its own group.  A field would be suppressed in the footer unless it is the last page of that particular invoice.
    Is this something that can be done in Crystal Reports XI?
    Thank you.

    Hi,
    Alright, it's a bit rusty but here's how you can do it:
    1) Create this formula and place it in the Report Header:
    whileprintingrecords;
    numbervar n1 := groupnumber;
    2) Create this formula and place it in the Group Footer:
    whileprintingrecords;
    numbervar n := groupnumber;
    3) Create this formula and place it on the Page Footer:
    whileprintingrecords;
    numbervar n;
    4) Right-click the above formula (Formula on the Page Footer) and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar n1;
    numbervar x;
    if currentfieldvalue <> n1 then
      x := 1;
      true;
    else
      x := 0;
      true;
    5) Right-click the field that you wish to always suppress except on the last page and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar x;
    if x = 1 then true;
    Let me know how this goes!
    -Abhilash

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • Cheque printing. How to avoid last page in case of check printing in F110?

    F-68 prints only one page whereas F110 prints 2 pages.
    How to avoid last page in case of check printing using F110? Is there any other option than changing the Script.

    Hi,
    Im also facing the same issue. Generates 1 page with F-58 but 2 pages with f110. Kindly let me know how to resolve.

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

  • How to print last page in smartforms

    Hi,
    In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
    Rgds

    Hello,
    According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
    The best soln would be,
    1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
    2) In the driver program ,
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        control-no_open  = 'X'.
        control-no_close = 'X'.
        output-tdnewid  = 'X'.
       PERFORM ssf_open.
    CALL FUNCTION 'SSF_OPEN'
      EXPORTING
      ARCHIVE_PARAMETERS       =
      user_settings            = ' '
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
    output_options           = output
    control_parameters       = control
    IMPORTING
      JOB_OUTPUT_OPTIONS       =
    EXCEPTIONS
       formatting_error         = 1
       internal_error           = 2
       send_error               = 3
       user_canceled            = 4
       OTHERS                   = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT it-1.
        CALL FUNCTION l_fm_name
    endloop.
    CALL FUNCTION 'SSF_CLOSE'.
    2) In the smartform 
         FIRST  ->   next page -> NEXT
                   Beneath the main window -> Table,  put Command - Goto new page  as LAST.
         NEXT  ->   next page -> NEXT
         LAST  ->   Next page -> Blank
    I hope this will work as I have done a similiar dev.
    Regards,
    Radhakrishnan

  • How to supress Last Page in a Script

    Hi
    In a script I have three pages First Next and Last, my requirement doesn't’t need Last page which contains the summary. If I delete Last page with in the script, the output displays with two pages where in the first page contains all the data which I require and the next page shows the fields other than main window [don’t know why it is triggering].
    If i include the Last page with in the script with a blank new window in that, my output displays normally with a blank page at the end.
    Will any one help me how to suppress the ‘Last’ page in the scripts.
    Am working on Cheques ‘F110_PRENUM_CHCK’ and the print program is ‘RFFOUS_C’ where I want to suppress the ‘Summary’ window in the Last page. Here i don't want to modify the original program.
    Thanx
    Message was edited by:
            Shinoy N

    Hi Shinoy,
    we have the same requirement as you mentioned. We have to delete the last page ( with summary and void check ) . I deleted the last page ...eventhough the void check in the last page is reflecting.
    Please do let me know, how to delete the last page.
    Regards,

  • How to exclude last page from the total number of pages counter

    Hi,
    I am customizing the payables remittance RTF template, our requirement is to reset page number to 1 for each payment, i am able to achieve this using "@section"
    also we have a requirement to have a summary page at the end, i am able to get this using "start@last-page:body".
    issue is last page is also considered in the page counter of the last payment.
    i.e. suppose if i am generating remittance for 2 payments which are printing details in two pages and one page respectively, my output will have total 4 pages and it's showing
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 2
    Summary page-4 footer -> 2 of 2
    but i wanted to see
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 1
    Summary page-4 footer -> 1 of 1
    Any idea how to remove the summary page from the page counter.
    Rgds,
    -Kamal

    I'm not sure how it was in Acrobat 9, but in XI you add a Header/Footer and
    one of the options it "Page Number and Date Format", where you can select
    the format of the page number to add, some of them contain the total number
    of pages (such as "1 of n").

  • How to Identify Last  Command Issued by user??

    Hi Everybody,
    I need to create a form in which the current state of the form depends upon the last command issued by the user.
    Suppose if user clicks 'delete record' or 'insert record' or 'enter-query' or something else.
    So, how to identify the last event executed by the user.
    Any suggestions...
    Thx in advance,
    Raj

    You can write something into a Form parameter in the POST-INSERT/UPDATE/Query triggers.
    Then you can check the value of this parameter when needed.

  • How To trigger last page in sap script of customer account statement

    Hello all,
    I am working on customer account statement.
    It has it's own standard script(F140_CUS_STAT_02). But my client's requirement was completly diffrent,so i copied that to z script and made some changes like delete some window and some another window.
    Now on first page , i have following windows,
    1) Header
    2) address
    3) main
    4) Account
    5) Footer.
    Next Page having following windows,
    1) Header
    2) Main
    3) account
    4) footer
    Now i want to print account window on lsat page, so i put the condition nextpage = 0.
    and it is working fine , but as account window is physically present after Main window , so that much blak sapge is getting creted after main window on every page.
    To remove that blank space i am thinking of creting one more page and everytime i want display account window on that page.
    I have creted the last page also. but in my output it not detecting that last page.
    For First page - next page is next.
    For Next page - next page is next.
    for Last page- next page is last.
    Also i have added following code at last in  main window.
    /: NEXT-PAGE LAST.
    But i think i am placing this code at incorrect position in main window.
    I am not able to find out the correct podition to put the above code,but main window of that script conataing so namy text element, and that text element are getting handled from driver program based on some conditions.
    I have added my code in main window but not changed the original code.
    Plz let me know where to write /: NEXT-PAGE LAST. in main window.
    Or provide me some another solution to trigger thet last page in sap script.
    Regards,
    Anuja Dhondge

    Hi ,
    actually in account window i have used tha box command to print account statement.
    Previously i was printing this account statement in main window itself but without using bottom and end bottom command.
    So , as i made some changes or add some code in main window then lines of this account statement  were getting dismental.
    So my question is using bottom and end-bottom command this will happen or not????

  • How to change last page header under TOP-OF-PAGE in a report

    hi,
    there are 20 pages in the report for which same header is diplayed for 20 pages by using follow.
    TOP-OF-PAGE.
    PERFORM write_doc_header.
    now the requirement is to change the last page heading. for this i've another perform statement.
    so plz let me know the syntax sh be to place this perform statment.
    plz let me know tht am i thinking right by luking at below??
    TOP-OF-PAGE.
    if sy-index = last page.
    perform lastpage_header.
    else
    PERFORM write_doc_header.
    endif.

    Hi,
    Use:
    TOP-OF-PAGE.
    IF SY-PAGNO = 20.               " sy-pagno will give you th current pagno
    Perform LAST_PAGE_HEADER.
    ESLE.
    Perform LIST_HEADER.
    ENDIF.
    hopr this resolves your issue.
    Regards,
    Gurpreet

  • How to print Last Page Balance on Next Page Header

    I am using Report 3. I have three field in
    my repeating frame.
    1. received
    2. issue
    3. balance
    Balance Field is running total of received and issue.
    I just want to print balance outside of my
    repeating frame at the end of page and then
    in header of next page.
    null

    I have the same question. Someone know how to do this. plz help.

  • How to Identify a page's GUID?

    I am to a point where I have added a new page using an html editor on a published (by client) website but the page will not show up in the menu. Obviously, by default the "current-page-GUID" that is reflecting is the GUID of the page that I duplicated. I would like to be able to have my new page show up in the menu and add the new page's GUID to the html of the new page so when a visitor is on the page it reflects the correct Title.
    I have located the current-page-GUID in the script on the new page and have deleted the current-page-GUID (the actual number) that coresponds to the page I duplicated but two questions remain:
    1. How do I get my new page to show up in the menu.
    2. How do I find the GUID of the new page I created so that I can add it to the "current-page-GUID" area on the new page html file?

    A huge thanks to Woydor who provided me with the answers I needed (from Modify iWeb from Another Program thread).
    1: Add an entry in the feed.xml file.
    2: Is the page you created in iWeb?
    If it has a menu, the ID is in the code you see above.
    If the page has no menu, then there is no ID.
    To create your own UUID :
    https://www.google.com/search?q=uuid+generator
    In my case I needed to create one. Applied as suggested and it worked perfectly!

  • How to get last page number in word report? LV

    I'm trying to find out where am I when I use LV to generate word report. I would like automatic generate page index in front of report.
    Thanks in advance

    Ed,
    Are you using DIAdem with labview to generate your report in LabVIEW? If so can you please explain your setup a little more. If you aren't using DIAdem you may find more labVIEW users if you post on the LabVIEW forums: http://forums.ni.com/ni/board?board.id=170 . Either way let me know.
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • How to identify this page having image caption element

    Hi,
    Any one help me. Indesign CS2 (PC version). Im reading textframes on this page but i didn't get what are all the elements having this page or particular element have this page?
    regards,
    sudar

    Hi,
    May the below code also helpful for you:
    var myPages = app.activeDocument.pages;
    alert(myPages.length)
    for(i=0; i<myPages.length; i++)
        if(myPages[i].appliedMaster == null)
            alert("Blank Page is : " + myPages[i].name)
        else
            alert("Applied Master Page  is : " + myPages[i].name)
    Thanks
    Siraj

Maybe you are looking for

  • MacBook Pro can no longer see the hard drive

    I've got a MacBook Pro Core 2 Duo, 15-inch. Okay, so I was chasing the nazis out of North Africa in Call of Duty 2 when the game froze. Command-Option-Escape was unresponsive, so I held down the power button to shut the whole thing down. When I broug

  • 2 Ipods on 1 Computer

    Can anyone tell me how a mac will react if I plug 2 ipods in using the same doc (1 after the other). Will it allow me to specify in the ipod options in Itunes what play lists I want to sync, or will both Ipods contain the play lists selected. I'm hop

  • Attaching links to buttons exported into dreamweaver CS3 ?

    Hi everyone, I want to create five seperate buttons in Fireworks CS3 and then export them over to Dreamweaver CS3. Does the links for the buttons have to be attached in Fireworks first, or can I create the buttons export them into my Dreamweaver site

  • 10.9 update effects on software RAID drives

    Hi everyone, I would like to update my mac pro from 10.8 to 10.9 . I backed up everything but my major concern is that I have 2 HDDs that are RAIDed by the OS (software). The OS is on a seperate PCI SSD from OWC. Is there any change that the software

  • How would I truncate extra zeros (as in millions) ?

    Say my y-axis now has this series:    $30,000,000     $20,000,000   $10,000,000 and I want to change it (formulaicly -- so I don't have to re-enter all my numbers manually) to:   $30      $20      $10 with a note somewhere on the chart saying   "(in