SAP READ ENTITY ENTITIES OP ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• BY READ ENTITY
• BY READ ENTITIES
• LINK READ ENTITY
• LINK READ ENTITIES
• EXECUTE READ ENTITY
• EXECUTE READ ENTITIES
• REQUEST READ ENTITY
• REQUEST READ ENTITIES

READ ENTITY, ENTITIES, operations

ABAP_SYNTAX
... $[field_spec RESULT result_tab$]
$[BY _assoc field_spec ${ ${ RESULT result_tab$} $| ${LINK link_tab$} $}
$| ${ RESULT result_tab LINK link_tab$} $]
$[EXECUTE function field _spec $[REQUEST request$] RESULT result_tab $] ...

ABAP_VARIANTS:
1 ... field_spec RESULT result_tab ...
2 ... BY _assoc field_spec RESULT result_tab LINK link ...
3 ... EXECUTE function field_spec $[REQUEST request$] RESULT result_tab ...

What does it do?
The ABAP_EML READ statement includes three kinds of operations:
Read operations: Read entities directly via key fields.
Read-by-association operations: Read child entities via key fields of the parent entity. It is also possible to read parent entities via the child entities, however, only from within the implementation class.
Execute functions: Carry out a user-defined read operation, for example, if parameters are required.
All read operations require an internal table ( field_spec) as input parameter to specify, for example, whether all fields or only a specific set of fields should be read from RAP BO entities. Read operations always have a result, which is stored in an internal table ( result_tab). Note that read-by-association operations must either have a read result or return the associated keys. They can also return both.



Latest notes:

After the keyword BY for read-by-association operations, it is required to insert the backslash ( ) before the associations are displayed via the code completion.
NON_V5_HINTS
In case of read-by-association operations, the explicit specification of the full_rba parameter is only possible for the dynamic form of the ABAP_EML READ statement ( READ ENTITIES OPERATIONS). With the short form ( READ ENTITY) and long form ( READ ENTITIES), the explicit specification of the full_rba parameter is not possible. In these cases, the specification is irrelevant because it is anyway specified if the links (link_rba parameter) or the data are requested.
ABAP_HINT_END