Read View Cluster Metadata with VIEWCLUSTER_GET_DEFINITION

To read a View Cluster definition programmatically, SAP KBA 3735483 identifies function module VIEWCLUSTER_GET_DEFINITION. This retrieves metadata rather than the business data maintained through the cluster.

Supply the technical cluster name

Pass the View Cluster’s technical name in import parameter VCLNAME. The outputs describe its header, structure, dependencies and events.

OutputTypeContents
VCLDIR_ENTRYV_VCLDIRHeader
VCLSTRUC_TABV_VCLSTRUCObject structure
VCLSTDEP_TABV_VCLSTDEPField dependencies
VCLMF_TABV_VCLMFEvents

Handle incomplete or missing definitions

Handle VIEWCLUSTER_NOT_FOUND when the cluster does not exist and INCOMPLETE_VIEWCLUSTER when its definition is inconsistent or incomplete.

Verify the interface and API availability in your target release before using it in custom code. A function module’s existence does not establish availability in every ABAP language version or cloud extensibility context.

SAP Note

SAP Note 3735483

You May Also Like

Leave a Reply?