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

Principal propagation from SAP Digital Manufacturing Production Process towards S/4HANA public cloud

SumitKundu
Active Participant
0 Likes
421

Hi experts,

I am working on a requirement that needs a custom production process in SAP Digital Manufacturing calling an SAP S/4HANA Cloud, Public Cloud OData api. I have followed the steps as mentioned in this blog post external-api-web-service-integration-with-sap-digital-manufacturing .

Here is my BTP destination in the subaccount where DM is subscribed.

tokenServiceURLType=Dedicated
audience=https\://myXXXXXX-api.s4hana.cloud.sap
authnContextClassRef=urn\:oasis\:names\:tc\:SAML\:2.0\:ac\:classes\:X509
includeSigningCertificateInSAMLAssertion=false
tokenServiceUser=ZS4H_DMC_COMM
tokenServiceURL=https\://myXXXXXX-api.s4hana.cloud.sap/sap/bc/sec/oauth2/token
skipUserUuidInSAMLAttributes=false
URL=https\://myXXXXXX-api.s4hana.cloud.sap/sap/opu/odata4/sap/zapi_productionorder_labels/srvd_a2x/sap/zser_mfg_label/0001
Name=S4-Dev-Label-api-pp
tokenServicePassword=<removed>
Type=HTTP
clientKey=ZS4H_DMC_COMM
Authentication=OAuth2SAMLBearerAssertion
nameIdFormat=urn\:oasis\:names\:tc\:SAML\:1.1\:nameid-format\:emailAddress
skipUserAttributesPrefixInSAMLAttributes=false
ProxyType=Internet
userIdSource=
SAMLAssertionProvider=DestinationServiceGenerated

I have created the communication arrangement in S/4HANA Cloud:

 

SumitKundu_0-1765964316945.pngSumitKundu_1-1765964380520.png

But when I test the production process which uses the service thus created is not working, i.e., failing with HTTP 401

SumitKundu_2-1765964461918.png

The production process worked successfully when I had used basic authentication at the BTP destination.

So, does SAP DM support such principal propagation with destination using OAuth2SAMLBearerAssertion? Or where am I going wrong?

Best regards,

Sumit

 

 
 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

OAuth2SAMLBearerAssertion should be supported, as mentioned at Adding Destinations.

Br, Manoel

ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Likes
Hi! If my answer was helpful, please consider accepting it as solution.
SumitKundu
Active Participant
0 Likes
Thanks for the confirmation. But my question is actually about how to make it work. Following the steps according to https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/configuration-tasks is not working. I am particularly not sure how to apply the last task 'Consume the Destination and Execute the Scenario' in case of a custom production process.
SumitKundu
Active Participant
0 Likes
Hi @summer_jin, my OData api is a custom OData service and I have enabled OAuth 2.0 in my custom communication scenario.