cancel
Showing results for 
Search instead for 
Did you mean: 

Product Replication issue between S/4Hana OP and FSM (Core Systems) using SAP CPI - error 401

Ticg
Contributor
0 Kudos
456

I'm testing my Product integration between S/4HANA OP to FSM using CPI.

The error message in the CPI logs is:

"org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://us.coresuite.com/api/data/v4/Item/externalId/bulk?account=comp_T1&user=fsmuser∁any=comp_T1&d... with statusCode: 401"

Questions:

1. In the Configure for the "Replicate Products" inflow (ver 1.5.0), we did fill in a user but there's no provision for a user password?

For the Credential Name field, we did create a proper oAuth2 client credential with client id and secret - but the question how does it know to associate my "fsmuser" with the the client id and secret ?

2. Back to the main issue, please let me know if u know what could be causing this ?

Accepted Solutions (1)

Accepted Solutions (1)

Ticg
Contributor
0 Kudos

Got it solved. 2 levels of solution. The issue was the US oAuth URL seems not to working currently.

1. In CPI, for FSM credential artifact, use the general authenticaion URL: URL: https://auth.coresuite.com/api/oauth2/v1/token

2. If you do still get 401 error, modify the scope field in that FSM credential artifact:

grant_type=password&username=p_userid&password=p_password


Be sure to substitute p_userid and p_password with actual FSM values, and redeploy the updated credential artifact.

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

First, does your FSM system allow OAuth? If not, you simply have to create user id and password in user credentials and use basic authentication. Your FSM user is the user id.