Hi Sunitha,
These blogs are all about SAP NetWeaver Gateway!
Making way through Gate, Finding some REST !
Introduction about SAP Netweaver Gateway 2.0
Thanks,
Syam
Hi Sunitha,
These blogs are all about SAP NetWeaver Gateway!
Making way through Gate, Finding some REST !
Introduction about SAP Netweaver Gateway 2.0
Thanks,
Syam
Hi Rajesh,
Yes, As suggested Derek in the target system must have Auth S_RFCACL.
Thanks,
Syam
Thank you guys,
its just strange that no proper error message is set.
The only thing I can see is that the connection is refused.
Regards,
Juri
Hi Ashwin,
This error has been fixed and I can get Token now, but there is another error message below displayed when doing batch as below.
The BODY is as below:
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/jsonxml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'193626' HTTP/1.1
--batch--
Kind Regards
Andie
Hello Andie,
The error is because you are using GET method .
Please change the Method to POST and add $batch at the end of the URL as below.
Kindly be careful with the spaces in the Payload.
Please use the below payload.
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'193626' HTTP/1.1
--batch--
Check again by doing all the above.
Regards,
Ashwin
Hi Suresh,
Currently I have also face the same scenario, and I would like to know that if you have already find a solution? could you kindly share your experience to me?
Best regards,
Ray.
Hello Andie,
Please put break point in DPC and check if call is coming till your DPC.
Just reminding you again be careful with the spaces maintained in the payload which i shared.
Maintain the same spacing.
If you are getting 202 accepted and there is no response the check the Body and the spacing between the operation in side it.
Kindly share the response code and the details so that it will help to locate the problem.
Regards,
Ashwin
can we create RESTful Web service in abap without gateway?
Hi Chandra
Thanks for quick and useful reply..
Regards,
Rahul
Hi Ashwin,
It cannot jump into breakpoint, I use the following Body and get error messages as below.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id%20eq%20'I'and%20option_object_id%20eq%20'EQ'and%20low_object_id%20eq%20'193626' HTTP/1.1
--batch--
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Error message:
Kind Regards
Andie
Hello Andie,
Could you please share the URL you are sending ?
Please try with the below Body .
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I' and option_object_id eq ''EQ' and low_object_id eq '230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I'and option_object_id eq 'EQ'and low_object_id eq '193626' HTTP/1.1
--batch--
Regards,
Ashwin
Hello Chandra,
...in addition you can even use Gateway to produce non-OData based RESTful Services :-)
Generic REST enablement with SAP NetWeaver Gateway
Martin
Hi Ann,
Beside the Dynamic App Launcher Tile, you also need to add a target Mapping in your catalog.
Check if the target Launchpad role (Transaction LPD_CUST) exists in your SAP ECC system
Add an Target-MappingTile
•Add the Intent data
•Semantic Object WorkflowTask
•Action approveRequests
•Add Target data
•Launchpad Role UIX01CA1
•Launchpad Instance TRANSACTIONAL
•Application Alias ApproveRequests
•Add General Data
•Specify the supported form factor
Good luck, it works for me.
Hi Ashwin,
I got the same error message.
[ Body ]
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I' and option_object_id eq 'EQ' and low_object_id eq '230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I' and option_object_id eq 'EQ' and low_object_id eq '193626' HTTP/1.1
--batch--
Kind Regards
Andie
Hello Andie,
Can you check each filter operation individually once ? to just make sure URI is correct and its working when fired individually in browser.
Check with the below body again please.
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I' and option_object_id eq 'EQ' and low_object_id eq '230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=sign_object_id eq 'I' and option_object_id eq 'EQ' and low_object_id eq '193626' HTTP/1.1
--batch--
Regards,
Ashwin
Hi Ashwin,
I only use one search filter condition in the following body, but still get the same error message.
///////////////////////////////////////////////////////////////////////////////////////////////////
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=low_object_id eq '230431' HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/xml
GET MonitorActivityList/?$filter=low_object_id eq '193626' HTTP/1.1
--batch--
///////////////////////////////////////////////////////////////////////////////////////////////////
Kind Regards
Andie
Hello Andie,
Please check the following things in the browser first and make sure below are working.
if the above 2 URL's are not working then try below.
If the above things are working , then please try as shown below first and check if you are getting response.
If you are getting response for the above mentioned body , then please add filter parameters in the body and check again ( filter parameters which you would have tested individually in the browser as mentioned at the starting ).
Please check the above mentioned things and share the details.
Regards,
Ashwin
Hi Ashwin,
There is no problem to open the following URL directly in browser, but I got error message as below.
Kind Regards
Andie