Skip to Content

SAP Gateway issue with POST method

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 11 at 05:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded