How to build an oData Service to expose DBA Cockpit Monitoring data?

Hi,
i need to build an oData Service which exposes some DBA IBM DB2 Monitoring data. (Transaction: ST06 or ST04)
Every tutorial is showing how to import an RFC, DDIC ...  but how can I find out which RFC, DDIC Structure I have to import to expose some data from the DBA Cockpit to generate an ODATA service.
Please help...
Thank you

Many many thanks,
i want to build an odata service which exposes some data from my IBM DB2 database.
For example data like:
Buffer Pools
Number 
Total Size
KB
Catalog Cache
Size 
KB
Quality
Lookups
Inserts
Overflows
Data
Logical Reads 
Physical Reads
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Logical Reads
Temporary Physical Reads
Average Time
Physical Reads 
ms
Physical Writes
ms
Buffer Quality
Overall Buffer Quality 
Data Hit Ratio
Index Hit Ratio
No Victim Buffers
Index
Logical Reads 
Physical Reads
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Logical Reads
Temporary Physical Reads

Similar Messages

  • How to build an OData Service with Gateway Service Builder (NO DDIC, BOR import)

    Hi Community,
    I hope to get an answer here to finish my project. I´m a newbie to the sap gateway service builder. Please provide me a helping hand.
    I have a problem I´m sure someone out there can help me.
    I need to create an sap ui app, which is monitoring our database behaviour (->transaction st06) is there someone who knows how to build a OData Channel with sap gateway service builder without importing a BOR- Object, or a DDIC?
    Or how to build an OData channel which exposes the database (monitoring) data from ST06?
    I would really appreciate if someone could help me.
    THANKS!
    JOE

    Hello Joe,
    If u do not want to import any Structure or BOR- Object, u can follow below steps :
    1. Create ur data model by adding the properties manually in SAP GW service builder with correct Edm    types.Doing this would be pain in my opinion ( sometimes we are forced to do this but no other option    doing this way )
       Create associations & navigation needed. 
    2. U can generate run-time objects.
    3. Go to appropriate classes and implement methods with ur Business Logic.
    4. Register ur service & consume.
    U can also import RFC to create data model and create mapping as per required by implementing correct method as well.
    once u do this generate objects and register service and consume it.
    Check this out for ur info :
    Detailed step by step procedure for Creating Gateway Service with all the CRUD Operations and testing them in Service Explorer Part1 
    Regards,
    Ashwin

  • Creating odata service

    Hello,
    We are creating an oData service importing a RFC.
    According to RFC, we need to pass some input parameters of one of the output tables, and we use another output table which eventually gets the data list after execution.
    Kindly advice, how can we build a OData service following the same.
    Thanks & Regards
    Ajay

    Thank you I have created O data Service but when I try to generate results I am getting the following error:
    1. I have generated O data Service on MDX query
    2. from gateway if generate output (/sap/opu/odata/sap/Z_TEST_1_SRV/E0IC_C03_0IC_C03_Q0031Results)
    It is giving me following error Kindly advice
    <?xml version="1.0" encoding="utf-8" ?>
    - <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> 
    <code>BRAINOLAPAPI/100</code>  
    <message xml:lang="en">Invalid MDX command with ON</message>  
    - <innererror> 
    <transactionid>7135F6E36BE9F125A022000C294D5782</transactionid>  
    - <errordetails> 
    - <errordetail> 
    <code>BRAINOLAPAPI/100</code>  
    <message>Invalid MDX command with ON</message>  
    <propertyref />  
    <severity>error</severity>  
    </errordetail>
    - <errordetail> 
    <code>/IWBEP/CX_MGW_BUSI_EXCEPTION</code>  
    <message>No exception text available</message>  
    <propertyref />  
    <severity>error</severity>  
    </errordetail>
    </errordetails>
    </innererror>
    </error>

  • Consume OData service in SUP 2.1.3

    Hello,
    How to consume of OData service in SUP 2.1.3 for creating MBO for HWC?
    Our OData service is having mandatory filters which needs to be passed.
    http://xxx:8000/sap/opu/odata/sap/Z_TEST_V2_SRV/Entity_Set_Name/?$filter=Filter1 eq 'value1'and Filter2 eq 'value2'
    So, while creating XSD from XML should we need to use the above URL or http://xxx:8000/sap/opu/odata/sap/Z_TEST_V2_SRV/?$format=xml
    If we are using http://xxx:8000/sap/opu/odata/sap/Z_TEST_V2_SRV/?$format=xml and convert it in XSD then we are not able to see FEED in the MBO creation.
    Also, if we are using http://xxx:8000/sap/opu/odata/sap/Z_TEST_V2_SRV/Entity_Set_Name/?$filter=Filter1 eq 'value1'and Filter2 eq 'value2' and convert it into XSD then we are able to see the FEED in MBO creation but while choosing the fields it is throwing us java.lang.nullpointer exception.
    Can anyone explain us the solution for the problem?
    Regards,
    Rahul

    Is there a particular reason why SUP 2.1.3 is used and not the latest 2.3.4?  It is recommended to move to the most recent version if possible/new project.
    For HWC consuming OData service, you can connect directly from your JavaScript without using MBOs.  Please take a look at this link:
    Develop OData-based Hybrid Apps
    Thanks,
    Andrew.

  • BPM ODATA Service to start process

    Hi,
    Can any one help how to use BPM Odata service to start process?
    Regards,
    Pavani

    Hi,
    try the following two blogs:
    The specified item was not found.
    Working with SAP NW BPM and SAPUI5: Using SAP NW BPMs OData-Services
    Best regards,
    Timo

  • Calling the odata service from UI

    Hi Everyone,
    From the below document I have executed all operations of the odata service
    Let’s code CRUDQ and Function Import operations in OData service!
    But I want that from an UI I will provide the data which will create or update or get deleted. Is it possible? If yes, then How to do that and if No, then what is the use of this odata service which I created? How to create an odata service which can be called from a browser? For that RFCs and BAPIs are required?
    Regards,
    Soumya

    Hi Chandra,
    Following I am giving the code where I got stuck. When I am pressing the create button the dialog is opening but during fetching and getting the request it is showing the alert of the 1st err function which I have made bold. But why the code is going there I am not able to uderstand.Please help.
    Code:
    OData.request 
                                            requestUri:      "http://server:host/sap/opu/odata/sap/ZGW638785_EMPLOYEE_TEST_SRV/EmployeeCollection/",  
                                                  method: "GET",  
                                                  headers: {       
                                                    "X-Requested-With": "XMLHttpRequest", 
                                                    "Content-Type": "application/atom+xml", 
                                                    "DataServiceVersion": "2.0",          
                                                    "X-CSRF-Token":"Fetch"                                 }                    
                                               function (data, response) 
                                               alert("1st func     "+mandt_var+"      "+employeeID_var +"       "+ address_var+"       " + datejoining_var + "        " + yearexp_var);
                                                header_xcsrf_token = response.headers['X-CSRF-TOKEN']; 
                                                OData.request 
                                                     requestUri: "http://server:host/sap/opu/odata/sap/ZGW638785_EMPLOYEE_TEST_SRV/",  
                                                     method: "POST",
                                                     headers: {  
                                                      "X-Requested-With": "XMLHttpRequest",                        
                                                      "Content-Type": "application/atom+xml", 
                                                      "DataServiceVersion": "2.0",  
                                                      "Accept": "application/atom+xml,application/atomsvc+xml,application/xml", 
                                                      "X-CSRF-Token": header_xcsrf_token 
                                                         data:  
                                                        mandt: mandt_var,  
                                                           employeeID:employeeID_var, 
                                                           address:address_var, 
                                                           dateOfJoining: datejoining_var, 
                                                           yearOfExp: yearexp_var, 
                                                        function (data, response) 
                                                       alert("2nd Func     "+mandt_var+"      "+employeeID_var+"        "+address_var+"       "
                                             + datejoining_var+"        "+yearexp_var);
                                                           document.location.reload(true);
                                                                  $("<div>Returned data " + window.JSON.stringify(data) + "</div>").appendTo($("#MessageDiv")); 
                                                        function (err)  
                                                       alert("1st err func     "+mandt_var+"      "+employeeID_var+"        "+address_var+"       "
                                             + datejoining_var+"        "+yearexp_var);
                                                                  $("<div>Returned error " + window.JSON.stringify(err.response) + "</div>").appendTo($("#MessageDiv")); 
                                      function (err)  
                                           alert("2nd err func    "+mandt_var+"      "+employeeID_var+"        "+address_var+"       "
                                             + datejoining_var+"        "+yearexp_var);
                                                          var request = err.request; // the request that was sent. 
                                                          var response = err.response; // the response that was received. 
                                                          alert("Error in Get -- Request "+request+" Response "+response); 

  • How to expose odata service for input parameter based procedure.

    i have created one procedure in my schema.
    CREATE PROCEDURE TEST
    (in id varchar) AS
    BEGIN
    SELECT * FROM "table" WHERE "ID" = :id;
    END;
    and i am able to call the procedure from console.
    CALL "schema"."TEST"('1')
    my question is how to expose this procedure as odata service.
    is there any way to do it. ???

    hello Avinash. this is where i stuck in my code. i dont know how to wrap procedure in calculation view..
    My procedure code is below.
    create procedure "Get_User_for_Project"(in PROJECT_ID VARCHAR(255), out OUTPUT_TABLE "schema"."test_table")
    language SQLSCRIPT sql security definer  as
    BEGIN
    truncate table "schema"."test_table";
    OUTPUT_TABLE = SELECT "ID", "FIRST_NAME", "LAST_NAME" FROM "schema"."U_USER" WHERE "ID" IN (SELECT "USER_ID" FROM "schema"."U_USER_PROJECT" WHERE "PROJECT_ID" = :PROJECT_ID);
    END;
    my procedure is working fine. i just need help to wrap in calculation view with input parameter.

  • How to get nested JSON structure from OData service result

    Hi all,
    This is what I have done :
    I have developed OData service where I am following below steps :
    1. Created Stored procedure for the logic
    2. Created scripted calculation view and call stored procedure from the view.
    3. Created OData Service where I am calling calculation view with multiple parameters.
    Every thing is working fine and I am getting proper JSON Result which all the attributes that I am returning from the view in flatten structure.
    Additional requirement:
    On top of this I have additional requirement where I want to get various aggregation or counts.
    For example : from view I am getting all the customers result as result set and I also want some summary level information along with that such as :
    1. Total Number of Records
    2. Total VIP Customers
    3. Total Individual Customers
    4. Total Business Customers
    Above counts can not be each records level information so I need this details in my OData Service result as separate summary section like nested JSON structure.
    For example :
    d: {
    results: [
    __metadata: {
    uri: "http://servername:8000/testmulti.xsodata/calmultiview1('123456')",
    type: "Cust.Multiview1.calmultiview1Type"
    aggregation: {
    totalrecords: "",
    totalVIPCustomers: "",
    totalIndividualCustomers:"",
    totalbusinesscutomers:""
    ID: "123456",
    ENT_ID: 1234,
    FIRST_NM: "ABC",
    LAST_NM: "XYZ",
    CITY: "DELHI",
    In above example like _metadata , I am asking how to get aggregation section also in the JSON result?
    aggregation: {
    totalrecords: "",
    totalVIPCustomers: "",
    totalIndividualCustomers:"",
    totalbusinesscutomers:""
    Please suggest best possible way to implement this kind of requirements.
    Thanks
    - Dharmesh

    Don't expect that OData can help you for this. Still you can try the following.
    Create a XSJS service where you can execute your procedure manually and get the aggregation as well. From the XSJS , you can loop over the result sets and build your corresponding JSON format. But, you can not implement the features of OData, as the return would be "just" a JSON.
    in any way you can establish an association with your main entity and aggregation entity(I am Sure, the worst case), you can get both in the same payload.
    Sreehari

  • How to implement the odata model with web service

    hi dear all,
    i am trying to expose the web service as odata service in gwpa (not the NW Gateway) and i want to deploy it into smp 3.0
    but cannot find any helpful materials on it.
    could you give me some guide?
    thank you very much
    best regards
    lawrence

    Hi Lawrence,
    There are plenty blogs available. You can check either
    Marvin Hoffmann
    How to use Integration Gateway with SMP 3.0 (Part 1)
    Let me know if you face any issues.
    Rgrds,
    Jitendra

  • How to consume OData service in  sapui5

    hi,
        how to consume Odata service  in sapui5 (table).
      If any idea  please share with me.

    i tryed but  some error comes:-
    Failed to load resource: the server responded with a status of 401 (Unauthorized) https://xxxxxxxxxxxxxx.com/sap/opu/odata/sap/Z_BANK/$metadata
    Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:55176' is therefore not allowed access.

  • How to setup database trace on odata service

    I have found two discussion which mention that we have to setup database trace but how is the question? if some one can please help me out step by step  setting up the trace on odata service, links are as follows
    Manage multi-table insert using OData Service
    Where can I see logs of OData Service usage?
    in aforesaid discussion they have said plz give path to xsa:<package path> but when i go to database trace config there is no option where i can give the path so please help...

    In the database trace / trace configuration dialog: first be sure to check Show All Components.  Then in the input box at the top of the dialog type xsa:<your package>.  You can type just a partial package name as well and the search will find all matches.

  • How to read and process oData service's ATOM XML output?

    Hi,
    I have a RFC created in system A which will call oData services of system B. I am calling this in a report using class methods,  cl_http_client. I will get the response in a ATOM XML format. Is there a standard way to read and process such ATOM XML in abap report without using further addons?
    Regards,
    Vinay

    You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
    If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
    If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
    You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
    Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
    Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
    Regards
    JFM

  • Expose stored procedure as Odata service?

    Hello expert,
    is it possible to expose a stored procedure as Odata service operation?

    Yes, you copy and paste your SQLScript code into a Scripted Calculation View or use WITH RESULT SET VIEW in your SQLScript Procedure. Then you can reference the view in OData.
    John

  • Hana BOBI dashboard exposed as odata service

    I am planning for a business case where I need to get the dashboard output as Odata service which can be consumed by WEBIDE from HCP for SAPUI5 development. Please guide me how i can do that

    This leads to the folloing error: Invalid value: not supported type conversion.
    The post is splitted as Ctrl+V blocks the editor....
    Calling URL:
    leads to:

  • How to use Alias name in OData service in SAP HANA

    Hi,
         I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
    ex:
    There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
    select "PRODUCT_ID" as "Product" from "producttab";
    But i can't use as key for alias name. So i am getting syntax error.
    I have tried in rest client also ie executing odata file in rest based service. But i got error only.
    If anyone knows about this alias name in odata service, Please help me to resolve this issue..

    Hi Thomas
         Thanks for your reply.
         Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
         For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
         In that case i need alias name usage. So that only i am searching alias keyword in odata service.
         Is there any possibility to use alias names in odata service.

Maybe you are looking for

  • Itu00B4s possible to change the Distribution rules for a order type RM01 ??

    Hi Experts: I need to change the settlement rule which is automatic created at the moment  that you create a Cost colector (class order RM01) transaction KKF6N.. but when I go into KKF6N transaction and I select the "change" option and after that I g

  • I had the information that "your Apple ID has been disabled"

    what should I do? I tried change my Apple ID and password but still it's not working!!!

  • What can I do to start back up in Mac Leopard OSX?

    What can I do to start back up in Mac Leopard OSX? My Original Purpose: Partition Mac HD to original state after installing Windows XP via BootCamp Because I wasn't using XP. To do this I know I have to Boot from Leopard install disc to access Disc U

  • Froze and sound unbalaced

    I recently purchased a 8GIG 3rd Generation iPod Nano from Hong Kong, China. This was the sweetest thing that I have ever brought or included in my iPod collection. I currently have the following iPods: 1Gig - 1st Generation iPod Nano (given to me by

  • Compressing .mov files for MoileMe

    Trying to compress a 5min video thats 131MB down to the 10MB requirement for MobileMe Public folder upload. Compressing it as a ZIP doesnt work, and H.264 is still too big. Is the only way to get it that small to change the "quality" to low when expo