SAP HR_READ_D3 Function Module for









HR_READ_D3 is a standard hr read d3 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 d3 FM, simply by entering the name HR_READ_D3 into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRD3
Program Name: SAPLHRD3
Main Program: SAPLHRD3
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HR_READ_D3 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_D3'"
EXPORTING
PERNR = "
* JAHR = "
* MNR = "
* ABR_PERIODE = "
* ABR_JAHR = "
* SELECTONLY = "
* I_FLAG_WITH_MSG = ' ' "

IMPORTING
ANZAHL = "
ANZGES = "

TABLES
DSAP = "
* DBEU = "
* DBKS = "
* DBKV = "
* FLAG = "
* DSME = "
* DBME = "
* DBNA = "
* DBAN = "
* DBGB = "
* DBSO = "
* DBUV = "
* DBUV_DAT = "

EXCEPTIONS
NO_RECORDS_FOUND = 1
.



IMPORTING Parameters details for HR_READ_D3

PERNR -

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

JAHR -

Data type: HRD3KEY-JAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

MNR -

Data type: HRD3KEY-MNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

ABR_PERIODE -

Data type: PD3DSAP-AKTAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

ABR_JAHR -

Data type: PD3DSAP-AKTAJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECTONLY -

Data type: PD3FLAG-FLID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLAG_WITH_MSG -

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

EXPORTING Parameters details for HR_READ_D3

ANZAHL -

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

ANZGES -

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

TABLES Parameters details for HR_READ_D3

DSAP -

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

DBEU -

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

DBKS -

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

DBKV -

Data type: PD3DBKV
Optional: Yes
Call by Reference: Yes

FLAG -

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

DSME -

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

DBME -

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

DBNA -

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

DBAN -

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

DBGB -

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

DBSO -

Data type: HRDESV_DS_S_DBSO_D3
Optional: Yes
Call by Reference: Yes

DBUV -

Data type: PD3DBUV
Optional: Yes
Call by Reference: Yes

DBUV_DAT -

Data type: PD3DBUV_DAT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_RECORDS_FOUND -

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

Copy and paste ABAP code example for HR_READ_D3 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:
lt_dsap  TYPE STANDARD TABLE OF PD3DSAP, "   
lv_pernr  TYPE HRD3KEY-PERNR, "   
lv_anzahl  TYPE HRD3KEY-MNR, "   
lv_no_records_found  TYPE HRD3KEY, "   
lt_dbeu  TYPE STANDARD TABLE OF PD3DBEU, "   
lt_dbks  TYPE STANDARD TABLE OF PD3DBKS, "   
lt_dbkv  TYPE STANDARD TABLE OF PD3DBKV, "   
lt_flag  TYPE STANDARD TABLE OF PD3FLAG, "   
lt_dsme  TYPE STANDARD TABLE OF PD3DSME, "   
lv_jahr  TYPE HRD3KEY-JAHR, "   
lv_anzges  TYPE HRD3KEY-MNR, "   
lv_mnr  TYPE HRD3KEY-MNR, "   
lt_dbme  TYPE STANDARD TABLE OF PD3DBME, "   
lt_dbna  TYPE STANDARD TABLE OF PD3DBNA, "   
lv_abr_periode  TYPE PD3DSAP-AKTAP, "   
lt_dban  TYPE STANDARD TABLE OF PD3DBAN, "   
lv_abr_jahr  TYPE PD3DSAP-AKTAJ, "   
lt_dbgb  TYPE STANDARD TABLE OF PD3DBGB, "   
lv_selectonly  TYPE PD3FLAG-FLID, "   
lt_dbso  TYPE STANDARD TABLE OF HRDESV_DS_S_DBSO_D3, "   
lv_i_flag_with_msg  TYPE BOOLE_D, "   ' '
lt_dbuv  TYPE STANDARD TABLE OF PD3DBUV, "   
lt_dbuv_dat  TYPE STANDARD TABLE OF PD3DBUV_DAT. "   

  CALL FUNCTION 'HR_READ_D3'  "
    EXPORTING
         PERNR = lv_pernr
         JAHR = lv_jahr
         MNR = lv_mnr
         ABR_PERIODE = lv_abr_periode
         ABR_JAHR = lv_abr_jahr
         SELECTONLY = lv_selectonly
         I_FLAG_WITH_MSG = lv_i_flag_with_msg
    IMPORTING
         ANZAHL = lv_anzahl
         ANZGES = lv_anzges
    TABLES
         DSAP = lt_dsap
         DBEU = lt_dbeu
         DBKS = lt_dbks
         DBKV = lt_dbkv
         FLAG = lt_flag
         DSME = lt_dsme
         DBME = lt_dbme
         DBNA = lt_dbna
         DBAN = lt_dban
         DBGB = lt_dbgb
         DBSO = lt_dbso
         DBUV = lt_dbuv
         DBUV_DAT = lt_dbuv_dat
    EXCEPTIONS
        NO_RECORDS_FOUND = 1
. " HR_READ_D3




ABAP code using 7.40 inline data declarations to call FM HR_READ_D3

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 PERNR FROM HRD3KEY INTO @DATA(ld_pernr).
 
"SELECT single MNR FROM HRD3KEY INTO @DATA(ld_anzahl).
 
 
 
 
 
 
 
"SELECT single JAHR FROM HRD3KEY INTO @DATA(ld_jahr).
 
"SELECT single MNR FROM HRD3KEY INTO @DATA(ld_anzges).
 
"SELECT single MNR FROM HRD3KEY INTO @DATA(ld_mnr).
 
 
 
"SELECT single AKTAP FROM PD3DSAP INTO @DATA(ld_abr_periode).
 
 
"SELECT single AKTAJ FROM PD3DSAP INTO @DATA(ld_abr_jahr).
 
 
"SELECT single FLID FROM PD3FLAG INTO @DATA(ld_selectonly).
 
 
DATA(ld_i_flag_with_msg) = ' '.
 
 
 


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!