Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all articles
Browse latest Browse all 1745

Method call failed error while implementing Gateway Service

$
0
0

Hi ,

     I was trying to implement a gateway service using OData channel by using RFC.

I have written a function module which accepts three input parameters and has one export parameters, one of the input parameters(x) i've made it a key in the entity set.

 

Here is my function module code....

 

 

FUNCTION ZF_EXPERIMENT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(A) TYPE  I
*"     VALUE(B) TYPE  I
*"     VALUE(X) TYPE  I
*"  EXPORTING
*"     VALUE(RES) TYPE  I
*"----------------------------------------------------------------------

RES = A + B + X.
RETURN.




ENDFUNCTION.

 

**************************************************************************

 

RES gives the output when i execute the module, However in the last step while writing the URL

 

This is what i have tried

 

...../sap/opu/odata/sap/ZMY_EXPERIMENT_SRV/EXPCollection?A=10&B=9&X=9

 

 

ZMY_EXPERIMENT_SRV ---->this the name of my service

 

EXPCollection --->This is the name of my entity type

 

the following error occurs in the HTTP Response window in the gateway client....

 

 

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

-<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>005056A509B11ED1B9BF9F46AA8E82ED</code>

<message xml:lang="en">In the context of Data Services an unknown internal server error occured</message>

</error>

 

 

This is the error log message  -->

method call failed;the method /IWEP/IF_MGW_APPl_SRV_RUNTIME~GET_ENTITYSET of the class ZCL_ZMY_EXPERIMENT_DPC is not implemented

 

Could you help me fix this bug....so that i get the result as the some of A, B & X.

 



Viewing all articles
Browse latest Browse all 1745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>