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

.

NameTypeData TypeDescriptionDefault Value
BEGDAImportingTYPE
BEGDA
Valid from date
ENDDAImportingTYPE
ENDDA
End of Validity Period
INFTYImportingTYPE
INFTY
Infotype
NO_AUTH_CHECKImportingTYPE
BOOLE_D
Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
OBJPSImportingTYPE
OBJPS
Object Identification
PERNRImportingTYPE
PERNR_D
Personnel Number
SPRPSImportingTYPE
SPRPS
Lock Indicator for HR Master Data Record
SUBTYImportingTYPE
SUBTY
Subtype
TCLASImportingTYPE
TCLAS
Transaction Class for Data Storage
DATA_EXISTSExportingTYPE
BOOLE_D
Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
MISSING_AUTHExportingTYPE
BOOLE_D
Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
PNNNNExportingTYPE
ANY
Primary Infotype
PNNNN2ExportingTYPE
ANY
Secondary Infotype



Exceptions of Method READ_SINGLE

DATA_EXISTSExportingTYPE
BOOLE_DData Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')E_ASSERTION - Unfulfilled Program Condition

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!