cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CAI API response empty

former_member306391
Participant
0 Kudos
1,041

Hi,

I am using a simple ABAP backend API service to add two numbers. The configuration in CP is fine. The app link in CP also works fine as below

Am using the API service as below. Currently am not passing memory variables here. But just trying to print the above "Sum" as a static result. The response {{api_service_response.add.body.d.Sum}} comes as empty and so is the {{api_service_response.Add.body.status_code}}. It's silly I know. Am I missing something basic here?

View Entire Topic
dtephan
Advisor
Advisor
0 Kudos

Hi Sujin,

first, there is a small glitch in your statement for the status code, it contains the body segment which is incorrect - could you try {{api_service_response.Add.status_code}}?

Could you call your ABAP backend via postman, curl, etc and provide the response structure here?

Best,
Stephan

Sujin_Appukuttan
Participant
0 Kudos

Hi Stephan,

Thank you for the reply. Well, here is the postman json result you asked for.

Also, below am pasting the approuter's app json file ie zipped and uploaded in "deploy application". I was thinking of appending
"?$format=json" to the target below.

Sujin_Appukuttan
Participant
0 Kudos

Hi Stephan,

I see that was the typo from my side. My bad. Am able to see the status_code. But not the "Sum" with - {{api_service_response.Add.body.d.Sum}}

Regards,

Sujin