4 tables in 1 report. How can I do that?

I have 4 tables (4 selects)  and I need place in one report.
How can I do that?

select t1.field1, t1.field2, .. t1.fieldn, t1_idenifier "t1"
from table 1
where
union
select t2.field1, t2.field2, .. t2.fieldn, t2_idenifier "t"
from table 2
where
select t3.field1, t3.field2, .. t3.fieldn, t3_idenifier "t3"
from table 3
union
select t4.field1, t4.field2, .. t4.fieldn, t4.t_idenifier "t4"
from table 4
Then, in Crystal Reports, create formulas
total1 where it is a summary of all the values where t1.t_identifier = "t1"
total2 where it is a summary of all the values where t2.t_identifier = "t2"
etc.
This is simplified, of course.  You need to make sure that the values held in each fieldn contain the same field for each value of n (IE, field1 for each table must be, say, the id; field2 for each table must be, say, the cost, etc).  Where there is no matching field across tables, you'll need to
set the values to null or a blank (or whatever) in the ones that don't have a corresponding field.  It's cumbersome, but it's faster processing and makes things a lot simpler on the CR side.
Edited by: Sandra Kear on Mar 3, 2009 5:52 PM

Similar Messages

  • My ipod touch was stolen and I need the serial number for the police report how can i recover it

    my ipod touch was stolen and i need the serial number for the police report how can i get that

    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • In ALV reports how can we capture separate data in 3 internal table

    HI
       In ALV reports how can we capture data in 3 Internal tables and combine them in another internal table to display........

    Hello Sudhanshu
    Another option would be to display all three itabs together which is a piece of cake using OO-based ALV lists. Please refer to thread
    Re: Alv
    for a sample report.
    Regards
      Uwe

  • I refuse to pay for a one year automatic subscription for Cosumer report that was charged to my account today without me noticing. How can I cancel that and get reimbursed now?

    I refuse to pay for a one year automatic subscription for Cosumer report that was charged to my account today without me noticing. How can I cancel that and get reimbursed now?
    Patrick

    First turn off auto-renewing subscriptions:
    iTunes Store: Purchasing and managing auto-renewing subscriptions
    Getting a refund won't be as simple. For that you will have to contact iTunes Store Support.

  • How can I make that the cursor of a table ...

    Hello,
    how can I make that the cursor of a table (on the frontpanel) go to the starting position? I have placed a table that give back the number of the row if I doubleclick a row on the frontpanel, but when I restart the vi the cursor of the table is on this position. If I have many informations in the table and after restarting there are just one or two, I can`t see this information without scrolling to the top of the table. I want that the cursor (that I see) is at the first row. How can I make it?
    thankyou
    Schwede

    Hello,
    Sorry, I forgot to attach it in the previous post.
    Regards,
    Paulo
    Attachments:
    EditPos.vi ‏16 KB

  • How can I find that an URL link is tored in which transparent table in SAP?

    I have a requirment that, I have to display a MSDS( Material Safety Data Sheet ) for every material, that is a line item in any particular sales order.
    How can I find that in which table this URL link is getting stored, such that I can retrieve this URL for this particular material.

    is this document attached to sales order using GOS (generic object services)
    Regards
    Raja

  • I am trying to link to page in my document from the table of contents.  How can this be done?

    I am trying to link to page in my document from the table of contents.  How can this be done?

    The Table of Contents picks up selected named Styles in the text like Head 1, 2 etc.
    Have you actually applied the styles?
    Peter

  • Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    If you haven't come across the workarounds thread you may find helpful tips there on this and other ways to work with Numbers 3.
    ronniefromcalifornia discovered how to bring contacts into Numbers 3. As described in this post:
    "Open Contacts
    Select all the cards you want
    Copy
    In Numbers, in a table, select cell A1
    Paste
    Boom. Works great. Even brought in the pictures. Cool."
    So instead of drag and drop, just select in Contacts, copy, and paste into Numbers
    SG

  • I was bill$99.99 and I would like to report a wrong billing. Where and how can I do that?

    I was bill$99.99 and I would like to report a wrong billing. Where and how can I do that?

    You need to dispute the transaction with your credit card company. Apple is only a merchant. You can also contact the iTS web based customer service and tell them but they will direct you to dispute with the CC company.
    Change your iTS password.
    MJ

  • How can we know that size of dimension is more than fact table?

    how can we know that size of dimension is more than fact table?
    this was the question asked for me in interview

    Hi Reddy,
      This is common way finding the size of cube or dimensions or KF.
    Each keyfiure occupies 10 Bytes of memory
    Each Char occupies 6 Bytes of memory
    So in an Infocube the maximum number of fields are 256 out of which 233 keyfigure, 16 Dimesions and 6 special char.
    So The maximum capacity of a cube
    = 233(Key figure)10 + 16(Characteristics)6 + 6(Sp.Char)*6
    In general InfoCube size should not exceed 100 GB of data
    Hope it answer your question.
    Regards,
    Varun

  • I use global structure in another report how can i make it local ?

    i use global structure in another report how can i make it local ?

    Naresh,
    Right click on structure and choose remove reference. Then you can add new fields, and this structure is local.
    Hope it Helps
    Srini

  • Analyzing AWR reports, how can i decide i need to increase my SGA

    Hi,
    I am analyzing my Production server AWR reports, how can i decide on which basis i can increase SGA.
    Thanks,
    Mahi

    You need to make sure that the corresponding memory areas are not having any waits associated with them. Changing the memory parameters is generally not an option to pick in 10g as the instance management is automatic( shouldbe) and this makes the allocations done in an optimal manner depending upon the workloads. Still the change in the parameters can be there when we see some specific wait event related to that memory area. For example, if you see lots of Shared Pool latch contention and you are assure that you have no duplicate sqls coming up in your system than may be you have an undersized shared pool so it can be increased.
    You are using AWR.What about the recommendations from ADDM?Is there any advice coming up to change the memory components ? Did you elliminate all teh other areas which may be a problematic reason rather than a low memory value for parameters?
    Aman....

  • How can i indicate that the table columns have different size?

    How can i indicate that the table columns have different size?
    It is because i have a table that has several columns....but i would like to have the possibility to indicate the size for every column....could somebody help me please?
    Thanks,
    Mary

    Hi,
    don't know as much as I should about JTable, but it seems that using yourTable.getDefaultRenderer() could help you: if I clearly understood the javadoc notes, it returns an object inheriting from JLabel, so you should be able to use setHorizontalAlignment(int align) on it... no time to verify this, but I'd be thankfull if you tell me the results !!!
    Regards

  • Firefox is constantly comes to stall and there is nothing in my crash report, how can I fix it?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/919870]]</blockquote>
    Firefox is constantly comes to stall and there is nothing in my crash report, how can I fix it?
    It stops working for about 2 to 3 min., then either I close the browser or it shuts-down by itself.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Please note that if you are using the customized Firefox version that came with the Linux distro, the Firefox updates may only happen via the distribution's channel and also, crash reporting may be disabled. If the problem is more general it may also be helpful to post in the particular distro support forum.

  • How can i insure that job finished and good  and send mail to the user  ?

    how can i insure that job finished and good  ,
    and how can i send mail to the user "ok"   ?

    Hi Dakota.  We do something simular with our nightly MRP job.  Our MRP job runs around midnight,  then we kick off another job about 4am which checks to see if any of the jobs in question have abended, if so,  then it sends an email to the email addresses specify in the report variant.  Of course, this could be modified to check for successfully complete jobs, if that is your requirement.
    REPORT ZBCJOBMONITOR .
    TABLES: SOMLREC90,
            TBTCO.
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: I_TBTCO    LIKE TBTCO OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
    SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
    SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      CLEAR:    MAILDATA, MAILTXT, MAILREC, I_TBTCO.
      REFRESH:  MAILTXT, MAILREC, I_TBTCO.
      PERFORM GET_ABENDED_JOBS.
      PERFORM BUILD_RECEIVERS.
      LOOP AT I_TBTCO.
        PERFORM BUILD_TEXT_MESSAGE.
        PERFORM SEND_MAIL_NODIALOG..
      ENDLOOP.
    *      Form  BUILD_TEXT_MESSAGE
    FORM GET_ABENDED_JOBS.
      SELECT * FROM TBTCO
              INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
                         WHERE JOBNAME IN S_JOB
                           AND STATUS = 'A'
                           AND JOBCLASS IN S_JOBC
                           AND SDLSTRTDT = SY-DATUM.
    ENDFORM.
    *      Form  BUILD_TEXT_MESSAGE
    FORM BUILD_TEXT_MESSAGE.
      DATA: DATE(10) TYPE C.
      DATA: TIME(10) TYPE C.
      MAILDATA-OBJ_NAME = 'MONITOR'.
      MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
      MAILDATA-OBJ_LANGU = SY-LANGU.
      CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
                  INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
                                DATE.
      CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
                  I_TBTCO-SDLSTRTTM+2(2) ':'
                  I_TBTCO-SDLSTRTTM+4(2)
                     INTO TIME.
      CONCATENATE 'Start Date/Time:' DATE TIME
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      MAILTXT-LINE = 'Job has terminated abnormally'.
      APPEND MAILTXT.
    ENDFORM.
    *      Form  BUILD_RECEIVERS
    FORM BUILD_RECEIVERS.
      LOOP AT S_REC.
        CLEAR MAILREC.
        MAILREC-RECEIVER = S_REC-LOW.
        MAILREC-REC_TYPE  = 'U'.
        APPEND MAILREC.
      ENDLOOP.
    ENDFORM.
    *      Form  SEND_MAIL_NODIALOG
    FORM SEND_MAIL_NODIALOG.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                DOCUMENT_TYPE              = 'RAW'
                PUT_IN_OUTBOX              = 'X'
           TABLES
                OBJECT_HEADER              = MAILTXT
                OBJECT_CONTENT             = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
      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.
    *      Form FORMAT_DATE
    FORM FORMAT_DATE USING IN
                           OUT.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
                DATE_INTERNAL            = IN
           IMPORTING
                DATE_EXTERNAL            = OUT
           EXCEPTIONS
                DATE_INTERNAL_IS_INVALID = 1
                OTHERS                   = 2.
    ENDFORM.
    Regards,
    Rich Heilman

Maybe you are looking for

  • While working on BADI coping from PR to PO, it's not triggering

    Hi, I am working on BADI to get one field VENDOR MATERIAL NO to get displayed in PO while coping from PR to PO in IDES version. I have created PR and based on that PR, I want to create PO but one particular field VENDOR MATERIAL NO  is not copied fro

  • Workflow for archiving vendor invoice

    Dear Gurus my client asked me to develop workflow for massive archiving vendor invoice. Is tbere a standard workflow? Which are the steps to set the Archive link? Best regards Vanessa

  • Transaction state BUG in TP3?

    Hello, I'm trying to make a backing bean that I have used in some Jdev 10.1.3.2 ADF Faces applications to retrieve the transaction state from an EL expression in a jspx page. I use it to disable some functions in the page when there are pending chang

  • Applications not reporting when launched via Midtier

    The specified log file is not updated when deploying application objects to Windows 2000 machines with the ZFDsp2 agent via our Zen midtier. The same application object will update the log when run on a machine with the Novell client. The log is writ

  • How to display bullets, tick marks and boxes in the report body

    Hi I have to design a report in which there are certain instructions to be printed at the bottom. i have display this instructions in a bulleted form. how do i do it. Thanks ameya