Skip to Content
Author's profile photo Andre Fischer

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.  Relationen.png

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.

TESTCASES_ZGWSAMPLE_SRV.PNG

Finally you can find a more detailed picture of the OData model that has been created by importing the data model into GWPA:

ZGWSAMPLE_SRV.png

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:

Assigned tags

      28 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Krishna Kishor Kammaje
      Krishna Kishor Kammaje

      Very helpful. Thank you.

      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Syam Babu
      Syam Babu

      Hi Nitin,

      Can you please look into below link for System access.

      http://scn.sap.com/docs/DOC-40986

      Thanks,

      Syam

      Author's profile photo Alexander Geppart
      Alexander Geppart

      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

      Author's profile photo Former Member
      Former Member

      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 ?

      Author's profile photo Tobias Griebe
      Tobias Griebe

      Hi Sean,

      it seems the system is currently unavailable. So check again in a few hours.

      Author's profile photo Former Member
      Former Member

      Thanks. very useful

      Author's profile photo Arun Chembra
      Arun Chembra

      Nice document Andre...

      Author's profile photo Wouter Peeters
      Wouter Peeters

      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

      Author's profile photo Łukasz Huczała
      Łukasz Huczała

      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.

      Author's profile photo Tobias Griebe
      Tobias Griebe

      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

      Author's profile photo Łukasz Huczała
      Łukasz Huczała

      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?

      Author's profile photo Tobias Griebe
      Tobias Griebe

      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.

      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Syam Babu
      Syam Babu

      Hi Kris,

      Have you done the COMMIT transaction for that Salesorder

      please confirm the same.

      Thanks,

      Syam

      Author's profile photo Andre Fischer
      Andre Fischer
      Blog Post Author

      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

      Author's profile photo Syam Babu
      Syam Babu

      Thanks for info Andre

      Author's profile photo Andre Fischer
      Andre Fischer
      Blog Post Author

      Hi Kris,

      please see my comment in the discussion forum.

      Sales Orders created via ZGWSAMPLE_SRV from Mobile

      Best Regards,

      Andre

      Author's profile photo Hemendra Sabharwal
      Hemendra Sabharwal

      Thank you Andre, I will try consuming it to SMP.

      Warm Regards

      Hemendra

      Author's profile photo Sunita Sudarshan
      Sunita Sudarshan

      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

      Author's profile photo Andre Fischer
      Andre Fischer
      Blog Post Author

      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

      Author's profile photo Sunita Sudarshan
      Sunita Sudarshan

      Thanks Andre for the quick response! It works!

      Best Regards,

      Sunita

      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Volker Drees
      Volker Drees

      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

      Author's profile photo ' Pavan ' Golesar
      ' Pavan ' Golesar

      Hi,

      Great Blog, Thanks

      Regards,

      Pavan G

      Author's profile photo Jonathan Baker
      Jonathan Baker

      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

      Author's profile photo Sijin Chandran
      Sijin Chandran

      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

      Author's profile photo Tobias Griebe
      Tobias Griebe

      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