cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI S4 : Failing to fetch csrf token from S4.

amit777
Participant
0 Kudos

Hi Team,

In our landscape SAP CPI is connected to S4 system and any data transfer from SAP CPI to S4 is done by first executing and collecting csrf token from S4 system.

We have a dedicated interface in CPI to fetch csrf token from S4 system. But since last few days its failing with error :HTTP operation failed invoking <then complete url name> with statusCode: 401

401 is usually associated with user credential issues but we check the user used for connection in S4 and that is productive.

We do not see any issue in the cloud connector and smicm of S4.

Please help.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

barath_dv
Participant
0 Kudos

Hi Dilip,

I'd suggest you to check once this process through Postman tool and try to fetch the x-csrf-token. If you are able to fetch successfully there, kindly deep dive at S4 STRUST side.

Best,

Barath

amit777
Participant
0 Kudos

Thanks Bharat,

But we are using cloud connector to connect to S4, will testing from postman still work? How would we give location of there?

Thanks

barath_dv
Participant
0 Kudos

Hi Dilip,

Yes, it will work. Instead of giving virtual host address of cloud connector, enter the direct physical address and using GET request you can fetch the csrf token.

Best,

Barath