Demo service ZGWSAMPLE_SRV
When talking about NetWeaver Gateway it is extremely valuable to have a scenario that can showcase the capabilities of the product. For such scenarios an OData service is required to represents all the functionalities that latest NetWeaver Gateway version supports.
We therefore started to develop such a servie based on the The NetWeaver Enterprise Procurement Model – An Introduction .
The data model is quite simple and the associations between the entity types are depicted in the following.
The service can be accessed in the SAP Netweaver Gateway Service Consumption System that has been made available via the SAP NetWeaver Gateway Developer Center.
The Service URL is the following: https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/
How to access the system is described in the following SCN document http://scn.sap.com/docs/DOC-40986
We have provided several test cases for this service that can be accessed via the Gateway Client using transaction /IWFND/GW_CLIENT.
Finally you can find a more detailed picture of the OData model that has been created by importing the data model into GWPA:
Entity Set | Creatable | Updatable | Deletable | Adressable |
---|---|---|---|---|
BusinessPartnerCollection | X | X | X | X |
ContactCollection | X | X | X | |
ProductCollection | X | X | X | X |
SalesOrderCollection | X | X | X | X |
SalesOrderLineItemCollection | X | X | X |
Links for testing:
- Service Document
- Metadata Document
- Query – Business Partner List with $top and $skip
- Read – Single Business Partner
- Navigation Property – List Sales Orders of a single Business Partner
- Navigation Property – List all Sales Order Items of a Sales Order
- Product – via navigation property
- https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/ProductCollection?%24filter=Suppl… Products delivered by the supplier SAP
Very helpful. Thank you.
Hello,
I am new on Sap community. Can you please tell which Username & password it want to download the metadata file. & how can i get that username & password.
Thanks,
Nitin
Hi Nitin,
Can you please look into below link for System access.
http://scn.sap.com/docs/DOC-40986
Thanks,
Syam
Hi Andre,
thanks a lot.
As a developer, i have to say, we would have even more from it if we would have the ability to see this service also in transaction SEGW. So we can see the mapping between servcies and backend functions.
Even if it would be just read only.
Is it planned to provide the corresponding project in SEGW?
Kind regards
is this service still available. Have been getting errors today but it appeared to be working on friday, just wondering if it is just a little bit of downtime or is this service being deprecated ?
Hi Sean,
it seems the system is currently unavailable. So check again in a few hours.
Thanks. very useful
Nice document Andre...
Hi Andre,
Superb! We're trying to recreate the EPM demo but we're having some issues with the Sales Order Item -> Product link.
Will the demo service be available in the SEGW builder any time soon?
Thanks!
Regards,
Wouter
Hi,
Is the demo service ZGWSAMPLE_SRV still working?
I am getting "Backend system cannot be reached" and "Security system cannot be
reached" when trying to Ping it from SMP.
Hi Łukasz,
the service is still working. From the logs I can't see the error messages you've posted above. But what I can see in the logs is, that some users try to fetch data with the REQUEST_METHOD=OPTIONS instead of GET.
Do you have requested your own user in this system?
Regards,
Tobias
Hi Tobias,
Yes, I have my own user P1940110923.
I have created my own application and want to use the Endpoint https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV,
neither POST nor GET method works however.
What more, when I use the defalut user from the SAP Mobile course samples I get correct response.
Do you have any idea what could be wrong?
Hi,
are you able to call the service from your browser or any generic REST client with your user credentials?
Have you checked the network traffic? What are the actual ERROR messages that you get?
I can only see errors for your username from yesterday and all those errors are related to wrong URLs/ServiceCalls.
Hi All
I am a beginner to Mobility and SAP NW Gateway. I followed all the example and am able to view and create SalesOrder for the ZGWSAMPLE_SRV. I am also getting the newly created Sales Order ID.
However my question is what TCode to be used in ECC to view these Sales Orders. VA03 does not display these Sales Order created through this data model.
Am I missing something.
Would be really appreciative if somebody can guide me.
Thanks
-Vijay
Hi Kris,
Have you done the COMMIT transaction for that Salesorder
please confirm the same.
Thanks,
Syam
Hi Syam,
there is no need to perform an explicit COMMIT.
If the service responds with the newly created Sales Order ID the sales order in the demo data has been created.
Best Regards,
Andre
Thanks for info Andre
Hi Kris,
please see my comment in the discussion forum.
Sales Orders created via ZGWSAMPLE_SRV from Mobile
Best Regards,
Andre
Thank you Andre, I will try consuming it to SMP.
Warm Regards
Hemendra
Hello Andre,
I am trying to use Product Collection via https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/ProductCollection/ but get the error "EPM problem: Supplier data for product HT-1090 can not be retrieved".
Thanks and Regards,
Sunita
Hi Sunita,
thanks for pointing me to this.
The problem was that a job that refreshes the data on a daily basis was not running any more.
I have rescheduled it and the URL is now delivering data.
Best Regards,
Andre
Thanks Andre for the quick response! It works!
Best Regards,
Sunita
Hi Andre,
I am new to SCN, wasI am trying to use Product Collection for getting image of particular product via https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/ProductCollection('HT-1000')/$value but getting the error "The request URI is not valid. The segment before '$value' must be a Media Link Entry".
I think for 'EntityType=Product' You have to select\Check Media CheckBox.
Thanks and Regards,
Kapil
Hi Kapil,
the Product entity type is not a media link entity type (see $metadata). That's also the reason why you don't see the $value URI when accessing the entry ProductCollection('HT-1000').
So in order to access the picture you need to (manually) take the information from the ProductPicUrl property and fetch the picture.
Best Regards, Volker
Hi,
Great Blog, Thanks
Regards,
Pavan G
FYI.
The ES1 system has been retired, and replaced by the ES4 system. The link to the blog with signup information (Sign up and get started with the SAP Gateway - Demo Consumption System) is correct, but the URL's to access data have now changed.
Cheers,
Jonathan
Hi,
I Understand that the system has been upgraded to https://sapes4.sapdevcenter.com/sap/bc/gui/sap/its/webgui
Can you please tell what are the sample gateway services in this new system and how to access them.
/IWFND/GW_CLIENT is also not working in new system.
Thanks,
Sijin
Hi Sijin,
please refer to the following two links on how to get access and the available sample services:
The GW_CLIENT has very limited functionality using WebGUI access. The recommended way is to use some sort of REST client to consume the sample services.
Kind regards,
Tobias