Ansicht
Dokumentation
ABAPREAD_ENTITIES_OPERATIONS - READ ENTITIES OPERATIONS
Fill RESBD Structure from EBP Component Structure Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
READ ENTITIES OPERATIONS, Dynamic Form
READ ENTITIES $[IN LOCAL MODE$|PRIVILEGED$]
OPERATIONS op_tab $[response_param$].
Additions
1. ... IN LOCAL MODE ...
2. ... PRIVILEGED ...
3. ... response_param.
Effect
The dynamic form of the READ statement enables the collecting of read operations for multiple RAP BOs in one READ ENTITIES OPERATIONS ... statement. There is no short form available for the dynamic version.
op_tab must be a table of type ABP_BEHV_RETRIEVALS_TAB. This table has specific components:
Component | Details |
OP | It is a mandatory component and specifies the operation to be executed. It can be set with the defined constants, for example, OP-R-READ etc., of interface IF_ABAP_BEHV or just the predefined value for the operation in the interface, for example 'R' for a read operation (OP = 'R') or 'N' for a read-by-association operation (OP = 'N'). |
ENTITY_NAME | It is a mandatory component and specifies the name of the RAP BO entity for which the operation is executed. The name must be provided using capital letters. |
SUB_NAME | Only relevant for specifying association names in case of read-by-association operations or for functions. In these contexts, the specification is mandatory. |
INSTANCES | Mandatory component. It specifies a reference to an internal table holding the input keys. The table must be typed with the required BDEF derived type for the operation. |
FULL | An optional flag specifying whether all target instances (and not just links) are retrieved in the context of read-by-association operations. It is of type c with length 1, i. e. full specified with abap_true or 'X' respects all target instances. |
RESULTS | It specifies a reference to an internal table with the required BDEF derived type for the read results. |
LINKS | It specifies a reference to an internal table with the required BDEF derived type holding the key pairs of the source and target. |
Addition 1
... IN LOCAL MODE ...
Effect
Addition 2
... PRIVILEGED ...
Effect
Addition 3
... response_param.
Effect
The addition response_param represents
the response parameters that can be specified. The specification is optional. When used in the context of the dynamic form of the statement, the parameters must be internal tables typed with
ABP_BEHV_RESPONSE_TAB.
Example
The following source code section taken from DEMO_RAP_EML_READ demonstrates an EML READ ENTITIES
OPERATIONS statement.
- The example - READ, Variants demonstrates this READ variant with a simple managed RAP BO.
- For more examples on READ operations in general, see Examples for ABAP EML READ.
Fill RESBD Structure from EBP Component Structure ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 5694 Date: 20240424 Time: 133300 sap01-206 ( 71 ms )