SAP Knowledge Base Article - Public

3748258 - Unable to read/write standard change documents using Classes :CL_CHDO_READ_TOOLS /CL_CHDO_WRITE_TOOLS in SAP S/4HANA Cloud Public Edition

Symptom

While reading or writing standard change documents using the classes CL_CHDO_READ_TOOLS or CL_CHDO_WRITE_TOOLS, an authorization error occurs.

Environment

 S/4 HANA Public Cloud

*Please note this article is restricted to S/4 HANA Public Cloud system, it doesn't apply to S/4HANA Cloud Private Edition and on-Premise S4HANA system.

Cause

In SAP S/4HANA Cloud Public Edition, change document data is stored centrally but segregated by category with strict access controls. Change documents generated for SAP internal or technical processes are not accessible to customers.

Application-specific change documents are protected by dedicated authorization objects and can only be accessed through the owning application, provided the user has the required permissions.

Additionally, there is no generic API available to read all change documents in the public cloud environment; access is limited to application-provided APIs or CDS views, if available.

From a development perspective, the framework classes such as CL_CHDO_READ_TOOLS and CL_CHDO_WRITE_TOOLS are restricted in scope. While custom change document objects can be accessed, SAP standard change document objects (e.g., COND_A) are protected. Attempting to read or write such standard objects from custom code results in authorization errors due to enforced cloud restrictions.

Resolution

Access to change documents must follow the ownership and authorization model defined in SAP S/4HANA Cloud Public Edition.

  •  For custom or partner-defined change document objects, the method CHANGEDOCUMENT_READ of class CL_CHDO_READ_TOOLS can be used without restriction, and CL_CHDO_WRITE_TOOLS can be used to write change documents.
  • For SAP standard or application-specific change documents, access must be requested through the respective application that owns the change document object (e.g., Sales or Pricing components). Only these applications can provide supported APIs or CDS views

Keywords

CL_CHDO_WRITE_TOOLS,CL_CHDO_READ_TOOLS ,standard, customized, custom,change documents , KBA , BC-SRV-ASF-CHD , Change Documents , Problem

Product

SAP S/4HANA Cloud Public Edition all versions