SAP HR_READ_TIMEDATA_PSP Function Module for









HR_READ_TIMEDATA_PSP is a standard hr read timedata psp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hr read timedata psp FM, simply by entering the name HR_READ_TIMEDATA_PSP into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHEI
Program Name: SAPLRHEI
Main Program: SAPLRHEI
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_READ_TIMEDATA_PSP pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HR_READ_TIMEDATA_PSP'"
EXPORTING
* BEGIN_DATE = SY-DATUM "
* END_DATE = SY-DATUM "
PERSON_ID = "
* PERSON_TYP = 'P' "
* RP_BUILD_PSP_ERROR = ' ' "

TABLES
PERS_AVAIL = "

EXCEPTIONS
NO_CAPACITY_AVAILABLE = 1 NO_INTEGRATION_ACTIV = 2 TIMEINFO_ERROR = 3
.



IMPORTING Parameters details for HR_READ_TIMEDATA_PSP

BEGIN_DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

END_DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERSON_ID -

Data type: OBJEC-OBJID
Optional: No
Call by Reference: No ( called with pass by value option)

PERSON_TYP -

Data type: OBJEC-OTYPE
Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RP_BUILD_PSP_ERROR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HR_READ_TIMEDATA_PSP

PERS_AVAIL -

Data type: PDPSP
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_CAPACITY_AVAILABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_INTEGRATION_ACTIV -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TIMEINFO_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_READ_TIMEDATA_PSP Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_begin_date  TYPE SY-DATUM, "   SY-DATUM
lt_pers_avail  TYPE STANDARD TABLE OF PDPSP, "   
lv_no_capacity_available  TYPE PDPSP, "   
lv_end_date  TYPE SY-DATUM, "   SY-DATUM
lv_no_integration_activ  TYPE SY, "   
lv_person_id  TYPE OBJEC-OBJID, "   
lv_timeinfo_error  TYPE OBJEC, "   
lv_person_typ  TYPE OBJEC-OTYPE, "   'P'
lv_rp_build_psp_error  TYPE OBJEC. "   SPACE

  CALL FUNCTION 'HR_READ_TIMEDATA_PSP'  "
    EXPORTING
         BEGIN_DATE = lv_begin_date
         END_DATE = lv_end_date
         PERSON_ID = lv_person_id
         PERSON_TYP = lv_person_typ
         RP_BUILD_PSP_ERROR = lv_rp_build_psp_error
    TABLES
         PERS_AVAIL = lt_pers_avail
    EXCEPTIONS
        NO_CAPACITY_AVAILABLE = 1
        NO_INTEGRATION_ACTIV = 2
        TIMEINFO_ERROR = 3
. " HR_READ_TIMEDATA_PSP




ABAP code using 7.40 inline data declarations to call FM HR_READ_TIMEDATA_PSP

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single DATUM FROM SY INTO @DATA(ld_begin_date).
DATA(ld_begin_date) = SY-DATUM.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_end_date).
DATA(ld_end_date) = SY-DATUM.
 
 
"SELECT single OBJID FROM OBJEC INTO @DATA(ld_person_id).
 
 
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_person_typ).
DATA(ld_person_typ) = 'P'.
 
DATA(ld_rp_build_psp_error) = ' '.
 


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!