cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a simple iflow from sap cpi with Sap public cloud and standard api?

EricChang
Explorer
0 Kudos
205

Hello everyone,

I try to follow this url to create a standard api in CPI.

https://developers.sap.com/tutorials/cp-starter-integration-cpi-design-iflow..html 

But I couldn't use these steps to create it correctly.

Please tell me how to modify it or any other method to create iflow.

like SAP RFC: Input some parameters ex: ConditionRecord.     And then, Output the fields information ex:ConditionScaleAmount.

My steps:

IFlow

EricChang_0-1726022896724.pngEricChang_1-1726022914057.pngEricChang_2-1726022973959.pngEricChang_3-1726023008993.pngEricChang_4-1726023052863.pngEricChang_5-1726023062016.png

EricChang_6-1726023207172.png

Configure API

EricChang_7-1726023242736.pngEricChang_8-1726023256936.pngEricChang_9-1726023339211.pngEricChang_10-1726023363960.pngEricChang_11-1726023434905.pngEricChang_12-1726023476877.png

 

Try - API   500 error

EricChang_13-1726023564551.png

Monitor - error 401 error

EricChang_14-1726023601448.png

 

Best regards,

Eric

 

 

 

 

gregorw
Active Contributor
0 Kudos

Hi Eric,

have you been successful following the tutorial without any changes?

EricChang
Explorer
0 Kudos

Hello gregorw,

Yes,I have been successful following the tutorial without any changes.

I try to follow and check these steps over many times.

I guess it would be occur sap public cloud connect error.

When I use odata service from the teaching url, it could be used correctly.

It was incorrect which I try to use public cloud standard api to use in CPI.

S/4HANA Cloud OData API

View Entire Topic
gregorw
Active Contributor
0 Kudos

I think the first issue that you need to correct is the Authentication in the OData Call of the Request / Response. With Authentication None you will not be able to get any data from S/4HANA Public Cloud. You need a Certificate or an Inbound User in the Communication arangement.