READ_SINGLE SAP Method Read Single
Below is documentation, parameters and attributes of ABAP Method READ_SINGLE within SAP class IF_HRDEPBSVASEN_READ_INFOTYPE. 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 IF_HRDEPBSVASEN_READ_INFOTYPE 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_SINGLE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_SINGLE
.Name | Type | Data Type | Description | Default Value |
BEGDA | Importing | TYPE BEGDA | Valid from date | |
ENDDA | Importing | TYPE ENDDA | End of Validity Period | |
INFTY | Importing | TYPE INFTY | Infotype | |
NO_AUTH_CHECK | Importing | TYPE BOOLE_D | Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ') | |
OBJPS | Importing | TYPE OBJPS | Object Identification | |
PERNR | Importing | TYPE PERNR_D | Personnel Number | |
SPRPS | Importing | TYPE SPRPS | Lock Indicator for HR Master Data Record | |
SUBTY | Importing | TYPE SUBTY | Subtype | |
TCLAS | Importing | TYPE TCLAS | Transaction Class for Data Storage | |
DATA_EXISTS | Exporting | TYPE BOOLE_D | Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ') | |
MISSING_AUTH | Exporting | TYPE BOOLE_D | Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ') | |
PNNNN | Exporting | TYPE ANY | Primary Infotype | |
PNNNN2 | Exporting | TYPE ANY | Secondary Infotype |
Exceptions of Method READ_SINGLE
BOOLE_D
Example ABAP coding
DATA: lo_class TYPE REF TO IF_HRDEPBSVASEN_READ_INFOTYPE.
DATA: lv_BEGDA TYPE BEGDA,
lv_DATA_EXISTS TYPE BOOLE_D,
lv_ENDDA TYPE ENDDA,
lv_INFTY TYPE INFTY,
lv_MISSING_AUTH TYPE BOOLE_D,
lv_NO_AUTH_CHECK TYPE BOOLE_D,
lv_OBJPS TYPE OBJPS,
lv_PERNR TYPE PERNR_D,
lv_PNNNN TYPE ANY,
lv_PNNNN2 TYPE ANY,
lv_SPRPS TYPE SPRPS,
lv_SUBTY TYPE SUBTY,
lv_TCLAS TYPE TCLAS,
lv_other TYPE c.
CALL METHOD lo_class=>READ_SINGLE(
EXPORTING
BEGDA = lv_BEGDA
ENDDA = lv_ENDDA
INFTY = lv_INFTY
NO_AUTH_CHECK = lv_NO_AUTH_CHECK
OBJPS = lv_OBJPS
PERNR = lv_PERNR
SPRPS = lv_SPRPS
SUBTY = lv_SUBTY
TCLAS = lv_TCLAS
IMPORTING
DATA_EXISTS = lv_DATA_EXISTS
MISSING_AUTH = lv_MISSING_AUTH
PNNNN = lv_PNNNN
PNNNN2 = lv_PNNNN2 ).
Links to Related Class(s)
IF_HRDEP...Full list of available SAP object classes
Search for further information about these or an SAP related objects