cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway triggering GET_ENTITYSET in place of GET_ENTITY

0 Kudos

Hi,

I redefined a GET_ENTITY method and tried to execute the gateway with below payload its throwing an error Method GET ENTITYSET not implemented.

Please let me know whats missing in my payload and on which base it will decide to trigger GET_ENTITY or GET_ENTITYSET.

<?xml version="1.0" encoding="utf-8"?>

<entry xml:base="http://sgu2hgpas97.testway.rwsprod.net:8101/sap/opu/odata/sap/ZTEST_TESTPIT_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

<id>http://sgu2hgpas97.testway.rwsprod.net:8101/sap/opu/odata/sap/ZTEST_TESTPIT_SRV/DSM_MODIFYSet</id>

<title type="text">DSM_MODIFYSet</title>

<category term="ZTEST_TESTPIT_SRV.DSM_MODIFY" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<link href="DSM_MODIFYSet" rel="self" title="DSM_MODIFY"/>

<content type="application/xml">

  <m:properties>

   <d:Matnr>1234567</d:Matnr>

   <d:Matkl>13</d:Matkl>

   <d:Attyp>01</d:Attyp>

   <d:TargClient/>

   <d:Zcomment>TEST SHAIK 1</d:Zcomment>

   <d:Zpc_Model>10</d:Zpc_Model>

  </m:properties>

</content>

</entry>

Regards

Shaik

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Shaik,

What is the Operation which you would like to perform here ?

GET or POST ?

To fire GetEntity you need to send Key(s)

To fire GetEntitySet you you need to just mention EntitySet name or EntitySet name along with filter parameters.

Please have a loo at the below for details for CRUD operations->

Regards,

Ashwin

0 Kudos

Hi Ashwin,

I am performing GET operation and sending all key fields data.

Regards

Shaik

AshwinDutt
Active Contributor
0 Kudos

Please have a look at the blog shared in the previous reply which will help you to get the details for GET Operation.

Answers (0)