SAP RP_GR_GET_GENERAL_PAYROLL_DATA Function Module for Get general payroll data necessary for garnishment









RP_GR_GET_GENERAL_PAYROLL_DATA is a standard rp gr get general payroll data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get general payroll data necessary for garnishment processing and below is the pattern details for this FM, 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 rp gr get general payroll data FM, simply by entering the name RP_GR_GET_GENERAL_PAYROLL_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function RP_GR_GET_GENERAL_PAYROLL_DATA 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 'RP_GR_GET_GENERAL_PAYROLL_DATA'"Get general payroll data necessary for garnishment
EXPORTING
PERMO = "aper-permo
PAYTY = "aper-payty
PABRJ = "first four digits of aper-paper
PABRP = "last two digits of aper-paper
BEGDA = "aper-begda
ENDDA = "aper-endda
CHKDT = "aper-chkdt
DATMO = "aper-datmo
ID_PAYROLLDATE = "what should payroll date be?

CHANGING
GRALL = "Structure with order independent data
.



IMPORTING Parameters details for RP_GR_GET_GENERAL_PAYROLL_DATA

PERMO - aper-permo

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

PAYTY - aper-payty

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

PABRJ - first four digits of aper-paper

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

PABRP - last two digits of aper-paper

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

BEGDA - aper-begda

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

ENDDA - aper-endda

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

CHKDT - aper-chkdt

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

DATMO - aper-datmo

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

ID_PAYROLLDATE - what should payroll date be?

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

CHANGING Parameters details for RP_GR_GET_GENERAL_PAYROLL_DATA

GRALL - Structure with order independent data

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

Copy and paste ABAP code example for RP_GR_GET_GENERAL_PAYROLL_DATA 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_grall  TYPE GRALL_INT, "   
lv_permo  TYPE T549A-PERMO, "   
lv_payty  TYPE PC261-PAYTY, "   
lv_pabrj  TYPE T549Q-PABRJ, "   
lv_pabrp  TYPE T549Q-PABRP, "   
lv_begda  TYPE P0001-BEGDA, "   
lv_endda  TYPE P0001-ENDDA, "   
lv_chkdt  TYPE D, "   
lv_datmo  TYPE T549A-DATMO, "   
lv_id_payrolldate  TYPE P02GP_ID_PAYDT. "   

  CALL FUNCTION 'RP_GR_GET_GENERAL_PAYROLL_DATA'  "Get general payroll data necessary for garnishment
    EXPORTING
         PERMO = lv_permo
         PAYTY = lv_payty
         PABRJ = lv_pabrj
         PABRP = lv_pabrp
         BEGDA = lv_begda
         ENDDA = lv_endda
         CHKDT = lv_chkdt
         DATMO = lv_datmo
         ID_PAYROLLDATE = lv_id_payrolldate
    CHANGING
         GRALL = lv_grall
. " RP_GR_GET_GENERAL_PAYROLL_DATA




ABAP code using 7.40 inline data declarations to call FM RP_GR_GET_GENERAL_PAYROLL_DATA

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 PERMO FROM T549A INTO @DATA(ld_permo).
 
"SELECT single PAYTY FROM PC261 INTO @DATA(ld_payty).
 
"SELECT single PABRJ FROM T549Q INTO @DATA(ld_pabrj).
 
"SELECT single PABRP FROM T549Q INTO @DATA(ld_pabrp).
 
"SELECT single BEGDA FROM P0001 INTO @DATA(ld_begda).
 
"SELECT single ENDDA FROM P0001 INTO @DATA(ld_endda).
 
 
"SELECT single DATMO FROM T549A INTO @DATA(ld_datmo).
 
 


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!