Skip to Content
0

SAP Gateway issue with POST method

Jan 01 at 01:30 PM

89

avatar image

Hi experts,

I know the question already exist in google but I tried many things but witout sucess.

I built a simple function with Import parameters et Export.

Using SEGW, I built the entityset, I can execute de GET method.

When I try to execute the POST method, I get a 405 message error: The specified HTTP method is not allowed for the resource identified by the Data Service Request URI.

Here is the function interface.

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(IS_HEADER) TYPE  ZLMS_HEADER_T OPTIONAL

*"     VALUE(I_ID) TYPE  CHAR10 OPTIONAL

*"     VALUE(I_DETAIL_NO) TYPE  CHAR10 OPTIONAL

*"  EXPORTING

*"     VALUE(E_SUCCESS) TYPE  FLAG

I tried many ways to solve. Can someone please help?

Thank you.

Regards.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ankit Maskara
Jan 11 at 05:33 AM
0

Check the HTTP method of function Import. There are two GET and POST. Same function import cannot be used with both HTTP methods. If such a use case is presnet then consider implementing the same with CRUDQ operations on same entity.

check attached function-import-http-methods.png


Share
10 |10000 characters needed characters left characters exceeded