READ_DATA SAP Method Read data for a partner from the database.
Below is documentation, parameters and attributes of ABAP Method READ_DATA within SAP class DTINF_IF_DATA_COLLECTOR. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name DTINF_IF_DATA_COLLECTOR into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method READ_DATA can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_DATA
.| Name | Type | Data Type | Description | Default Value |
| IV_LEVEL | Importing | TYPE DTINF_HIERARCHY_LEVEL | Level of object in hierarhy (0 is root level) | |
| IV_PARENT_ID | Importing | TYPE DTINF_NODE_ID | ID of a note in the data tree | |
| IV_PARTNER_ID | Importing | TYPE DTINF_PARTNER_ID | Identifier of the partner | |
| IV_PARTNER_TYPE | Importing | TYPE DTINF_PARTNER_TYPE | Partner type | |
| RT_DATA | Returning | TYPE DTINF_TT_PERSONAL_DATA | Collected data |
Exceptions of Method READ_DATA
DTINF_CX_COLLECTION_ERROR - Error during the data collection processExample ABAP coding
DATA: lo_class TYPE REF TO DTINF_IF_DATA_COLLECTOR.
DATA: lv_IV_LEVEL TYPE DTINF_HIERARCHY_LEVEL,
lv_IV_PARENT_ID TYPE DTINF_NODE_ID,
lv_IV_PARTNER_ID TYPE DTINF_PARTNER_ID,
lv_IV_PARTNER_TYPE TYPE DTINF_PARTNER_TYPE,
lv_RT_DATA TYPE DTINF_TT_PERSONAL_DATA,
lv_other TYPE c.
CALL METHOD lo_class=>READ_DATA(
EXPORTING
IV_LEVEL = lv_IV_LEVEL
IV_PARENT_ID = lv_IV_PARENT_ID
IV_PARTNER_ID = lv_IV_PARTNER_ID
IV_PARTNER_TYPE = lv_IV_PARTNER_TYPE
RECEIVING
RT_DATA = lv_RT_DATA )
"Alternate coding for Method Call with returning parameter
lv_RT_DATA = lo_class=>READ_DATA(
EXPORTING
IV_LEVEL = lv_IV_LEVEL
IV_PARENT_ID = lv_IV_PARENT_ID
IV_PARTNER_ID = lv_IV_PARTNER_ID
IV_PARTNER_TYPE = lv_IV_PARTNER_TYPE ).
Links to Related Class(s)
DTINF_IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects