2024 Sep 26 12:02 PM - edited 2024 Sep 26 12:14 PM
Hello Gurus,
The context of my POST is somewhat related to as that of the below one,
In our case we need to update another Table inside the same RAP LUW, when we raise an Exception using FAILED parameter. But here the issue is if FAILED is raised then whole RAP BO LUW goes into ROLLBACK state and hence none of the DB Operations gets applied.
And the Table we have to update is a ERROR LOG table to record some of the details during the Failure.
So, for this as a solution we had created a RAP Web API on top of the ERROR_LOG Table we had and that we tried calling inside the the Original RAP Interface Web API.
We tried with all the options for creating the destination, i.e.:
1.) cl_http_destination_provider=>create_by_url
2.) cl_http_destination_provider=>create_by_cloud_destination
3.) cl_http_destination_provider=>create_by_comm_arrangement
Regarding the Comm Arrangement, we created a Comm Arrangement for Inbound call and once we did this we were able to successfully call the ERROR_LOG RAP API using the POSTMAN tool.
But when we call this inside the MAIN RAP API Program for logging the Error its not working, our Impression was that when it works for POSTMAN, then cl_http_destination_provider=>create_by_url should have worked by passing hardcode Credentials for Authentication.
But it returns UCON error,
Can anyone suggest how we can resolve this and why this error is coming when the system is trying to call itself only.
Thanks,
Sijin
Request clarification before answering.
try this CL_ABAP_PARALLEL (if_abap_parallel)
no need to make remote api call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @junwu, this looks promising!
Let me give this a try and get back to you here, thanks for this.
Still could you suggest where we are missing while making a call to an API locally ? and how to do away with that UCON Error message?
Thanks,
Sijin
User | Count |
---|---|
73 | |
18 | |
10 | |
9 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.