Query SAP BW via XMLA Webservice and save response to HD

Hi,
I´m currently working for an QM Project to create an Overview-page with figures from various BW-Querys. Unfortunatly the the BW-Performance isn´t fast enough to execute a lot of Querys in realtime, so I can´t use the Web App Designer.
To improve performance I want to execute those querys once a day and save the result sets on hard disk. To get the data out of the BW I want to use the XMLA-Webservice which is already running.
Is there a simple way or application to send my XMLA to the webservice and save the response on hard disk?

You can use XMLA web service or the queryview web service to get the data in XML format. The queryview XML service is only available from BW 3.5, see attached documentation.
http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/content.htm
Ther is also an How to document available for XMLA under the BW 3.0B section.
If you are looking at a report with no navigation you can use the pre-calculation of the web reports with reporting agent which will create a pre-calculated HTML output on the BW server. Everytime you access the web report the pre-calculated HTML output will be displayed and the performance is great as the data is not accessed at runtime.
http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm
Thanks.

Similar Messages

  • SAP variables via XMLA

    Hi Experts,
    I would like to know how to retrieve SAP BW variables via XMLA.
    Full points will be assigned.
    Thanks,
    Sapna

    Hi Sapna,
    Find the below link ....this may helpful.....
    http://209.85.175.132/search?q=cache:cw1fHe2QhUEJ:download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/UsingRSwithSAPNetWeaver.dochowtoretrieveSAPBWvariablesthroughXMLA&hl=en&ct=clnk&cd=4&gl=in
    Thanks==points
    Regards
    Sudheer
    Edited by: SUDHEER on Jan 6, 2009 7:17 AM

  • How to retrieve SAP variables via XMLA

    Hi Experts,
    I would like to know how to retrieve SAP BW variables via XMLA.
    Full points will be assigned.
    Thanks,
    Sapna

    HI
    /people/prakash.darji/blog/2006/09/04/work-with-xmla-web-service-for-bi-data-in-external-applications
    http://publib.boulder.ibm.com/infocenter/wpfhelp/v6r1m2/index.jsp?topic=/com.bowstreet.designer.doc/designer/c_sapbw_data_builder.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67acb63d-0401-0010-b685-b1b87dd78892
    Hope it helps

  • Can't connect SAP BW via Live Office and Crystal Report

    Hi all,
    I got error when I tried to refreh with connection refresh button in below environment.
    Does anyone know the cause of this problem?
    <System Configuration in my environment>
    SAP BI Bex Query(Data Source) --> Crystal Report(in Infoview) --> Live Office --> Xcelsius
    <Error>
    LO 26608 (under Enterprise Authentication)
    LO 02010 (under SAP Authentication *1)
    *1 I followed the instruction of below blog.
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-2-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    <Environment>
    Xcelsius 2008 SP1 Fix Pack 3
    Crystal Report 2008
    Live Office XI 3.1 Version 12.1.0.882
    SAP BI 7.0 (SAPKW 70016)
    Regards,
    Hiroyasu

    Hi,
    Thanks for your response. Please see below answers to your question:
    When you say that you are not able to connect from Word Live office to server - in this are you able to see Live Office tab in word document?
    Yes, I can see the Live Office tab. When I try to connect to the server to insert a crystal report I get the message "constructor exception (error: WSE 99999) Unknown error "-1""
    Did the installation process was done properly?
    As far as I am aware, yes.
    Which version of Live office you are using? because it will help to proceed further.
    LIVE OFFICE XI 3.1 (version 12.1.0.882)
    Where exactly you are not getting the Crystal Reports Options? Are you facing any error message?If Yes then what is the error message.
    Please see above
    Are you able to login to server successfully?
    I can in Excel in Live office but not in Word. As per the first message, I cannot see an option in Crystal to publish a crystal report. Do you know how I can do this? As I understand I need to publish it to the server and then Live Office will be able to see it.
    Regards
    Asha.

  • Query SAP BW via BO universe - Dialog user / Communication user

    Hi,
    Context: XI 3.1 Web Intelligence on top of SAP BW.
    Can a communication user be used in the universe connection? or does it need to be a dialog user?
    Possibly the following post already gives the answer:
    Change BEX query to run in background process instead of dialog?
    Terminology used there is slightly different, we just want to be sure.
    Thanks!
    Raf

    Hi,
    I just tried it with User Type = Communications data and with User Type = System. Both of them worked fine and I was able to display the queries/infocubes from BW.
    Hth.,
    Jacob

  • Read Idoc via a report and post response idocs

    Hello All,
                Can any one suggest me a report to read an idoc and secondly based on the segment (say position segment) trigger a response idoc ?
    Regards,
    Anirban.

    Hi,
    go to following code :
    Program To Generate IDoc
    *& Report  ZZ_Program_To_Create_Idoc                                        
    report  zz_program_to_create_idoc                     .
    tables: ekko,ekpo.
    selection-screen skip 3.
    selection-screen begin of block b1 with frame title titl.
    selection-screen skip.
    select-options s_ebeln for ekko-ebeln.
    selection-screen skip.
    selection-screen end of block b1.
    data: header_segment_name like edidd-segnam value 'Z1EKKO',
          item_segment_name like edidd-segnam value 'Z1EKPO',
          idoc_name like edidc-idoctp value 'Z19838IDOC1'.
    data: header_segment_data like z1ekko,
          item_segment_data like z1ekpo.
    data: control_record like edidc.
    data: messagetyp like edmsg-msgtyp value 'ZZ9838MESG1'.
    data: i_communication like edidc occurs 0 with header line,
          i_data like edidd occurs 0 with header line.
    data: begin of i_ekko occurs 0,
          ebeln like ekko-ebeln,
          aedat like ekko-aedat,
          bukrs like ekko-bukrs,
          bsart like ekko-bsart,
          lifnr like ekko-lifnr,
          end of i_ekko.
    data: begin of i_ekpo occurs 0,
          ebelp like ekpo-ebelp,
          matnr like ekpo-matnr,
          menge like ekpo-menge,
          meins like ekpo-meins,
          netpr like ekpo-netpr,
          end of i_ekpo.
    start-of-selection.
    select  ebeln aedat bukrs bsart lifnr from ekko
              into table i_ekko where ebeln in s_ebeln.
    select ebelp
           matnr
           menge
           meins
           netpr
           from ekpo
           into table i_ekpo
           where ebeln in s_ebeln.
    control_record-mestyp = messagetyp.
    control_record-rcvprt = 'LS'.
    control_record-idoctp = idoc_name.
    control_record-rcvprn = '0MART800'.
    loop at i_ekko.
    header_segment_data-ebeln = i_ekko-ebeln.
    header_segment_data-aedat = i_ekko-aedat.
    header_segment_data-bukrs = i_ekko-bukrs.
    header_segment_data-bsart = i_ekko-bsart.
    header_segment_data-lifnr = i_ekko-lifnr.
    i_data-segnam = header_segment_name.
    i_data-sdata = header_segment_data.
    append i_data.
    select ebelp
           matnr
           menge
           meins
           netpr
           from ekpo
           into table i_ekpo
           where ebeln = i_ekko-ebeln.
    loop at i_ekpo.
    item_segment_data-ebelp = i_ekpo-ebelp.
    item_segment_data-matnr = i_ekpo-matnr.
    item_segment_data-menge = i_ekpo-menge.
    item_segment_data-meins = i_ekpo-meins.
    item_segment_data-netpr = i_ekpo-netpr.
    i_data-segnam = item_segment_name.
    i_data-sdata = item_segment_data.
    append i_data.
    endloop.
    clear i_ekpo.
    refresh i_ekpo.
    endloop.
    call function 'MASTER_IDOC_DISTRIBUTE'
      exporting
        master_idoc_control                  = control_record
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      tables
        communication_idoc_control           = i_communication
        master_idoc_data                     = i_data
    exceptions
       error_in_idoc_control                = 1
       error_writing_idoc_status            = 2
       error_in_idoc_data                   = 3
       sending_logical_system_unknown       = 4
       others                               = 5
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    else.
      loop at i_communication.
        write: 'IDOC GENERATED', i_communication-docnum.
      endloop.
      commit work.
    endif.
    initialization.
    titl = 'ENTER THE PURCHASE ORDER NUMBER'.
    Reward points if helpful
    Regards
    Srikanta Gope

  • MATMAS01 IDOC not reaching to SAP XI via report program.

    Dear Experts,
    WE are facing small challenge.
    I searched on SDN on scenarios: IDOC not reaching to SAP XI. But could not find exact solution t oour scenario.
    Problem:
    MATMAS01 IDOC is not reaching to SAP XI via report program and is in status of 03 on SAP system. And there are not entries under SM58.
    Under SAP XI system IDOC entry is not reflecting under IDX5 transaction, I tried to delete meta data of MATMAS01 thru IDX1 and uploaded again but still IDOC is not reaching to SAP XI.
    The strange is that MATMS01 IDOC is reaching to XI via WE19 test tool. So PORT and RFC destination settings betweeen R3 and XI is also correct.
    What could be the wrong ?
    Thanks
    Divyesh

    When sending Idoc from R/3,
    Settings at R/3
    create one port at WE21,
    Create Partner Profile for Outbound Message type in WE20.
    settings at XI
    Create one port in IDX1
    Import Matadata in IDX2.
    Create complete scenario in ESR for Idoc sender, also import IDoc in Imported Objects.
    Check these settings & send test idoc using WE19.

  • SAP Query (SQ01) - create and save queryies

    Hi Expert;
    We wanted to implement SAP query reporting (SQ01) tool, and already developed custom HR infoset and user groups and transported to QAS.  We experienced the problem that we can not directly "save" any queries in SQ01. We pretty much have the client opened up and set at "Changes without automatic recording".  But keep getting a "transport object create" dialog upon "save" query.  But in Adhoc (PQAH), we don't encounter same problem.    We wanted our users be able to create and save any queries directly without creating any local objects. Is there another setting that needs to be set? 
    Thanks for any information that you can provide.  Points will be awarded.
    Helen

    Hello Helen,
    in SQ01 you can save queries like in HR Ad Hoc Query (or Infoset query as it is called outside HR).
    However this is only possible in the "Standard Area" not in the "Global Area". However as Ad Hoc Query is based on the SQ0x basics it only hides this effect.
    If you are doing HR specifics you should consider the documetnation on the special HR switches:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000076208&
    In general if you are new to the topic you should consider the courses BC407 for Query Basics and HR580 for reporting in HR.
    Also to get a feeling for the different types of reporting with the InfoSet Query you can look at the following documentation:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/2e7237a323427ee10000009b38f8cf/frameset.htm
    HR Reporting Tools -> Sap Query -> InfoSet Query -> Calling InfoSet Query.
    Or you can book a special training if you need a contact let me know your email adress
    Best regards,
    Michael

  • SAP BO Report Scheduling and Save as report using Java SDK

    Hi All,
    We have a java product which is integrated with SAP BO using Java SDK and we have certain java screen through which we select report prompt values and webi report gets run.
    Now we want to give a functionality to save report to BO repository.
    When user select certain check box from java screen a separate copy of the webi report should get saved under default folder on BO repository.
    Also, we want user to choose the scheduling option from java screen only (and not the one which we use from BI Launchpad) due to certain access restriction. User does not have access to BI Launchpad. Only he can run report by selecting values through Java screen.
    If i need to create a separate screen for scheduling as well as saving webi report then also i am ok with it.
    P.S. i guess we need to work on Java SDK level. But could somebody please help me with the right direction?
    Let me know in case requirement is not clear.

    Hi Ketan,
    As you are on version BI 4.0 SP5 and would be migrating to BI 4.1, the best SDKs to use would be the Restful Webservices SDKs.
    You have the options to schedule a webi report with prompts as well as the save feature which you require.
    Please refer to the webi restful guides avialble at
    For BI 4.0 SP5
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp5_webi_restful_ws_en.pdf
    For BI 4.1 SP4
    http://help.sap.com/saphelpiis_sbo41sp4wi-sdk/frameset.htm
    Refer to the below blog to understand the Restfull Webservices SDKs.
    http://scn.sap.com/community/restful-sdk/blog/2013/09/07/scripting-web-intelligence-the-restful-raylight-web-services--learing-it
    More blogs on Rest are available at
    http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bblogpost%5D
    You can find the samples from the below link
    http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bdocument%5D
    You would need to refer to the community below in case you have concerns about Rest SDKs.
    http://scn.sap.com/community/restful-sdk
    Thanks,
    Prithvi

  • SAP Query-for  Reporting   how to create and use it

    Hi SAP Gurus,
    i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
    also if you have any study material on steps on How to write and create queries for PP module
    thank you very much

    Hi
    Please refer below document
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Also refer below
    How to Create Infoset Query (SAP Query)
    Steps on how to proceed to create a Query:
    ADHOC QUERY
    A query can be created to extract information from master records  i.e  Infotypes.  For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :  
    Decide on  the various Infotypes we  want to make the query.  Decide on the area where we  want to query  i.e  Global area or Standard area.  Standard area is client specific and globel area will include all clients.
    Menu : HR – PM – Admn -  Information System -  Adhoc Query
    Select area standard and select the  user group already created
    Creation of new query  :  
    TC SQ03  -  Select Environment – Select Standard Area -  Enter  --  If new user group is to be created, enter name of the user group, click on create and enter necessary information and  exit after saving
    TC SQ02  -  Enter name of the Infoset – Create – enter name of Infoset -  Data source -- >  Table join by basis table – give name of table e.g  pa0000 -  Enter -  Click on insert table if we  want to include more tables – give name of table one by one and after finishing,  place cursor on the joining lines and right click to delete unwanted relationships  - check  - and go back  - field groups  -  include all table fields  - click on generate button   -  go out
    TC SQ03  -  Select user group  -   eg.  Payroll
    Infoset  - Enter name of newly created Infoset 
    Assign users and Infosets  -  Assign infosets  -  put tick on payroll  - save and go back
    TC  PAAH  -  Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query  by giving the same name as infoset for easyness..
    For executing a query which is already created
    1. Go to SQ01 transaction
    2. Go to Environment menu->query areas->std areas
    3. Then choose the user group where the query is created
    4. It will display all the queries created for the group.choose the query you want to executeand click execute.
    5. will take to the initial screen
    6. Enter the required parameters and execute
    Regards
    Ranga
    Message was edited by:
            Ranganathan Srinivasamurthy

  • NW Business Client and accessing SAP services via web pages

    Hi all,
    We currently use Business Connector to access our SAP environment via web pages. We looked at NW eSOA but decided against implementing it. Does Business Client offer anything that helps access SAP apps and data from a custom web site better the Business Connector?
    Thanks in advance,
    Tom

    Tom
    I am assuming you are using SAP Business Connector in your landscape to connect to back end SAP systems from  your web applications. Your question now is that if business client can let you access SAP data for your web pages instead of the business connector. Point to not here is that Business client, as the name implies, is just a client with single point of access for SAP screens. That means, you can access traditional SAP transactions, WebDynpro screens, BSP pages, Portal screens etc in one single client. In very raw terms, Business client acts (or replaces) as your browser. It is not going to provide you any out of the box integration with backend system rather just act as a window. You options at this point are
    1) Use your existing webpages but instead of getting data from the backend system through business connector, get the data using webservices.
    2) Use PI as middleware tool and get the data from backend SAP system
    3) Stay were you are but deal with high cost of ownership.
    Thanks
    KK

  • How to prevent end user to create a Query View and save back to BW Server?

    Dear All :
    Do Someone know that how to setup authorization for Bex Query View Creation? We want to prevent end user to create a Query View to save back to BW Server his favorite folder. when our user run Bex Query, he can base on this query and use Bex Analyzer's save function to save a Query View and save into his favorite folder.
    My question is :
    1. Can we set up a Authorization to prevent end user to save Bex Query View?
    2. Or can I remove Save function from Bex Analyzer to prevent end user use save function, But Developer should not to be prevent .
    Thanks for all of your kindly response.
    Best Regard
    Lawrence Kuo

    Hi.
    Yes, you can do it like you outline in your point 1):
    You need to use the authorization object S_RS_COMP for this. This object let's you control what parts/components of a query the user can do stuff to. So, in your case, you need to have a role for the users, where you do not grant create-access to the component QVW, and then you need another role for developers, where you grant full access or whatever you need for your developers.
    See [this post|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a6c54319-0e01-0010-20a4-fb81ad32f330?QuickLink=events&overridelayout=true&5003637661135] and the [SAP Help entry|http://help.sap.com/saphelp_nw70/helpdata/en/80/1a6859e07211d2acb80000e829fbfe/content.htm].
    You will also need to use the authorization object S_RS_COMP1. If you already have a productive system with users doing reporting, both objects will be maintained in one of the roles already.
    You also want to consider using the object S_RS_PARAM to allow users to create variants for the variabel screen.
    Good luck.
    Jacob

  • IPhone App via Adobe AIR and Webservice

    Hi Forum,
    I am trying to deploy a iPhone App developed with ADOBE AIR. This gets data from SAP via a webservice. When I test it on the iphone simulator provided by Flash Builder it works fine. But when I try to run it on the iPhone, it just does not get any data. It does not ask for the user credentials also. I was wondering if any one has tried this route and succeeded ?
    Any pointers will be greatly appreciated.
    rgds,
    Rajvish

    Hello,
    Just try to open the any sample sap webpage sitting on SAP server ,where the webservice is residing on the iphone browser,if
    the webpage is opening,then there is problem in the application or else,your SAP server is not exposed on internet,so the webservice is not called.
    regards
    kaushik

  • Querying for contacts via webservices

    When we query for contact records via webservices , it only checks those contacts created by the webservices and not by any other users.A user id has been created for the same as 'Web Interface', though when we login to the instance through this user id we are able to view all the records created by other users also.
    Kindly help us with the issue
    Thank you.
    Edited by: user11089876 on May 4, 2009 10:07 PM

    Hi,
    Are you in R16 and using 2.0 WS APIs? If so please check what you are setting for the parameter "ViewMode". This may affect the data visibility. For more info, check the WS reference guide page 282. Hope it helps
    -- Venky CRMIT

  • Upload and save an Excel file from a local machine to SAP

    I am looking for a transaction which allows me to upload an Excel file from a local machine to SAP and save this file (the users should be able to edit the file in SAP afterwards).
    Then I would like to open and read the data from the file with the help of a function module which works as a background job.
    Unfortunately, I cannot use the application server because our users do not have the authorization to save files on it. Besides, the application server is not able to process Excel files.
    Thank you in advance.
    Stephan Klumpp

    Hi Stephan,
    You can do this using OLE technology. Bu you will have performance issues.
    Can you check the below demo programs? It has similar functionality. I am able to create excel sheet from sap and also able to save the data in the sap.
    SAPRDEMOEXCELINTEGRATION
    SAPRDEMOEXCELINTEGRATION2
    Please also check the below rograms for more help.
    SAPRDEMOACTIVEXINTEGRATION
    SAPRDEMODOCUMENTCONTAINER
    SAPRDEMODOCUMENTCONTAINER2
    Thanks
    Ramakrishna

Maybe you are looking for