cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway issue with POST method

former_member548272
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185414
Active Contributor
0 Kudos

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