Each entity of a business object or a business object enhancement (enhancement) can be identified by a unique model key. This technical key is automatically generated as soon as the entity has been created. The keys that each identify an entity are represented by constants in the constants' interface. These constants are named equal to their corresponding entities. The constants interface is automatically created and updated. The constants are used as parameter for certain core services.
The constants interface is structured as follows:
Entity |
Constant and Constant Schema |
---|---|
Actions |
SC_ACTION SC_ACTION-<NODE_NAME>-<ACTION_NAME> |
Action Parameter Attributes |
SC_ACTION_ATTRIBUTE SC_ACTION-<NODE_NAME>-<ACTION_NAME>-<ATTRIBUTE_NAME> |
Alternative Keys |
SC_ALTERNATIVE_KEY SC_ALTERNATIVE_KEY-<NODE_NAME>-<ALTERNATIVE_KEY_NAME> |
Associations |
SC_ASSOCIATION SC_ASSOCIATION-<SOURCE_NODE_NAME>-<ASSOCIATION_NAME> |
Association Attributes |
SC_ASSOCIATION_ATTRIBUTE SC_ASSOCIATION-<SOURCE_NODE_NAME>-<ASSOCIATION_NAME>-<ASSOCIATION_ATTRIBUTE_NAME> |
Business Object (or Enhancement) |
SC_BO_KEY |
Name of the Business Object (or Enhancement) |
SC_BO_NAME |
Determinations |
SC_DETERMINATION SC_DETERMINATION-<NODE_NAME>-<DETERMINATION_NAME> |
Version of the Model |
SC_MODEL_VERSION |
Nodes |
SC_NODE SC_NODES-<NODE_NAME> |
Attributes of Nodes |
SC_NODE_ATTRIBUTE SC_NODE_ATTRIBUTE-<NODE_NAME>-<NODE_ATTRIBUTE_NAME> |
Node Categories |
SC_NODE_CATEGORY SC_NODE_CATEGORY-<NODE_NAME>-<NODE_CATEGORY_NAME> |
Queries |
SC_QUERY SC_QUERY-<NODE_NAME>-<QUERY_NAME> |
Attribute of the Queries |
SC_QUERY_ATTRIBUTE SC_QUERY_ATTRIBUTE-<NODE_NAME>-<QUERY_NAME>-<QUERY_ATTRIBUTE_NAME> |
Validations |
SC_VALIDATION SC_VALIDATION-<NODE_NAME>-<VALIDATION_NAME> |
The INVOICE_ISSUED action assigned to the ROOT node is technically represented by the key 48288AEE887B50FCE10000000A42172F. To increase the readability of coding, use only the constant (zif_cons_interf_cust=>sc_action-root-invoice_issued) in the implementation. To retrieve instances of the ITEM node, the RETRIEVE core service parameter IV_NODE_KEY is set to zif_cons_interf_Cust=>sc_node-item.