Sie sind auf Seite 1von 8

2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

Getting Started Store


Community WIKI SAP Community Welcome, Guest Login Register Search the Community

SAP NetWeaver Business Warehouse / … / OT-BICS-EQ

Steps to Create an ODATA service for a BW Query


Created by Giselle Lin, last modified on Mar 16, 2017

From Netweaver 740SP06 on, it is possible to use native OData service to release an easy query. The steps are simpler than using Light Weight Consumption By Easy Query (See what
features are supported for Easy Query here).

1. Create a simple query in Query Designer (or Modeling Tool), switch on the flag 'By OData' for Light Weight Consumption setting. The OData service is generated automatically
after saving the query. The naming convention for the generated service name is <query technical name>_SRV

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 1/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

2. Go to transaction /n/IWFND/MAINT_SERVICE on the gateway system, click add service

3. Search for the service generated for this query.

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 2/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

4. Click the Technical Service Name to add it. The technical Service Name is default to Z<query name>_SRV.

After confirm a few popup boxes, the service is added successfully.

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 3/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

5. Click 'Back (F3)' button to get back to the main screen of /IWFND/MAINT_SERVICE, now GL_ODATA1_SRV is available in the service catalog. You could set filter to the service
name to find it more easily.

6. Double click the service, you will see the ICF node is in green status. Now click 'SAP Gateway Client', you can consume this OData service to access the query information.

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 4/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 5/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

7. By default, the service is called with parameter '?$format=xml', the full URI is: /sap/opu/odata/sap/<query name>_SRV/?$format=xml

Here we can see, with parameter 'GL_ODATA1Results' we can access the data in the query result.

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 6/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

8. Run URI: /sap/opu/odata/sap/GL_ODATA1_SRV/<query name>Results to access the data

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 7/8
2017/11/30 Steps to Create an ODATA service for a BW Query - SAP NetWeaver Business Warehouse - SCN Wiki

This is exactly what we see in query result in RSRT:

No labels

Contact Us SAP Help Portal


Privacy Terms of Use Legal Disclosure Copyright Follow SCN

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query 8/8

Das könnte Ihnen auch gefallen