How to Export two Queries embedded in WAD 3.5

Hi,
I have follwoing task, I have two queries embedded in one Web Template (WAD 3.5) and want to export both queries in one Excel File. But now the Export-Command exports only one of them.
Who has an idea for me??? please help.
Best regards
Andi

Hi Janine, hi Sven,
thanks for response!
The howto-paper is very useful, but do you know how to integrate in coding not only one table for printing in Excel but also two tables?
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS"
value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER"
value="DATA_PROVIDER_1"/>
<param name='HELP_SERVICE'
value='HELP_SERVICE_PRINT'/>
<param name='HELP_SERVICE_CLASS'
value='<PREFIX>CL_RSR_XLS_HELP_WINDOW_PRINT'/>
ITEM: TABLE_1
</object>
Best regards
Andi

Similar Messages

  • How to fire two queries in one bean

    When I am trying to fire two queries using statement and result set
    it is showing error "result set is closed".
    How to fire two queries?

    Just do it. The ResultSet should be the result of the query. So you're working on a wrong reference or something.

  • How to Export two web items using one export button in WAD (3.X) ?

    Hello Friends,
    I am trying to export two reports using one export button which are in two columns of the table in a web template created in WAD 3.X. but not able to do it. i also tried to doing the same thing in BI 7 copied that code and pasted in 3.X but that doesn't work.
    can anyone help me on that?
    Thanks,
    Nayan Joshi

    hi,
    SPS 14 for NW 7.0 is installed. I found out, that the filter pane has should have the property "Affected Data Providers (LINKED_DATA_PROVIDER_REF_LIST)" and the navigation pane not. Look at:
    - http://help.sap.com/saphelp_nw70/helpdata/en/16/3ee2416149c717e10000000a155106/content.htm
    - http://help.sap.com/saphelp_nw70/helpdata/en/85/08e241aa8e9d39e10000000a155106/content.htm
    But in my WDA both items don't have this property. The latest SPS for Front-End-Tools is installed.
    Any further ideas?

  • How to Insert two queries in a single workbook in BI 7 ?

    Hi,
               I am trying to insert two queries in a single workbook. The queries are of Accounts Receivable.I have inserted one query in a workbook , but am not able to proceed to inserting the second query. In BEx analyzer, in design mode , using analysis grid , i tried inserting the second query but when saving and running, i am getting message " Variables are present, change their values " . should i maintain same variables for two queries ? i am stuck up. please explain me as how can this be done.
    Roja.

    Hi,
    If you get the message "Variables are present, change their values" ,it means that the query which you inserted having variables.
    You just click the "Change Variables" icon in the Analysis Toolbox,which will invoke the variable screen.
    Set the values in the variable screen and click OK.
    Now you will be able to see the data in the grids based on the values selected in the variable screen.
    Both queries data will be displayed in the workbook.
    Let me know in case of any clarifications!
    Rgds,
    Murali

  • How to combine two queries in one EXCEL

    hi i got one requirement
    i got one excel sheet  from user which contains two  report s(hoe we know whether it is worknook or not) of  2011 data and now user wants 2012 data .now i icluded jan 2012 to dec 2012 in two reports and sent to user.But user is asking these two reports want to see in one sheet.
    so how can i proceed: if i go for work  book  how can i include these two reports in workbook and here my doubt is if i create a workbook based on  these two querie which name i have to give user.Please help me out on the same.
    Regards,
    Madhu.

    Hi Madhu
    Run one query. Click on a empty space in the excel
    From the BEx Design Toolbar -
    >Insert Analysis Grid -
    > Right click on the Design Item
    Edit the DataProvider.....You can ran same or different query with selection. 
    Save the result
    Check this link for detail....I am also searching for something with screenshot
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 14, 2012 3:04 AM

  • How to join two queries

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    _1st query_
    select
    (CASE WHEN SUBSTR(R1.RA_NO,1,3)= 'NRA' THEN 'Damansara Uptown One Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'ORA' THEN 'Damansara Uptown Two Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'VRA' THEN 'Damansara Uptown Realty Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'URA' THEN 'Uptown Elite Sdn. Bhd.'
    when SUBSTR(R1.RA_NO,1,3)= 'WRZ' THEN 'U5 Management Corporation Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,2)= 'FR' THEN 'See Hoy Chan Facilities Management Sdn.Bhd.' END) Landlord
    ,TO_CHAR(C1.COLL_DTE,'RRRRMM') MONTH1
    ,SUM(C2.TRN_AMT) UPTO_31
    , SUM(CASE WHEN to_char(C1.COLL_dte) BETWEEN to_date(:P_FROM_DATE,'dd.mm.yyyy') AND '16-'||to_date(:P_TO_DATE,'dd.mm.yyyy') THEN C2.TRN_AMT END) UPTO_15
    from ra1 R1, COLLECT1 C1 , COLLECT2 C2
    where
    (to_char(C1.COLL_dte) between to_date(:P_FROM_DATE,'dd.mm.yyyy') AND to_date(:P_TO_DATE,'dd.mm.yyyy'))
    and (SUBSTR(R1.RA_NO,1,2)= 'FR' or SUBSTR(R1.RA_NO,1,3) in ('NRA' ,'ORA','VRA','URA','WRZ'))
    AND R1.RA_NO = C2.INV_NO
    AND C2.COLL_NO = C1.COLL_NO
    GROUP BY
    (CASE WHEN SUBSTR(R1.RA_NO,1,3)= 'NRA' THEN 'Damansara Uptown One Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'ORA' THEN 'Damansara Uptown Two Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'VRA' THEN 'Damansara Uptown Realty Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,3)= 'URA' THEN 'Uptown Elite Sdn. Bhd.'
    when SUBSTR(R1.RA_NO,1,3)= 'WRZ' THEN 'U5 Management Corporation Sdn. Bhd.'
    WHEN SUBSTR(R1.RA_NO,1,2)= 'FR' THEN 'See Hoy Chan Facilities Management Sdn.Bhd.' END)
    ,TO_CHAR(C1.COLL_DTE,'RRRRMM')
    _2query_
    select sum(decode(substr(ra_no,1,7),'NRA'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) NRA
    ,sum(decode(substr(ra_no,1,7),'VRA'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) VRA
    ,sum(decode(substr(ra_no,1,7),'ORA'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) ORA
    ,sum(decode(substr(ra_no,1,7),'FR'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) FR
    ,sum(decode(substr(ra_no,1,7),'WRZ'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) WRZ
    ,sum(decode(substr(ra_no,1,7),'URA'
    ||to_char(to_date(:P_FROM_DATE,'dd.mm.yyyy'),'yymm'),tot_amt,0)) URA
    from RA1
    above are the two queries i need to join these two queries by naming the second query column name as total .

    1st query output  is ----------
    LOCATION                                                                 MONTH1    UPTO_31           UPTO_15        
    U5 Management Corporation Sdn. Bhd.                           201001     15250                8900                                 
    Uptown Elite Sdn. Bhd.                                                201001      3000                 1500                                 
    See Hoy Chan Facilities Management Sdn.Bhd.                 201001      917115.45         584876.5                            
    Damansara Uptown Two Sdn. Bhd.                                201001      757277.45         495362.95                          
    Damansara Uptown One Sdn. Bhd.                                 201001     881558.65          404872.45                          
    Damansara Uptown Realty Sdn. Bhd.                              201001      321675.8           150508.6                              
    2nd query output is -------
    NRA              ORA              VRA              URA              WRZ           FR
    2323.31        95945           34367.8        34267            4343         343
    Now what i need is
    LOCATION                                                                 MONTH1    UPTO_31           UPTO_15          TOTAL
    U5 Management Corporation Sdn. Bhd.                           201001     15250                8900                2323.31                 
    Uptown Elite Sdn. Bhd.                                                201001      3000                 1500                95945                  
    See Hoy Chan Facilities Management Sdn.Bhd.                 201001      917115.45         584876.5           34367.8                  
    Damansara Uptown Two Sdn. Bhd.                                201001      757277.45         495362.95          34267                 
    Damansara Uptown One Sdn. Bhd.                                 201001     881558.65          404872.45           4343
    Damansara Uptown Realty Sdn. Bhd.                              201001      321675.8           150508.6           343above is the clear picture what i need , i don't know how to do it please help me
    Edited by: user9093689 on Feb 21, 2010 8:06 PM

  • How to Combine two queries into One

    Hi Gurus,
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    I have following two queries. How I can convert these two queries into one with the same result ?
    Q1
    SELECT id,vdate,vendorname,venddate,vid
    FROM VENDOR
    WHERE processid=32
    AND venddate is null
    AND vid in(select vid from view_vid where type='PDX')
    AND (id,vdate) not in (select id,vdate from vkfl_is where task_id=55)
    AND (id,vdate) in (select id,vidate from market_data where marketed_date is null)
    AND id not in (select id from location)
    Q2
    SELECT id,vdate,vendorname,venddate,vid
    FROM VENDOR
    WHERE processid=20
    AND venddate is null
    AND vid in(select vid from view_vid where type='PBX')
    AND (id,vdate) not in (select id,vdate from vkfl_is where task_id=40)
    AND (id,vdate) in (select id,vidate from market_data where region_date is null)
    AND id not in (select id from location)
    I can UNION these two queries, but, is there any way I can write a single query with which gives me same result as above two queries?
    Any help would be highly appreciated
    Thanks in advance

    Hi,
    You can do something like this, which will be more efficient than a UNION:
    SELECT  id, vdate, vendorname, venddate, vid
    FROM  vendor
    WHERE  (   (    -- Conditions that apply only to q1
                               processid = 32
                AND  vid       IN (SELECT vid FROM view_vid WHERE type = 'PDX')
                AND (id,vdate) NOT IN ( SELECT id, vdate
                                        FROM   vkfl_is
                                        WHERE  task_id = 55
                AND (id,vdate) IN ( SELECT id, vidate
                                    FROM   market_data
                                    WHERE  marketed_date IS NULL
            OR  (  -- Conditions that apply only to q2
                     processid = 20
                AND  vid       IN (SELECT vid FROM view_vid WHERE type = 'PBX')
                AND (id,vdate) NOT IN ( SELECT id, vdate
                                        FROM   vkfl_is
                                        WHERE  task_id = 40
                AND (id,vdate) IN ( SELECT  id, vidate
                                    FROM  market_data
                                    WHERE  region_date IS NULL
                   -- The remaining conditions apply to both q1 and q2
    AND     venddate   IS NULL
    AND     id         NOT IN (SELECT id FROM location)
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to insert  two queries in the same workbook in new BI 7.0 Bex web analy

    Hi
    Can you please advise how to insert multiple queries in the same workbook in BI 7.0 web analyser.
    Sarah

    Hi,
    You need to switch to design mode (BEx Analyser Menu - Design Toolbar - Design Mode). For each query that you want to embed, insert an analysis grid item in the workbook. Link each analysis grid to its corresponding data provider (query).
    Hope this helps.
    Regards,
    Rajkandula

  • How to export two diferents DB to one unique DB

    Hi people,
    I doubt whether it is possible to export two different databases, each of them a central instance in different machines, one machine where the two instances together and merge these data bases on a single BD.Data from both database consolidated into a single database, apart from the two move from DB to non unicode unicode.
    Thanks!!!!

    No.
    If you want to merge systems you need to buy an SLO service, check http://service.sap.com/slo. That group has the tools to consolidate several systems on one.
    Markus

  • How to combine two queries using Web application Designer

    Hello experts...
    This should be a simple request.
    I have two existing queries that I simply want to display on the same template. What is the best way to do this?
    To add more complexity to it, if there is a result value that I want to pull from each of them, how can this be done so that I can add the results of the two into one total?
    Any help that you can provide is greatly appreciated. Thanks

    Hi,
    Displaying the existing queries on the same template is very simple... Drag and drop to web items... for ex we will drag and drop two analysis web item...
    Create 2 data providers and assign it to the web items... each dataprovider is in turn assigned to two existing queries...
    I am not sure about the result value to be pulled from each of them...
    Regards,
    Kishore

  • How to show two queries/ aggregation levels in one Chart in Web Template

    Hi Experts,
    I have a question regarding showing a graph in a Web Application template.
    The graph has two elements on it.  The key figure is average number of working days, but the requirement is to compare number of working days for a granular data level (time spent in each process stage per month) to the average across all process stages across the entire month.
    So essentially what we have is a chart with one constant horizontal line across it, which is the overall average, across all process stages, for the whole month, and then underneath this horizontal line, a series of columns showing the average for each process stage, broken down.
    I am having trouble getting the base query right for this requirement.  It feels like for each process stage, I need two key figures (for the two data series); one average per stage, and the other should be the overall average, populated once for each stage.
    I couldn't make this work using cells or replacement path, and I assume that you can only use one data provider per chart in the WAD.
    Can anyone help me?  Please let me know if you need more info.  It's a shame I can't post a picture of the required graph in this post.
    Thanks
    Mischa

    Hi Mischa,
    If I am reading your description correctly you should be able to model your two Key Figures in the query by having the two Key Figures exactly the same, exept give one an exception aggregation to average with reference to characteristic 0CALMONTH.
    So you have your business process and calendar month in your rows, and the two Key Figures in the columns one with standard aggregation and one with exception aggregation on month. This should give you the KF amount per process wthin each month as well as the average KF amount over the month.
    Hope this helps,
    Nick

  • How to export PDF without embedded fonts?

    Hi,
    I'm using CrystalReports with VS2008. I export a report in this way:
    rpt.ExportToDisk(ExportFormatType.PortableDocFormat, filename);
    This works fine except it includes the used fonts. A older version of our export tool used Delphi and the vcl component which did not include the fonts. Including the fonts increase the pdf filesize in my case from 21kb to 70kb. Sounds less but the export creates around 1500 pdf on one day.
    Is there a way to export to pdf without embedding the fonts?
    Thanks
    Thomas

    Hi Thomas,
    No, and it's not all just embedded fonts. After CR 8.5 we converted everything to be UNICODE compliant. So as of CR 9 the size of the files, Printing as well as exporting, increased due to the unicode feature. All characters and bits of the files are now double byte in length with the resulting output being typically 4 or 5 times greater in size ( just a guess ).
    Only option would be to export as usual through CR and then use PDF API's to remove the fonts from the output file and resave the PDF.
    Thank you
    Don

  • How to combine two queries?

    Can you help to combine these two categories so that I can have dynamic pivot table ?
    Thank you,
    IF OBJECT_ID('Temp') IS NOT NULL
    DROP TABLE Temp
    select 'Referrals Received' AS CategoryType,
    'A' AS CategorySort,
    cn.Cntry_Definition as Cntry,
    COUNT(*) AS Cnt,
    SUM(SUM(1)) OVER () AS Total
    INTO Temp
    from  WRAPSIST0.dbo.tblindividual i
    inner join   WRAPSIST0.dbo.tblcase c on c.case_guid = i.case_guid
    inner join  WRAPSIST0.dbo.tblCountry CN on CN.Cntry_Code=c.Cntry_CodeLocation
    inner join  WRAPSIST0.dbo.tblfiscalyear fy on case_createdate between fy_startdate and fy_enddate
    where fy_year = '2014' and casear_code <> 'du' and c.CaseP_Code<>'sv'
    GROUP BY cn.Cntry_Definition
     order by cntry asc
    DECLARE @CountryList varchar(8000),@SQL varchar(max)
    SELECT @CountryList= STUFF((SELECT ',[' + Cntry + ']' FROM Temp FOR XML PATH('')),1,1,'')
    SET @SQL = 'SELECT CategoryType,' + @CountryList + ',Total FROM Temp t 
    PIVOT(SUM(Cnt) FOR Cntry IN (' + @CountryList + '))p'
    EXEC(@SQL)
    IF OBJECT_ID('Prescr') IS NOT NULL
    DROP TABLE Prescr
    select 'Prescreen Completed' AS CategoryType,
    'B' AS CategorySort,
    cn.Cntry_Definition as Cntry,
    COUNT(*) AS Cnt,
    SUM(SUM(1)) OVER () AS Total
    INTO Prescr
    FROM ReportStatistician.dbo.vwEventLog_LatestPSI_SCH t
    inner join  WRAPSIST0.dbo.tblIndividual i on i.Ind_GUID=t.Ind_GUID
    inner join  WRAPSIST0.dbo.tblCase C on C.Case_GUID=i.Case_GUID
    inner join  WRAPSIST0.dbo.tblNationality N on N.Nat_Code=i.Nat_Code
    inner join  WRAPSIST0.dbo.tblCountry CN on CN.Cntry_Code=c.Cntry_CodeLocation
    inner join  WRAPSIST0.dbo.tblfiscalyear fy on t.EventLog_EffectiveDate between fy_startdate and fy_enddate
    where fy_year = '2014' and c.PreS_Code='com'
    GROUP BY cn.Cntry_Definition
     order by cntry asc
    --DECLARE @CountryList varchar(8000),@SQL varchar(max)
    SELECT @CountryList= STUFF((SELECT ',[' + Cntry + ']' FROM Prescr FOR XML PATH('')),1,1,'')
    SET @SQL = 'SELECT CategoryType,' + @CountryList + ',Total FROM Prescr t 
    PIVOT(SUM(Cnt) FOR Cntry IN (' + @CountryList + '))p'
    EXEC(@SQL)
    CREATE TABLE #final
    CategoryType varchar(50),
    CategorySort char(1),
    cntry char(20),
    Total int
    select CategoryType, cntry, Total 
    from #final
    order by CategorySort
    Erdal Huzmeli

    The result of the query looks as following;
    CategoryType
    Kuwait
    Lebanon
    Turkey
    United Arab Emirates
    Yemen
    Total
    Referrals Received
    1
    2
    3
    4
    5
    CategoryType
    Kuwait
    Lebanon
    Turkey
    United Arab Emirates
    Yemen
    Total
    Prescreen Comleted
    6
    7
    8
    9
    10
    I want the query to show the following result if it possible?
    CategoryType
    Kuwait
    Lebanon
    Turkey
    United Arab Emirates
    Yemen
    Total
    Referrals Received
     1
    2
    3
    4
    5
    Prescreen Completed
     6
    7
    8
    9
    10
    Thank you,
    Erdal Huzmeli

  • How to run two query  in the same preparedStatement

    Hi all,
    Please tell me how to run two queries in the same preparedStatement object ?
    In my module I have to run two queries and I don't want to make two methods for running two different queries.
    I just want to call this method for both of my queries.
    methodName(long param)
    Connection conn=null;
    PreparedStatement pstmt=null;
    //////////////// some coding
    Please Help !
    Thanks in advance
    amitindia

        public void foo()
            Connection connection = null;
            PreparedStatement stmt = null;
            try {
                connection = ...get from pool...;
                stmt = connection.prepareStatement("...");
                ...fetch results...;
                stmt.close();
                stmt = null; // So the finally statement works if there is an exception
                stmt = connection.prepareStatement("...");
                ...fetch results...;
            } finally {
                if (stmt != null) ..close it...;
                if (connection != null) ..return it to pool...;
        }

  • How to save 2 queries in 1 workbook

    Hi experts,
    could you tell me in steps how to save two queries in one workbook.
    Regards.
    harry

    Hi Harry,
        After creating a query you can execute the query. Once the result is displayed you have the option of saving it as a workbook. using that you can save it as workbook. Once it is saved as workbook you can run it and the result is displayed in one sheet. Go to another sheet and use the option insert query in the workbook to insert new query. So you will have a workbook with 2 queries now. Futher if youwant to interpret the data of the 2 queries ina fresh sheet in the same workbook you can use cell references and hide the other 2 sheets.
    i hope this will help you.

Maybe you are looking for

  • Difference of 21.5" iMac 2.7Ghz over 2.9Ghz?

    Does it worth the penny to choose 21.5" iMac 2.7Ghz over 2.9Ghz? What is the major difference between these two? (hope not to mention the obvious hardware difference e.g. Nvidia GT640M vs 650M etc but rather appreciate for more technical cents of use

  • Adding to the pop up menu in ibooks

    Hi, Is there a way to add entries to the iPad dictionary or use your own dictionary in iBooks?

  • Item Text additional info

    In sales order for a material item text is maintained through material master sales text............now the client wants to add more instructions directly in the sales order ......but the text tab is greyed out  and it includes the text from the mate

  • Using ProcessService in Automatic Activity

    I want to use the ProcessService inside an Automatic Activity to search for a process instance already dealing with a contract (no 2 or more process instances are allowed to work on the same contract). The following code works perfectly: ProcessServi

  • Properties not Visible in MAX

    I'm working on a PC that isn't connected to the Internet so it may be an old version of MAX. I have a NI-2627 switch that I need to change the topology of from 32x2 to 64x1. When I open MAX and right-click on the card, the only options I get are: Sav