How to put 2 queries in 1 report?

Hi,
I need to write 2 separate query for my report, how can i put these 2 query in 1 report?
Thanks,
Jun

Hi Jun
Create two (or any number) of queries in the Data Model.
Click on Query icon on the tool palette and drag a box on Data Model Canvas and specify your query in the ensuing dialog box. Repeat this for the number of queries you want to add to your report.
Regards
Sripathy

Similar Messages

  • APEX:How to put dynamic buttons in a Report.

    Hello all,
    I am creating one application in which i want two buttons in every record. I can't put it manually because it should change according to records in a table So Can anyone tell me how to put dynamic buttons in a report.
    Thanks & Regards,
    Jiten Pansara

    Hi Jiten,
    you cannot create buttons in the report, but you can always create link columns with some css class to show it as button.
    So in the both link column report attributes you will have class="button1" and class="button2"
    And in dynamic actions you need to bind the events based on your link column's jquery selector like:
    .button1
    .button2Thanks

  • How to run multiple queries in a report 6i

    hi!
    i have multiple queries that i have created in data model
    how can i invoke them in my report?
    thanks!

    Every query is run automatically. You can have a Q1 and Q2 and display results of Q1 on one page, and the results of Q2 on another.

  • How to put Header to an REUSE_ALV_GRID_DISPLAY report?

    Hi All,
      I have an ALV report and I am using REUSE_ALV_GRID_DISPLAY to display the output. How do I put a header to the report(not the column header)? I need a header which will display automatically on every page and I need to put the report name in the center, page no, date and time the report is run on the right hand side of the header and the user name running the report and on which client they are running the report on the left hand side of the header?

    Hi,
    Check this sample code..
    REPORT  Z_TEST_ALV_EVENTS                       .
    type-pools: slis.
    data: x_fieldcat type slis_fieldcat_Alv,
          it_fieldcat type slis_t_fieldcat_alv,
          x_events type slis_alv_event,
          it_events type SLIS_T_EVENT.
    data: v_lines type i.
    data: begin of itab occurs 0,
           vbeln like vbak-vbeln,
           posnr like vbap-posnr,
          end of itab.
    select vbeln
           posnr
           from vbap
           up to 100 rows
           into table itab.
    call function 'REUSE_ALV_EVENTS_GET'
      EXPORTING
        I_LIST_TYPE           = 0
      IMPORTING
        ET_EVENTS             = IT_EVENTS
      EXCEPTIONS
        LIST_TYPE_WRONG       = 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.
    read table it_events into x_events with key name  'TOP_OF_PAGE'.
          if sy-subrc = 0.
          x_events-form = 'TOP_OF_PAGE'.
          modify it_events from x_events index sy-tabix transporting form .
         endif.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    describe table itab lines v_lines.
    call function 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = sy-repid
        I_CALLBACK_PF_STATUS_SET          = 'STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
        IT_FIELDCAT                       = IT_FIELDCAT
        IT_EVENTS                         = IT_EVENTS
        tables
         t_outtab                         = ITAB[]
      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.
    FORM TOP_OF_PAGE.
        DATA: LS_LINE TYPE SLIS_LISTHEADER,
              E04_LT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
       Listenüberschrift: Typ H
        CLEAR LS_LINE.
        LS_LINE-TYP  = 'H'.
       LS_LINE-KEY:  not used for this type
        LS_LINE-INFO = 'Summary'.
        APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
       Kopfinfo: Typ S
        CLEAR LS_LINE.
        LS_LINE-TYP  = 'S'.
        LS_LINE-KEY  = 'Test'.
        LS_LINE-INFO = ''.
        APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
        LS_LINE-KEY  = 'ASIA'.
        LS_LINE-INFO = 'test'.
        APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
       Aktionsinfo: Typ A
        CLEAR LS_LINE.
        LS_LINE-TYP  = 'A'.
       LS_LINE-KEY:  not used for this type
        LS_LINE-INFO = TEXT-105.
        APPEND LS_LINE TO  E04_LT_TOP_OF_PAGE.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            IT_LIST_COMMENTARY = E04_LT_TOP_OF_PAGE
            I_LOGO             = 'ENJOYSAP_LOGO'.
    ENDFORM.
    Regards
    vijay

  • How to put Company logo in the report?

    Hi,
    How am i going to include the company logo or a image file into my report?
    What is the best tools?
    I have try to use the "Link File" tool and it required me to specify the "Source Filename". So if I put the file path and filename in the "Source Filename", it's hardcoded...
    How to specify the "Source Filename" at run time or any otherway so that it won't hardcoded?
    Regards,
    Cheong

    Note that you can also use the read from file functionality.
    If you have a character based column, then any layout field based on this column will have the Read From File property. If this is set to Yes, then reports will attempt to use the value of the column to read a file from the file system. You can also specify the type of the file (image, text, or even an image URL to read an image from over the web).
    For example, if you have a column in the data model that returns a value ("c:\temp\mypicture.bmp"), and you set the Read From File property to Yes, and the File Format to be Image then at runtime, reports would look for c:\temp\myimage.bmp and return the value. And of course, since you can create a formula column in the data model then you can control the returned value as much as you like.
    Hope this helps,
    Danny

  • Reg: How to change Multiple Queries in WebI Report

    Hi all,
    I am woking in Xcelsius Dashboard. I used WebI approach for creating dashboard. I have two customers which one customer has SAP and another customer does not have SAP. so intially I have used Excell as data source. now I want to replace the Excel with BI Queries.Both having same structure.while replacing I faced the following problem.
    I created one WebI report based on Excel as data source that has two Queries(Two universes).I  want to replace excel based universe with BI query based universe.If I change the universe in an one query ,the univese is changed in an another query also.  How can I replace two different universes that based on BI queries with existing universes ?
    How can i resolve the problem?
    Thanks & Regards,
    Hemalatha J

    hema,
    As Thomas mentioned, changing one Data Provider causes the other Data Provider to get changed as well -- this is a problem for trying to change the universe on one tab and the system automatically goes and goofs up the other tab(s) as well.  I'm still on XI R2 and the problem happens so maybe someone with XI 3.1 or higher loaded can confirm that this unwanted occurrence has been cleared up or not.
    Thanks,
    John

  • How to put pdf file on crystal reports.

    Hi all,
    I'd like to put pdf file which is the attachment of Item master on crystal reports.
    I tried OITM.attachment but it only shows the location where the file is, not file itself.
    Thanks in advance.

    Hi you can add it as a hyperlink (just remember: all the attachments are in this one line, so you need to separe it by ";")
    or you can simply use the insert>OLE object>Adobe ...
    Be vary it has some limitations.
    I think this is what you are looking for
    Regards,
    D

  • How to put Mandatory option for selection screen fields in ABAP Queries

    Hi Experts
    Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
    Manually I had written code in the At Selection Screen  option in infoset to display error message if that field is blank.
    But I need to display the selection fields with the tick mark (obligatory mark).
    How to do this?
    Appropriate answers will be awarded

    Hi
    For parameter option
    parameters : p_kunnr type kna1-kunnr  obligatory.
    For select option
    select-options: s_date for vbak-erdat obligatory.
    Plz rewards points ,
    Regards ,
    Ganesh.

  • How to put dashboards & reports in portal?

    Dear all,
    I am new to portal development. I created a dashboard using visual composer and would like to put it in the portal. I know I need to create an iView but how can I find the code link to the dashboard?  I really appreicate it if you can point me to the right direction.how to put the dashboard and reports in the portal (e.g. documentation, etc..) Thanks

    Hi,
    For VC dashboard : Whenever you create Vc model and run it Iview is created in to PCD->Visual composer folder.
    That iview you can attach in any workset and workset to role.
    For Report :
    You want to publish any query in to portal there are 2 ways.
    1)Go to Query designer -> query -> publish -> To portal
    here you select the folder and execute it will create the iview of report.
    2)Go to Portal select folder-> right click ->new Iview-> iview wizard will come -> next-> Iview description and  id -> next -> Application parameter Query = Query technical name->next->finish.
    Using these two ways we can publish report in to portal.
    try this.
    Regards,
    Ganesh.

  • How to pass an array or structure, in addition to a query, or multiple queries to the Report Builder as parameters

    Is there a way to pass an array or structure for example as parameters, in addition to a query, or multiple queries to the Report Builder in CF8? I believe this was recommended by users to be in CF8.

    BrianO,
    Although it's been a while, I thought I'd provide the code to do this for you. It works for me in CF8, and probably will in CF7.
    Here I create a structure called My, and provide that one parameter to my CFReportParam tag.
    <CFSet My = {
    Client = "Client Name",
    ReportDateFrom = DateFormat(ThisStartDate, DateMask),
    ReportDateTo = DateFormat(ThisEndDate, DateMask),
    PageHeaderImage = ImagePath & "\Logos\Page_Header.png",
    WatermarkImage = ImagePath & "\Logos\Watermark.png",
    GetBarSummary = GetBarSummary,
    GetPieSummary = GetPieSummary
    }>
    <CFReport Template="#ReportPath#\SpendSummary.cfr" Format="PDF" Query="GetSummary">
    <CFReportParam Name="My" Value="#My#">
    </CFReport>
    Inside the report itself, reference the given parameter as Param.My.PageHeaderImage for example. It can be referenced that way from any expression inside the report builder. You can even use the queries as the data source for charts (using the Data From a Query -> Query Builder -> Advanced) by entering "Param.My.GetPieSummary" where it says "Variable containing query object".
    HTH
    Swift

  • How to put "report total:" line in bold

    I have a report with sums. How can I specify to show the "report total:" line in bold?

    I have a report with sums. How can I specify to show
    the "report total:" line in bold?How are these sums being created? In other words, are you creating a calculation for each row in your query so you have a column of total values or is this a grouping sum calculation in your query? Or are you just using the sum checkbox on a report column in the Report Attributes definition page?
    When I use the latter HTML DB automatically adds a bold tag for me. Might have to do with the theme I'm using (theme 9).
    Anyway, there are probably a number of ways of accomplishing this. If the totals are in one of your columns you can add the font-weight:bold style to that column using the CSS Style setting for the column attributes. The most likely will probably be a CSS tweak.
    Take a look at your page source and see what class is being used for the totals and then we can see if we can tweak the CSS to make this happen.
    Earl
    Message was edited by:
    Earl

  • How GET Output to Excel with Oracle9i Report using OC4J

    how GET Output to Excel with Oracle9i Report using OC4J.
    I FINISHED THE SETPS CONCIDERING THE JSP CODE NEEDED TO GET THE EXCEL OUTPUT ON LOCAL MACHINE.
    I NEED TO PUBLISH THIS REPORT THROUGH APPLICATION SERVER.
    THE QUESTION IS:
    1- HOW TO START AN OC4J INSTANCE FROM ORACLE 9I DS FOR THIS REPORT?
    2- WHERE (PATH) TO PUBLISH THE REPORT ON THE APPLICATION SERVER?
    3- WHAT IS THE DEFAULT URL TO RUN THIS REPORT AND WHERE TO PUT IT?
    4- HOW TO MAKE MAPPING FOR DIRECOTRY PATH TO TRANSLATED AS URL FOR THIS REPORT?
    5- IF ANY ONE CAN GIVE ME THE FULL CODE TO RUN AND CALL SIMPLE JSP REPORT TO BE VIED IN INTERNET EXPLORER.
    THANK YOU

    Hi,
    I can't answer to all your questions, however I can tell you that:
    2) The directory where to put the report file is specifiend in a file named
    <serverName>.conf
    in the sourceDire property
    <property name="sourceDir" value="/directory/dove/mettere/i/report"/>
    that you can find under ORACLE_HOME/reports/conf
    3) The URL is
    http://<server IAS address>:<port number>/<jsp file path>/<repName>.jsp?server=<report server name>&userid=<user>/<pwd>@<DB conn string>[&<param>=<valore>[&...]]
    5) In IE you have only to set the previous URL in the address bar.
    Hope this helps you
    Bye
    Raffy

  • How to write join queries in Smartforms

    how to write join queries in Smartforms pls give me sample

    just as u write it in normal reports u can do the same in smartforms but it is suggested tht i u havve a custom print program do it thr and pass it thru interface
    кu03B1ятu03B9к

  • How to use SQL Query in OBIEE Reports

    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advance

    796797 wrote:
    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advanceArrggh. I wish people wouldn't just answer a question without taking the time to actually think about what the user is asking for and if it makes sense. I like Diney's response best: Why not use the Title View? (i.e., asking questions until it is clear what is needed.) So along those lines, why are you trying to put the name of your report in a column of your report?? And why do you need to use direct sql to do this??
    Kindly or not, urgent or not, state what you are trying to achieve and why you need it (if the obvious answer like "using the Title View" doesn't work for you), instead of simply assuming your method is right and you need to know how to do what envision. Your method may not be correct or necessary.

  • How to put distinct in the query

    Hi all,
    How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
    any idea , please help...

    In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
    I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
    ==================================================
    RqList distinct
    VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
    case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
    VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
    DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
    OrderBy: c4 desc
    =================================================
    -------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
    select T353.BATCH_ID as c1,
    case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
    T353.TOT_TRXN_CT as c3,
    T353.TOT_TRXN_AM as c4,
    T353.BREAK_ID as c5,
    T117.SCNRO_NM as c6
    from
    KDD_SCNRO T117,
    KDD_TA_DATA T130,
    KDD_TSHLD_SET T171,
    VW_SCNR_114000074_TA_DATA T353
    where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID )

Maybe you are looking for

  • Looking for definitive answer: Outlook 2010 Notes will/will not sync with iPhone 5 with iOS v7.1.2 ?

    Everyone, I have read the message board posting/response for just about every iteration of this topic I could find. I have read (and tried!!!) as many knowledge base articles as I could find. Bottom line: I feel I've tried everything I could, and I a

  • Vendor Confirmation fk08

    Hi,        I am creating some new vendors, but everytime i create them or make some changes in them, then someone else has to confirm the changes by using TCODE FK08  before i can use the vendor in system. I just want to know that, is there any other

  • Marking items in one playlist updates other playlists

    I'm trying to manage 2 ipods on 1 imac by keeping a single library and a separate playlist for each ipod; mine and my wife's. The problem I have is that when I check items on my ipod's playlist, it also checks the same song in the library and the sam

  • Weird iWeb problem with nav buttons....

    Hi all. New to this and a complete idiot. The club which I am the Prez of needed a web site, and as no one else volunteered, I ended up doing it. Everything seemed to go fine for a while until I started modifying the original site....then I started g

  • Message status for Contract

    hi, I want to change the message settings in Contract for "Fill in the Required entry fields". I want to change the settings from Error message to Warning messgae. Please advice where to do this in SPRO. Thanks in advance. with Regards, Saakithyan.