SAP HR_DE_GET_DATA_VR Function Module for









HR_DE_GET_DATA_VR is a standard hr de get data vr 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 de get data vr FM, simply by entering the name HR_DE_GET_DATA_VR into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_DE_GET_DATA_VR 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_DE_GET_DATA_VR'"
EXPORTING
I_DOCTY = "
I_RFCDEST = "
I_PABRP = "
I_PABRJ = "
* I_PROT = 'X' "

TABLES
* SO_PERNR = "
* SO_WERKS = "
* SO_BTRTL = "
* SO_ABKRS = "
T_DATA_VR = "
T_PROTO = "
.



IMPORTING Parameters details for HR_DE_GET_DATA_VR

I_DOCTY -

Data type: PC_B2A_DOCTY
Optional: No
Call by Reference: Yes

I_RFCDEST -

Data type: PC_B2A_RFCDEST
Optional: No
Call by Reference: Yes

I_PABRP -

Data type: PABRP
Optional: No
Call by Reference: Yes

I_PABRJ -

Data type: PABRJ
Optional: No
Call by Reference: Yes

I_PROT -

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

TABLES Parameters details for HR_DE_GET_DATA_VR

SO_PERNR -

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

SO_WERKS -

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

SO_BTRTL -

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

SO_ABKRS -

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

T_DATA_VR -

Data type: HRDEST_T_DATA_VR
Optional: No
Call by Reference: Yes

T_PROTO -

Data type: HRDEST_T_PROT
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_DE_GET_DATA_VR 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_i_docty  TYPE PC_B2A_DOCTY, "   
lt_so_pernr  TYPE STANDARD TABLE OF HRB2A_S_PERNR, "   
lt_so_werks  TYPE STANDARD TABLE OF HRB2A_S_WERKS, "   
lv_i_rfcdest  TYPE PC_B2A_RFCDEST, "   
lv_i_pabrp  TYPE PABRP, "   
lt_so_btrtl  TYPE STANDARD TABLE OF HRB2A_S_BTRTL, "   
lv_i_pabrj  TYPE PABRJ, "   
lt_so_abkrs  TYPE STANDARD TABLE OF HRB2A_S_ABKRS, "   
lv_i_prot  TYPE XFELD, "   'X'
lt_t_data_vr  TYPE STANDARD TABLE OF HRDEST_T_DATA_VR, "   
lt_t_proto  TYPE STANDARD TABLE OF HRDEST_T_PROT. "   

  CALL FUNCTION 'HR_DE_GET_DATA_VR'  "
    EXPORTING
         I_DOCTY = lv_i_docty
         I_RFCDEST = lv_i_rfcdest
         I_PABRP = lv_i_pabrp
         I_PABRJ = lv_i_pabrj
         I_PROT = lv_i_prot
    TABLES
         SO_PERNR = lt_so_pernr
         SO_WERKS = lt_so_werks
         SO_BTRTL = lt_so_btrtl
         SO_ABKRS = lt_so_abkrs
         T_DATA_VR = lt_t_data_vr
         T_PROTO = lt_t_proto
. " HR_DE_GET_DATA_VR




ABAP code using 7.40 inline data declarations to call FM HR_DE_GET_DATA_VR

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.

 
 
 
 
 
 
 
 
DATA(ld_i_prot) = 'X'.
 
 
 


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!