Get Example source ABAP code based on a different SAP table
ID METHODS-FOR-DDL-OBJECT • FOR DDL OBJECT CLASS-METHODS • OPTIONS CDS CLIENT REQUIRED CLASS-METHODS • OPTIONS CDS CLIENT CURRENT CLASS-METHODS
CLASS-METHODS>, FOR DDL OBJECT> Short Reference >
ABAP_SYNTAX CLASS-METHODS meth FOR DDL OBJECT $[OPTIONS CDS CLIENT REQUIRED$].>
ABAP Addition 1 ... OPTIONS CDS CLIENT REQUIRED.>
What does it do? Methods defined with FOR DDL OBJECT> are used to support DDL objects> with AMDP >. For example, the following DDL objects can be used with AMDP:
Views>
L> libraries
Graph workspaces> ABAP_NOTE Database tables> are not considered as DDL objects. The methods have the following characteristics:
Must be defined and implemented in an AMDP class>.
Must be static>, i. e. only using CLASS-METHODS> statements.
Can be public, protected or private.
Must not have any parameters and exceptions.
Must not be defined in interfaces.
Can be based on DDIC> artifacts and are therefore be client-dependent. In this case, the addition using OPTIONS ... > is required.
Cannot be called as methods in ABAP.
Cannot be redefined>. The method implementation must be included for the respective DDL object following the syntax outlined in the topic METHOD, BY DATABASE ...>>.
ABAP Addition
What does it do? Informs the caller of the method that another client is used. The methods using FOR DDL OBJECT> can be based on DDIC> artifacts and are therefore client-dependent. Currently, the addition is only required if a graph workspace> is defined using client-dependent views.
ABAP_EXAMPLE_ABEXA The example ABAP_AMDP - Graph Processing> demonstrates graph processing using a graph workspace and a graph procedure. In this context, a graph workspace is declared using the CLASS-METHODS> statement with the addition FOR DDL OBJECT>. ABAP_EXAMPLE_END