Multiple paged report

Hi, I am somehow new to SAP CR for VS2010 and I am trying to create a report that is divided in 3 pages with data in each page related to the previous page. How can i create a multiple paged report? What i want to do is something like this.
======will be printed in page 1==========            =======will be printed in page 2====             ===========will be printed in page 3=====
Rec no. Employee name EmpID Gross income   |      Basic Salary    Bonus  Compensation     |          Exemption code      Tax withheld      Tax due
1            Peter parker      0001      $5,0000         |         $450               $200        $2.50           |                M1                           $50              $60
2            Emma stone   0002      $15,000           |         $500                $350       $10              |                S3                            $80              $55
this is just a sample data/field needed in each page. I tried using section expert and inserted another section under details but it does not give me what i want. TIA.

Yes, but this is going to be a bit tricky.
1.  Create a formula called "InitPage":
     NumberVar page = 1;
     Place this formula in the report header - it won't display because of the final ";"
2.  Create another formula called "SetPage":
     NumberVar page;
     if page = 3 then page := 1
     else page := page + 1;
     Place this formula in the page footer.
3.  Create a formula called "InitRows": (NOTE:  This assumes that your data for each row is using a numeric ID as the key)
     Global NumberVar Array rowInfo := [-1];
     1;  //formulas cannot return an array, so we give it a meaningless value to return
     Place this formula in the report header.
4.  Create a formula called "ClearRows":
     EvaluateAfter({@SetPage});
     Global NumberVar Array rowInfo;
     NumberVar page;
     if page = 1 then
          Redim rowInfo[1];
          rowInfo[1] := -1;
     1;
     Place this in the page footer below the {@SetPage} formula.
5.  Create a formula called "SetRow":
     Global NumberVar Array rowInfo;
     NumberVar page;
     if page = 1 then
          if not ({MyTable.ID} in rowInfo) then
              if rowInfo[1] = -1 then
                    rowInfo[1] := {MyTable.ID}
              else
                   //Add one element to the array.
                   Redim Preserve rowInfo[UBound(rowInfo) + 1];
                   //Set the element to the value you need for linking the data.
                   rowInfo[UBound(rowInfo)] := {MyTable.ID}
     1;
     Place this formula in your details section - it won't show anything, but it will set up the array for use in the subreports.
6.  Keep your subreports in the details sections as they are.
7.  In the Section Expert, do the following:
     a.  Turn off "New Page After" on the first details section.
     b.  For the second details section, set the Suppress formula to:
               NumberVar page;
               page <> 2
     c.  For the third details section, set the Suppress formula to:
               NumberVar page;
               page < 3
7.  In your subreport, create a Formula called "FilterArray":
     Global NumberVar Array rowInfo
     Note that there is NO semi-colon on the end of this!
8.  In the Select Expert, edit the selection formula to add something like this:
     {MyTable.ID} in {@FilterArray}
I haven't tested any of this other than to make sure that Crystal will verify the formulas.  But, it should get you close to what you're looking for.
-Dell

Similar Messages

  • One parameter for multiple Crystal reports in Publication

    Does anyone know if it is possible to enter one identical parameter for multiple Crystal reports in publication when scheduling? BOE 3.1 SP3 Windows, Java.
    To elaborate I am creating publication with multiple reports, each report has one parameter and this parameter is identical in every report in publication. So instead of entering this parameter many times I would like to enter once. 
    If yes point me in the right direction to get the how to or post the steps.

    Daniel,
    Thank you so much for your answer. It was very helpful. In the end, it didn't work but it helped me figure out what was happening. I use a different form for the reports and I had it coded in the form which report to use. I created a second form for the second crystal and then I used an if statement to choose the form and it worked like a charm.
    Thanks so much again!

  • What's the coolest, slickest way to present multiple ALV reports?

    Greetings and good day, everyone.
    Okay, I'm working on an update program, and the users have identified at least three different reports they would like coming out of this thing.  One report is a list of transactions that fail internal logic checking, the second report is a list of transactions that pass internal logic checking but fail to update via a BAPI, and a third report is a list of transactions that pass checks and process correctly (i.e. update the database) via the BAPI.
    At first, still being a newbie, I was wondering how I was going to create multiple ALV reports.  I know I could do this using the WRITE statement, writing each report one after the other, but they have asked for the ALV report so they can do all the ad-hoc manipulating, sorting, etc. that ALV provides.
    I came up with these options:
    1.  Instead of filling my single screen with the container control for an ALV report, as I usually do, this time I could put three containers on the screen.  However, I know that cramps space, and I don't know if they'll be able to adjust or move things around other than scrolling.
    2.  Display a single ALV report on the screen, but have buttons somehow on the top that somehow take the user to other screens for the other reports.
    3.  First give the user a screen with all the buttons for the reports.  They choose one, and the ALV report displays.  They can click back to return to this screen, then choose a different report.
    Nobody else in the office has done anything like this yet using the ALV, so I've got a chance to break some new ground internally and do something slick.  Which option is best, and if so, do you have examples or general guidelines of how I do it?  I've not had dialog programming, although I do understand the concepts from VB/Delphi experience over 10 years ago.  I think I lean toward option 2, but I figured this couldn't be new ground in the SAP world and surely someone's done exactly this sort of thing.
    Please help!  ALL helpful responses, as always, are awarded points!  Thanks so much!
    Dave

    Dave,
    These are all good suggestions.  I would just remember to keep in mind when designing your report two different things.
    1.  Can your program be run in foreground or background?  If it has to be run in background due to data volumes you will lose all interactive capabilities of ALV.  You might also not be able to do three different ALVs on the screen in background.
    2.  I am not sure if I understand your option 3 but if you are talking about the user selecting the options before the load the data, they might have to attempt to load the data multiple times to get all of the report.
    My recommendation ( I think somebody already mentioned this) is to have a single ALV with a column on your report that the user can then sort or filter by.  This way you are not limited to a program that has to be run in foreground. 
    Chris

  • How to automatically attached multiple PDF reports to an e-mail and send

    Hello.
    I have a requirement to generate multiple PDF reports using Oracle Reports 6i on the web, then automatically attach these PDF reports to an Outlook e-mail and then bring up the Outlook e-mail dialog box so the user can modify the e-mail (such as adding more attachments, adding a CC, BC, change the message text) before sending the e-mail. I want to be able to initiate all these tasks from Oracle webforms 6i in a three-tier environment.
    I have already read various notes and solutions but none of them address all my requirements. Examples:
    1. Using OLE to interface with Outlook - but OLE does now work on the Web
    2. Using Java stored procedure or UTL_SMTP - but this does not bring-up an e-mail dialog box
    3. Using mailto: in HTML and web.show_document - but this does not allow you to attach a PDF file
    Can you please advise on possible solutions to my requirements. Thank you very much.
    Regards,
    Armando

    Here is a great resource for sending binaries.
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    You'll want to use utl_http to run each report with a destype=file and then have another procedure running to check to see when all of your reports have finished. After they are finished, you would run the stored procedure to get all of the binaries, attach them in an email and then send it.
    If you want to concate all of the PDF files into one large file, you can do this with a Java stored procedure using iText.
    http://www.lowagie.com/iText/

  • How can I add a custom title to multiple ALV reports selected by layout?

    Greetings and good day, everyone!
    Within the past week or so, I posted a question asking the best way to create a program that would generate multiple ALV reports.  I got some great ideas, and I've actually coded up a few simple demos based on your feedback -- thank you!
    Here's the issue I'm running into:  Many of you suggested that I put all report records into one table, and create a field that I could use to filter on later to determine which fields I want to display for the report.  For example, if I have 3 different reports, I put all the fields for all 3 reports into a table.  I then add a "report key" field.  As I put records into the report table for report 1, I code "01" into the "report key" field.  I do the same for reports 2 and 3, assigning each a "report key" of "02" and "03", respectively.
    I then set up layouts in the ALV for each of the three reports, using the filter option to only pull records with the "report key" value for that particular report.  This all works wonderfully!  However, I seem to have lost the ability to show a custom title for each layout.  I can create a generic TITLEBAR (like "Reporting Center") but I don't know how to reset the grid's title when a layout is selected.  I was hoping that SAP might use the layout description as the title on each page, but it doesn't -- it uses the TITLEBAR text.
    Any ideas?  I think this might be the best way to program multiple ALV reports, but if I can't display the right report title for a particular layout, I'll probably have to go back to my other alternative of putting each report in its own container/screen, and having a button to access each report from the application toolbar.
    Thanks,

    Srikanth,
    I don't have any Selection Screen radio buttons for the user to select a particular report; in my case, they specify some needed criteria by the program in the Selection Screen, the program goes off and does a fair bit of processing/updating, and then displays the ALV reports when finished.  They don't want to choose one particular report to view ahead of time; they want to have all 3 (in my case) there to see what processed correctly, what was eligible to process but kicked out with errors, and what failed some matching checks done up front (this layout includes additional fields from the input file so they can see what didn't match up against R/3).
    So, while I do like the code example you presented, I don't think it's going to help me in my case.

  • Is It Possible to create multiple tab report in OBIEE 11g?

    Is It Possible to create multiple tab report in OBIEE 11g?

    Triple post even! Multiple tabs in a single OBIEE  &  https://forums.oracle.com/thread/2560266
    Stick to one post!

  • How to autogenrate multiple items report of the SharePoint list and sent to the client id on daily basis

    Dear Support,
    As per customer requirement he want to send SharePoint list multiple items reports on daily basis by email autognrated workflow in SharePoint.
    I tried for that and created workflow for SharePoint list  on new item creation using SharePoint designer 2013 it’s working fine. But I am unable to send list multiple items report by work flow.
    Please let me know the process for SharePoint list multiple items report generation and how to sent mail to the client id on daily basis.
    Would request your support.

    Hi
    another approach
    use a powershell scheduled script which will get needed lists items, adn will sned the infos by email
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How do I put a bookmark in a multiple paged manual?

    How do I put a bookmark in a multiple paged manual?

    Adobe Reader can't add bookmarks. You can use Adobe Acrobat for this.

  • How to make & edit multiple query report

    hi,
    how to make multiple query report & i have an existing multiple query report when i edit it all the structure gets disturbed whenever i want to add or delete any column from an query.
    how to do this ?
    txs

    Perhaps you have "Flex Mode" selected in the Layout Editor? It's the button next to the padlock button.
    Message was edited by:
    Dave Hemming
    Also PS: Vaguest. Question. Ever.

  • Multiple Interactive Reports

    .Hi,
    Can't we add multiple interactive report based on conditional display i tryed doing I get error saying only one report per page. please suggest me is there any way we can add multiple reports.
    Please suggest.
    Thanks
    Sudhir

    Hello Sudhir,
    I don't know if it still works in last version.
    I am using ApEx version 3.1.2.00.02 .
    And there you can create a second interactive report by copying the region of the first one.
    Change the SQL-query on the region definition page.
    Check the settings made for the interactive report (column order, display etc.).
    VERY IMPORTANT: the display conditions have to be disjunct.
    You can not display both reports simultaneously.
    Regards, Tine.

  • Multiple sub-reports

    Hello All,
    I have a report with two sub-reports at the Page header sections At run time only one report is binding to main report.
    How do I deal with multiple sub-reports.
    Thanks

    Hi David,
    In regards to putting the subreports in the Page Header,  it may not be a good idea.  The reason being if the subreports grow larger than one page,  there will be limitations to the Page Header size.  Since a Page Header can only be one page in length,  this may be the reason why you're not seeing all subreports.
    I would suggest either:
    1.  placing the subreport in a different section.
    2.  search the SAP Notes for "fake page header" and to create a fake group and use that as the Page Header section instead. 
    Regards,
    Wallie

  • Multiple Interactive reports per page

    Hello,
    Standard APEX 32 behavior prevents multiple interactive report in a single page.
    Is there a way around this limitation?
    How can I display multiple interactive report in a page.
    Thanks
    R

    Hi,
    This might help also
    http://djmein.blogspot.com/2008/03/multiple-interactive-reports-on-one.html
    Br,Jari

  • Multiple ALV reports on one page

    How to display multiple ALV reports on one page.

    this done by this code....
    *& Report  ZPR_02
    REPORT  ZPR_02.
    TYPE-POOLS: SLIS.
    Tables Declaration.
    TABLES: MARA.
    *Internal tables and data declaration.
    DATA: BEGIN OF IT_MARA OCCURS 0,
            MATNR LIKE MARA-MATNR,
            MTART LIKE MARA-MTART,
            MBRSH LIKE MARA-MBRSH,
          END OF IT_MARA,
          BEGIN OF IT_MARC OCCURS 0,
            MATNR LIKE MARC-MATNR,
            WERKS LIKE MARC-WERKS,
            EKGRP LIKE MARC-EKGRP,
          END OF IT_MARC,
          BEGIN OF IT_MARD OCCURS 0,
            MATNR LIKE MARD-MATNR,
            WERKS LIKE MARD-WERKS,
            LGORT LIKE MARD-LGORT,
            LABST LIKE MARD-LABST,
          END OF IT_MARD.
    DATA: WA_FIELD_CAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELD_CAT1 TYPE SLIS_T_FIELDCAT_ALV,
          IT_FIELD_CAT2 TYPE SLIS_T_FIELDCAT_ALV,
          IT_FIELD_CAT3 TYPE SLIS_T_FIELDCAT_ALV,
          WA_KEYINFO TYPE SLIS_KEYINFO_ALV,
          IT_LAYOUT TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS1    TYPE SLIS_T_EVENT WITH HEADER LINE,
          IT_EVENTS2    TYPE SLIS_T_EVENT WITH HEADER LINE,
          IT_EVENTS3    TYPE SLIS_T_EVENT WITH HEADER LINE.
    *Selection Screen.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    *Start Of selection.
    START-OF-SELECTION.
    *Selecting the data.
      PERFORM SELECT_DATA.
    *Populating the field catelogue.
      PERFORM BUILD_FIELD_CAT.
    *Displaying the final output.
      PERFORM DISPLY_OUTPUT.
    *&      Form  Select_data
          Selecting the data.
    FORM SELECT_DATA .
      SELECT MATNR
             MTART
             MBRSH FROM MARA
           INTO TABLE IT_MARA
           WHERE MATNR IN S_MATNR.
      IF NOT IT_MARA[] IS INITIAL.
        SELECT MATNR
               WERKS
               EKGRP FROM MARC
             INTO TABLE IT_MARC
             FOR ALL ENTRIES IN IT_MARA
             WHERE MATNR EQ IT_MARA-MATNR.
      ENDIF.
      IF NOT IT_MARC[] IS INITIAL.
        SELECT MATNR
               WERKS
               LGORT
               LABST FROM MARD
             INTO TABLE IT_MARD
             FOR ALL ENTRIES IN IT_MARC
             WHERE MATNR = IT_MARC-MATNR
             AND   WERKS = IT_MARC-WERKS.
      ENDIF.
    ENDFORM.                    " Select_data
    *&      Form  Build_field_cat
         Populating the field catelogue.
    FORM BUILD_FIELD_CAT .
      DEFINE M_FIELDCAT1.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT1.
      END-OF-DEFINITION.
      DEFINE M_FIELDCAT2.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT2.
      END-OF-DEFINITION.
      DEFINE M_FIELDCAT3.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT3.
      END-OF-DEFINITION.
      M_FIELDCAT1 'MARA' 'MATNR' 'Material No'.
      M_FIELDCAT1 'MARA' 'MTART' 'Material type'.
      M_FIELDCAT1 'MARA' 'MBRSH' 'Industry Sector'.
      M_FIELDCAT2 'MARC' 'MATNR' 'Material No'.
      M_FIELDCAT2 'MARC' 'WERKS' 'Plant'.
      M_FIELDCAT2 'MARC' 'EKGRP' 'Purchasing Group'.
      M_FIELDCAT3 'MARD' 'MATNR' 'Material No'.
      M_FIELDCAT3 'MARD' 'WERKS' 'Plant'.
      M_FIELDCAT3 'MARD' 'LGORT' 'Storage Loc'.
      M_FIELDCAT3 'MARD' 'LABST' 'Valued Stock'.
      IT_EVENTS1-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS1-FORM  =  'F_TOP_OF_PAGE_ONE'.
      APPEND IT_EVENTS1.
      CLEAR IT_EVENTS1.
      IT_EVENTS2-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS2-FORM  =  'F_TOP_OF_PAGE_TWO'.
      APPEND IT_EVENTS2.
      CLEAR IT_EVENTS2.
      IT_EVENTS3-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS3-FORM  =  'F_TOP_OF_PAGE_THREE'.
      APPEND IT_EVENTS3.
      CLEAR IT_EVENTS3.
    ENDFORM.                    " Build_field_cat
    *&      Form  disply_output
         Displaying the final output.
    FORM DISPLY_OUTPUT .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT1[]
          I_TABNAME                        = 'IT_MARA'
          IT_EVENTS                        = IT_EVENTS1[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARA     .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT2[]
          I_TABNAME                        = 'IT_MARC'
          IT_EVENTS                        = IT_EVENTS2[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARC    .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT3[]
          I_TABNAME                        = 'IT_MARD'
          IT_EVENTS                        = IT_EVENTS3[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARD    .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK             = ' '
      IS_PRINT                      = IS_PRINT
      I_SCREEN_START_COLUMN         = 0
      I_SCREEN_START_LINE           = 0
      I_SCREEN_END_COLUMN           = 0
      I_SCREEN_END_LINE             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER        = ES_EXIT_CAUSED_BY_USER
    EXCEPTIONS
      PROGRAM_ERROR                 = 1
      OTHERS                        = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " disply_output
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_ONE.
      WRITE: / 'Header details (MARA)'.
    ENDFORM.                    "top_of_page_one
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_TWO.
      WRITE: / 'Item details (MARC)'.
    ENDFORM.                    "top_of_page_one
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_THREE.
      WRITE: / 'Item details (MARD)'.
    ENDFORM.                    "top_of_page_one
    regards,
    venkat.

  • Multiple interactive reports/tab. forms: future or everlasting expectation?

    At the end of September, the statement of direction for APEX is updated for 4.2.
    I notice that there's not a word anymore about the possibility to use multiple interactive reports and tabular forms on one page (declarative, without the tricks described in so many blogs and forums).
    Does this mean that it will never be possible or just not yet in 4.2?
    Thanks in advance for any enlightening comment about this :-)
    Regards,
    Bart

    Bart, Joe,
    Thanks for bringing this enhancement request up again. Allowing for multiple tabular forms or multiple interactive reports on one page is still a feature that we’re considering for a future release of Oracle Application Express. But we honestly don’t know yet whether this is going to make it into APEX 4.2 or a later release. And yes, there’s certainly a chance that this may proof to be too disruptive to the current implementation, and thus require a different approach. I realize this isn’t the answer you were looking for, but all we can say that we’re still actively looking into making this possible as a standard feature.
    Regards,
    Marc

  • Multiple Page Report (Invoice)

    Good Morning,
    I work for a healthcare orginzation and I am creating an invoice for services. The invoice has many lines and runs onto multiple pages.  I am farily new to Crystal but I want to know if there is a way to have the Report Header and Footers print on a new page after so many lines of data are acheived.
    I used the following forumula in both the detail sections and report header and report footer sections under Paging, New Page After, but the report header and footer do not appear on the consective pages.
    If Remainder (RecordNumber, 15) = 0 then true else false
    Is there another way to accomplish this?

    Thanks!  What I ended up doing is having to create groups since I needed information broken down by different payers.  Same concept with group headers and footers.  I appreciate the response.

Maybe you are looking for

  • Problem in Opening Workflow Interface.

    Hi, I have installed Stellent 7.5.1 All the components are working fine, if i'm trying to open Workflow i'm getting pop saying this message "unable to start the application workflow. Failed to response from host Server returned HTTP response code:502

  • Allow to have the file name with extension in contacts thumbnails

    When I print a contact sheet from the Print module, I would like to have the option to have under each thumbnail the file name complete with the extension; e.g. "Sample.jpg". Right now I can only have the file name, e.g. "Sample".

  • From where i can understand the control flow and architecture of JVM?

    i want to know control flow and architecture of JVM? Where i can know from? if some one wish to explain you can here also.

  • Editing list of preferred networks

    Is it possible to edit the list of preferred networks in System Preference > Network > Wifi > Advanced? I travel a lot and have hundreds of saved networks with passwords.  There are some in my hometown that I want to get rid of, but I can't find a wa

  • 1 dead pixel on the screen

    I seem to have a dead or stuck pixel on the screen. How do I know if its dead, or if its stuck? Do dead pixels look different from stuck pixels? Im not to bothered about it as I can hardly see it and I struggle to see it, but it is slightly annoying