on 01-01-2018 1:30 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.