cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix error 403 for Attachments iFlow from FSM to S/4HANA OP

Ticg
Contributor
0 Kudos
1,405

Hi everyone,

I'm having some problems with adding attachments to a service call in FSM (which then goes to S/4). The iFlow gets the following error:

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking http://NNN:44300/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet?sap-client=NNN with statusCode: 403

(I've substituted NNN for privacy reasons)

Is this an authorization issue or ?

Appreciate any tips to resolve this.

Accepted Solutions (1)

Accepted Solutions (1)

Ticg
Contributor

The solution is the S4HANA Host in the Receiver has to have a dot for it to be recognized as a hostname when the adapter type is HTTP. A hostname without a dot may work for HCIOData adapter for other iflows, but it's a misleading comparison.

1. Go to the iFlow "Replicate Attachments from SAP Field Service Management to SAP S4HANA"

2. Click Configure. Then Click on Receiver Tab

3. Check your S4HANA Host. Originally I had "http://es4:44300"

4. I fixed it to "http://es4.xyz.com:44300" and it worked. (xyz.com is just an example - changed for privacy reasons of this post)

Special note - this means u will have to update / add to your cloud connector in BTP so this new string "es4.xyz.com" is mapped.

Answers (1)

Answers (1)

PriyankaChak
SAP Champion
SAP Champion
0 Kudos

Hi Tim,

Generally 403 is authorization issue. The user that you are trying to use to access attachment API may not have appropriate roles.

Regards,

Priyanka