Symptom
- An error occurs when trying to fetch data using a replication flow for a CDS view via S/4HANA on-premise connection.
- Error message occurs: "Failed to fetch the data. Error in getDisConnectionDetails. Getting dataset definition failed for /CDS_EXTRACTION/...".
- Network trace details: code "getCsnDefinitionFailed" and cause entry in Response body: message "No authorization for object - access denied".
Environment
SAP Datasphere
Reproducing the Issue
- Create a new replication flow.
- Select the S/4HANA on-premise source connection.
- Choose the source container /CDS_EXTRACTION.
- Add a <CDS view> as the source object.
- Observe that zero objects are imported and one object fails to import.
- Capture a network trace while reproducing the error by following SAP Note 3405253 - How to collect network trace using “Developers Tools”.
- Observe the below error in the Response:
"code": "getCsnDefinitionFailed",
...
"message": "Failed to fetch the data. Error in getDisConnectionDetails. Getting dataset definition failed for /CDS_EXTRACTION/<CDS view>",
...
"causes": [
{
"code": "99999",
"message": "No authorization for object - access denied: <CDS view> => No authorization for reading definition <CDS view>",
Cause
Missing authorization in the ABAP source system for the remote user to read the CDS view definition, leading to access denied during CSN definition retrieval.
Resolution
- Check the ABAP source system for authorization errors when accessing the CDS view (use STAUTHTRACE, SU53 or SLG1).
For reference: How to check STAUTHTRACE, SU53 and SLG1 in SAP ABAP Based Systems. - Review the complete security setup of the user in connection management as per SAP S/4HANA and Other ABAP Sources for Replication Flows | SAP Help Portal.
- Implement the required ABAP integration security setup for the remote connection user, ensuring all roles/authorizations are correctly assigned. For reference see below SAP notes:
- Retry adding/importing the CDS view in the replication flow and confirm the object can be read and imported.
- If the issue persists, capture a network trace using the "Developers Tools" while reproducing the error and provide it to SAP Support. Further details can be found in SAP Note 3405253.
See Also
Keywords
getDisConnectionDetails, getting dataset definition failed, no authorization for object, cds extraction, cds view, getcsndefinitionfailed, getdisconnectiondetails, authorization error, abap integration, remote source, import failed, "99999" , KBA , DS-DI-RF , Replication Flow Runtime , Problem
SAP Knowledge Base Article - Public