We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
... ASSOCIATION _assoc TO node ON tcomp1 = scomp1
$[AND tcomp2 = scomp2
$[AND ... $]$]
$[USING KEY key_name$] ...
1. ... ON tcomp1 = scomp1 $[AND tcomp2 = scomp2 $[AND ... $]$]
2. ... USING KEY key_name
Definition of a mesh association named _assoc for a mesh node of a mesh type. The addition ASSOCIATION to TYPES can only be used in the definition of a node of a mesh type between TYPES BEGIN OF MESH and TYPES END OF MESH. The mesh node for which a mesh association is defined is its start node and the mesh node node specified after TO is the target node. Any node in the current mesh can be specified as the target node node, including the start node itself. A mesh association with the same start and target node is a self-association or reflexive association.
The name of a mesh association can be up to 30 characters long and can only consist of the letters A-Z, the digits 0-9, and the underscore "_" character, and cannot start with a digit.
... ON tcomp1 = scomp1 $[AND tcomp2 = scomp2 $[AND ... $]$]
For each mesh association, a condition must be specified after ON that consists of at least one comparison for equality. Further comparisons for equality can be added using AND. The left operand tcomp of each comparison must be a directly specified column of the target node and the right operand scomp must be a directly specified column of the start node that must be compatible with the column of the target node.
A mesh association creates a relationship between the start node and target node where all the rows of the target node that meet the condition are assigned to a line of the start node.
The mesh associations are type-only attributes and also affect the compatibility of mesh types. Mesh associations are evaluated in mesh paths in expressions and in statements for meshes.
... USING KEY key_name
The addition USING KEY can be used for the ON condition of a mesh association to specify a table key of the target node that is used in expressions and statements to evaluate meshes for accessing the mesh node:
The name of the table key must be specified directly, that is, it cannot be specified dynamically in a data object. If the table key is specified explicitly, the ON condition must be defined to allow optimal key access.
Without the addition USING KEY, the primary key is used to access the mesh node and that access is not always optimized.
The table key specified in the definition of the ON condition can be overridden when the mesh association is used in a
mesh path by specifying USING KEY in an
additional condition. In this case,
the ON condition and the additional condition are combined into a condition that must meet the above prerequisites.
Declaration of a mesh type. Some of the keys of the internal tables used are secondary keys that are used with USING in the definitions of the mesh associations.
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki