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

SAP BTP Destination to s4 Public Cloud Gives error when creating action for ODATA

suneelrelish
Explorer
0 Kudos
321

Created a Destination in SAP BTP for  S4 Public Cloud (API_BUSINESS_PARTNER - Service)  and destination connection works fine also added all required additional property(sap.applicationdevelopment....,sap.build.usage,sap.processauto...).

But When creating a action for the "Odata Destinations" its giving error saying "Service unavilable.Failed to fetch the Metadata.Unexpected token '<',<html><.." id not valid json.

Tried changing few things in destination but nothing works ( Like adding $formt=json,other additional properties ) but no luck.

Please suggest if im missing anything or whats the issue.

 

 

View Entire Topic
MakotoS
Product and Topic Expert
Product and Topic Expert
0 Kudos

I suspect the authentication is not working well.
When its authentication fails, the S/4HANA backend system returns error messages with HTML format and that would be be parsed in the caller system.
And then, what you may need to check fist would be about the authentication settings.

suneelrelish
Explorer
0 Kudos

i am using basic authentication with the s4 login credentials.

URL : https://<xxxxxx>s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER

suneelrelish_0-1747139123372.png

 

TiagoRibeiro
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Do you also have an S4 Extensibility instance created for the respective Communication Arrangement?

Assuming this is an extension application built in SAP Build, as you have configured that parameter?

Please check this document

Hope this helps.

Thank you

Tiago Ribeiro

 

suneelrelish
Explorer
0 Kudos

@TiagoRibeiroi am trying to create a action in BPA and when i do Odata destinations i get this error.

creating  S4 Extensibility instance  is mandatory when creating actions connecting to s4 public cloud?

Not doing any extensibility .wanted to create a BPA to read Business partner details and create a form and send for approval.

 

TiagoRibeiro
Product and Topic Expert
Product and Topic Expert
0 Kudos
BPA = Process Automation in SAP Build?
suneelrelish
Explorer
0 Kudos
@TiagoRibeiro yes. Just a simple process Trigger the process on BP Create.REad BP and check some conditions and workflow/email.
TiagoRibeiro
Product and Topic Expert
Product and Topic Expert
0 Kudos
But the process to create the BP is started/triggered in the S4 correct? So you might want to implement an event to be capture by the SAP Build Process Automation tool to execute the conditions check. Or how will you trigger the API READ in S4? Is it S4 Public Cloud or OnPrem or Private?
suneelrelish
Explorer
0 Kudos
@TiagoRibeiro S4 Public Cloud. Yes the trigger will be a API Event BP create in S4 Public cloud and on that trigger in BPA we get the BP ID and we use this action to read details of BP from S4 to validate some fields.
TiagoRibeiro
Product and Topic Expert
Product and Topic Expert
0 Kudos
So the current issue you are facing is while receiving the event when the BP is created, meaning you don't receive the event, or when you execute the ODATA Read action to the BP communication arrangement in S4?
suneelrelish
Explorer
0 Kudos

current issue is while trying to read a BP from s4 public cloud to BTP BPA .Creating a action to read data from s4 Public cloud and for that created ODATA destination and when i try to create action and select the destination i get the above error.

here is the video i am following 

https://www.youtube.com/watch?v=A_o8qwUnXRo

TiagoRibeiro
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @suneelrelish 

Can you also add the following parameters/properties in the destination pointing to S4 BP API? 

  • sap.processautomation.enabled = "true"
  • sap.applicationdevelopment.actions.enabled = "true"

I believe with these properties the connection should be successful. 

Please try and let me know. 

Thank you

Tiago Ribeiro