SAP Knowledge Base Article - Public

3164880 - Run Compliance Reports - An error occurred while retrieving tokens and URL


"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

While downloading the generated report from Run Compliance Reports app below error appears.

"An error occurred while retrieving tokens and URL"


  • SAP Fiori

Reproducing the Issue

  1. Open Run compliance reports app.
  2. Generate the report.
  3. Select the file and click on download button.


1.Missing configurations
2.Program error


Verify if the below mentioned configurations are maintained correctly.

Step 1:
Follow the resolution step mentioned in KBA : 3077766

Step 2:
Follow the instructions mentioned in KBA: 2827260, 685521 to activate the service CONTENTSERVER.

Step 3:
1. Open transaction code OAC0 --> Select repository DMS_C1
2. Enter %https in the command field box. Refer KBA : 2996974
3. You will see extra options HTTPS on frontend and HTTPs on backend. Set both options to "HTTPS required".
4. Save

Step 4:
Complete the configurations as per the admin guide under section 5.4.2 Define and associate Document Type with Object type.
Refer KBA 2584083 and download the admin guide for your system version - Valid up to S/4HANA 2020 system version.
Refer the help documentation (Configuring Attachment Service Section) to configure this step - S/4HANA 2021 system version

Step 5:
Complete the configurations from KBA 2557617.

Step 6:
Implement the Note 3079317 if it is applicable for your version.

See Also

3146835 - DRC - Run Compliance Report - User has no authorization for operation READ on object SRF_REPRUN


Run compliance reports, download, retrieving tokens, FI-LOC-SRF-RUN, Fiori, error , KBA , FI-LOC-SRF-RUN , Run Time , CA-DMS , Document management , Problem


SAP S/4HANA Cloud all versions