Report creation from two schemas

Hi All,
1. suppose I have 2 databases.
2. one is sample1 and another is sample2
3. now u need to build one report from these two schemas.
4. means u need to take the samp_key from samp_tab from sample1 schema
and also u need to take some measure which is there in sample2 also.
how u will create the report from the two schemas? Is there possibility in the report level or do we have any chances in rpd level?
Can anybody help on this?
Thanks in Adv.

You have 2 options:
1) RPD level: bring those 2 tables to BMM layer into one Business model and then put them in the same catalog in presentation layer.
2) Answers level: Use combine with similar request and create the report.

Similar Messages

  • Automate report creation from XML

    Hello,
    Is there a way to automate the report creation based on a specification based on a XML file ?
    Regards,
    Laurent.

    Thanks,
    I will have a look to the RAS SDK.
    If the API are available it will be sufficient to start building the solution.
    Thanks,
    Laurent

  • Comparing same tables from two schemas

    I had already posted a similair thread on this . So, i thought i would start a new thread on this to avoid confusion
    I want to generate a report which will show the difference in data type of columns from same tables in two different schemas.
    The below query using MINUS shows the difference.
    create table SCOTT.mytab1 (empid number);
    create table HR.mytab1 (empid varchar2(34));
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'SCOTT'
    AND TABLE_NAME = 'MYTAB1'
    MINUS
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'HR'
    AND TABLE_NAME = 'MYTAB1'
    Result:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    MYTAB1          EMPID           SCOTT      NUMBERBut , since it is a report, i want to show results form both schemas who has column of different data types with same table names
    Expected output:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    MYTAB1          EMPID           SCOTT      NUMBER
    MYTAB1          EMPID           HR         VARCHAR2Anyway i could achieve this?

    Hello,
    I can explain the analytical part, it is not so hard to understand (at least in this case).
    I've created the tables with 2 columns : EMPID has different datatype, but NAME has the same datatype :
    create table SCOTT.mytab1 (empid number, name varchar2(50));
    create table HR.mytab1 (empid varchar2(34), name varchar2(50));Then I run only the subquery with the analytical part :
        SELECT   OWNER schema,table_name, column_name  , data_type,
        count(*) over (partition by table_name, column_name, data_type) c
        FROM     dba_tab_cols
        where owner in ( 'SCOTT','HR')
        AND TABLE_NAME = 'MYTAB1' ;
    SCHEMA     TABLE_NAME COLUMN_NAME DATA_TYPE           C
    SCOTT      MYTAB1     EMPID       NUMBER              1
    HR         MYTAB1     EMPID       VARCHAR2            1
    SCOTT      MYTAB1     NAME        VARCHAR2            2
    HR         MYTAB1     NAME        VARCHAR2            2This query returns all columns for MYTAB1 in the 2 schemas. The analytical function count how many rows you have for each existing group of TABLE_NAME, COLUMN_NAME, DATA_TYPE, just like a normal count(*) with a GROUP BY, but it does not change the number of rows of the result (unlike the GROUP BY function).
    As you can see in the result above, when you have columns with different datatype, the group appears once, so C=1. When the datatype is the same, the group appears twice, so C=2.
    So I have put a filter on C=1 :
    SELECT * FROM (
        SELECT   table_name, column_name, OWNER schema, data_type,
        count(*) over (partition by table_name, column_name, data_type) c
        FROM     dba_tab_cols
        where owner in ( 'SCOTT','HR')
        AND TABLE_NAME = 'MYTAB1'
    ) WHERE c=1;
    TABLE_NAME COLUMN_NAME SCHEMA     DATA_TYPE           C
    MYTAB1     EMPID       SCOTT      NUMBER              1
    MYTAB1     EMPID       HR         VARCHAR2            1You can do many things with analytical functions, but for beginning with them, you can use them when you need something with a GROUP BY, but you want to keep all rows in the result. You just have to put in the PARTITION BY clause the columns you would have used in the GROUP BY clause.
    I hope I am clear, but if not, do not hesitate to ask for more information.
    Regards,
    Sylvie

  • Same query at same time, but different execution plans from two schemas

    Hi!
    We just had some performance problems in our production system and I would like to ask for some advice from you.
    We had a select-query that was run from USER1 on SCHEMA1, and it ran a table scan on a huge table.
    Using session browser in TOAD I copied the Sql-statement, logged on SCHEMA1 and ran the same query. I got a different execution plan where I avoided the table scan.
    So my question is:
    How is it possible that the same query get different execution plans when running in two different schemas at the same time.
    Some more information:
    The user USER1 runs "alter session set current_schema=SCHEMA1;" when it logs on. Besides that it doesn't do anything so session parameter values are the same for USER1 and SCHEMA1.
    SCHEMA1 is the schema owning the tables.
    ALL_ROWS is used for both USER1 and SCHEMA1
    Our database:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for Linux: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Anybody has some suggestions to why I experience different execution plan for the same query, run at the same time, but from different users?

    Thanks for clarification of the schema structure.
    What happens if instead of setting the current session schema to SCHEMA1, if you simply add the schema name to alle tables, views and other objects inside your select statement?
    As in select * from schema1.dual;I know that this is not what you want eventually, but it might help to find any misleading objects.
    Furthermore it is not clear what you meant with: "avoided a table scan".
    Did you avoid a full table scan (FTS) or was the table completely removed from the execution plan?
    Can you post both plans?
    Edited by: Sven W. on Mar 30, 2010 5:27 PM

  • JRC - Report Creation from scratch

    I created a report using the RCAPI sample.   Now  I need to add 40 database fields.  Do I have to set the co-ordinates of where each field will go using setLeft and setWidth?  Is this the only way to avoid the fields being cramped next to each other.
    This is the example from the samples
         boFieldObject.setLeft(9000);
         boFieldObject.setTop(1);
         boFieldObject.setWidth(1911);
         boFieldObject.setHeight(226);
    Thanks in advance.

    // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);

  • How to have 1 Crystal report accessbile from two folders?

    If I have a folder OR Management with a sub folder volume \OR Management\Volume\Test.rpt and then I get a request for a specific set of Auditors that need access to the reports in \Volume, should I create a new Group and put the AD role in that group and assign security directly to that folder, or directly to the reports. OR can I create a new top Level folder Auditors, assign security to that folder, and then put a shortcut to either \Volume or the individual reports in the Auditors folder?
    Thanks,
    Phil

    Create a group, assing users to group
    add the group on top level folder  - and give VIEW access, and remove sub-folder option
    then come to the folder , add the group and grant required access on top of that group

  • Fetch Data from two Database

    I want to fetch data from two tables which are in two separate database. Is it possible to fetch similar from two schemas of same database.
    Pls help with query.

    Hi,
    Say you have two schema S1 and S2 in the same database 'xyz' then you can create two database links to these two schemas from any third schema as ::
    CREATE database link s1link connect to S1 identified by <password of S1> using 'xyz' ;
    CREATE database link s2link connect to S2 identified by <password of S2> using 'xyz' ;
    Now say if there is a table called tab1 in schema S1, then you can get data from it as ::
    SELECT T1.*
    FROM tab1@s1link T1
    WHERE < you can put conditions here> ;
    Similarly for the columns of a table of schema S2.
    - Thanks
    Sandipan

  • Combining two Schemas

    Hi Experts,
    I do have the following requirement.
    I have a table which displays values from two schemas. So how can I build a VO with two database connections in ADF 10.1.3.
    Pls provide me some examples.
    Thanks

    User,
    An application module has a single db connection. Perhaps you want to create a synonym/view in one of the schemas for the table in the other one?
    John

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • Unable to consolidate data from two DSOs into an InfoCube for reporting.

    Hello Experts
    I am working on BW 7.0 to create BEx Report as below:
    This report will have data coming from two different sources, some data from COPA DSO [such as Customer Number, Product Hierarchy1, Product Hierarchy2, Product Hierarchy3, Product Hierarchy4. Product Hierarchy5, Product Hierarchy6 and a few other Key Figures] and the rest [such as Product Hierarchy, Reference Document, Condition Type (both Active & Inactive), Condition Value and a few other Key Figures] from another DSO (ZSD_DS18) which is a copy of the BCT DSO (0SD_O06). I've chosen this DSO because this is the BCT DSO which is used to store data from a Standard Extractor 2LIS_13_VDKON.
    Below are the screenshots of these 2 DSOs:
    I have successfully extracted the data from 2LIS_13_VDKON (includes PROD_HIER but not Customer Number) and loaded into a DSO (ZSD_D17).
    All the testing is done using only one Sales Document No (VBELN).
    First test that I tried is.. to create an Infocube and loaded data from ZCOPA_01 and ZSD_DS18 and when the LISTCUBE was run on this InfoCube, the data is coming up in two different lines which is not very meaningful. Screenshot below:
    Therefore, I have created another DSO (ZSD_DS17) to Consolidate the data from ZCOPA_01 & ZSD_DS18 establishing mappings between some of common Chars such as below:
    ZCOPA_01                    ZSD_DS18
    0REFER_DOC  <->        0BILL_NUM
    0REFER_ITM    <->        0BILL_ITEM
    0ME_ORDER    <->        0DOC_NUMBER
    0ME_ITEM        <->        0S_ORD_ITEM
    51 records are loaded from ZSD_DS18 into ZSD_DS17 and 4 records are loaded from ZCOPA_01 into ZSD_DS17 for a particular Sales Document Number.
    When I am using a Write-Optimized DSO, data is coming in just 1 line but it is showing only 4 lines which is aggregated which is as expected since W/O DSO aggregates the data. However, when I use Standard DSO, the data is again splitting up into many lines.
    Is there something that I am missing in here while designing the Data Model or does this call for some ABAP being done, if so, where or should I have to talk to the Functional Lead and then Enhance the Standard Extractor, and even if I do that, I would still have to bring in those Key Figures from ZCOPA_01 for my reporting?
    Thank you very much in advance and your help is appreciated.
    Thanks,
    Chandu

    in your (current) InfoCube setup, you could work with "constant selection" on the key figures
    for the COPA key figures, you'll need to add product hierarchy to the key figures with a selection of # and constant selection flagged
    for the SD key figures, you'll have to do the same for customer & the product hierarchy levels (instead of product hierarchy)

  • How to Make a report from two cubes

    Hi, guys,
    i'm trying to create a report use the data from two different cubes, but that's a problem. what i want to do is like this:
    From Cube A, i want to get the total machine number for each type of machine:
    Type machine | Total machine
    Type A 10000
    Type B 15000
    Type C 40000
    And from Cube B, i want to get the machine amount which has an error, also group by machine type:
    Type machine | Broken machine amount
    Type A 50
    Type B 15
    Type C 100
    So what can i do to create a report like below:
    Type machine | Broken machine amount | Broken machine ratio(%)
    Type A 50 0,5
    Type B 150 1
    Type C 100 0.25
    Thanks a lot,

    Hi, Nicolae, use ur idea, i can get the table u show:
    Type | Machine amount | cube
    Type A 10000 'cube A'
    Type B 15000 'cube A'
    Type C 40000 'cube A'
    Type A 50 'cube B'
    Type B 15 'cube B'
    Type C 100 'cube B'
    but with this table how can i get the table which i want:
    Type | Machine amount | % of machine
    Type A 50 0.5
    Type B 15 0.1
    Type C 100 0.25
    I have no idea, 2 things in ur idea have to be considered:
    1. just show the record of 'cube B'
    2. to get the data that cube B machine amount/ cube A machine amount
    Need your detail explain, thanks

  • Purchase Order Creation from ME5A Report

    Hi experts,
    My client wants Purchase Order Creation from ME5A Report.
    He wants show Open Purchase Requisition through ME5A report then he will select Purchase Requisition Number or line item for po creation from there only.
    Please advice how I can map this process in sap.
    Thanks in advance,
    Chandhu

    Why don't you use ME57 to display open PRs and then assign sources and convert them to PO?
    Or use ME57 to assign sources and ME59 to automatically convert them to PO.
    You can create your very own format for report display using  custom "Scope Of List" for ME57.
    Look in SPRO under Purchasing>Reporting>Maintain Purchase requisition lists.

  • Report which reads data from two different systems

    Hi experts!
    By any chance, would be possible to create a report which is able to read from two different cubes and two different systems at the same time?
    Kind regards.

    Good afternoon Raul,
    It should be possible to create a multiprovider on the two different cubes from the two sources
    systems and report on this.
    Best Regards,
    Des

  • Can we send a message to Websphere from two different schema?

    Hi,
    I have two schema in my test environment and i send a AQ message to WebSphere from one of them.
    Now i'm going to apply all the changes from this schema to the other one and then two messages will go to the same destination in IBM WebSphere!
    Do you think i might face a problem in this way or i should disable the previous one?
    Regards
    /Hesi

    Hello,
    it surely depends on your setup logic for the content of your target MQ messages. From the point of AQ there is no problem.
    Your two AQ queues don't know anything from each other. You have to check if the messages can be arrive twice at
    your destination MQ queue.
    Kind regards,
    WoG

  • Concatenate columns from two different reports

    In OBIEE 11g report, I am looking for a method to concatenate columns from two different reports.
    My requirement is, if I show 'Units Produced' for customer A, I need to show another column 'Units Produced' for a related customer B.
    Every customer has one related customer.
    So my report shows all the data for customer A, but I need to add one column which is for custome B , so I am looking a way to concatenate columns or if some other way this can be done

    Customer A is dimension table. You mapped to fact to get Customer A details.
    Now you want for Customer B. Now create one more alias table for Customer and name it as customer B and join with Fact on Customer B keys and use it.
    Each customer has related customer.
    2 dimension tables one for customer and other for related customer.

Maybe you are looking for

  • How can I manually direct the path I want into my PC folders???

    on my laptop, my company has what's called a "Personal Profile" for me. I have a limited profile space that I can take up. My Personal Profile space is everything in "My Documents" PLUS everything in my "Application Data". When I exceed this "profile

  • The audio in my Macbook Pro sometimes becomes slow, low-pitched, and glitchy. Any idea what's going on?

    After restarting the computer, everything is back to normal, but it keeps happening every once in awhile. Any idea on how to fix it without shutting down?

  • Mail not working in 10.4.10

    I have just discovered that I cannot send mail since upgrading to 10.4.10. I can receive mail, but when sending I get a pop-up dialog box that says "Cannot send message using the server smtp.mac.com". This happens on both of my Macs. I can receive ma

  • Cannot export in iPhoto 6.0.6

    Having some trouble exporting photos in iPhoto on my MBP. I have tried selecting single pics , mutiple pics in a single roll and pics from multiple rolls. Destination is either the desktop, a folder on the desktop or a kingston 1gb usb drive. I have

  • EXCISE REGISTER EXTRACTION AS PER MATERIAL CODE

    HI GURUS OF MM,         Pls help me solu for this. Whether Excise extraction is possible material wise . Since the standard Register exctration is through J2i5 ( J2i6 for printing) in SAP, datewise extraction is possible. But Can Material wise extrac