SAP HRGPBS_CLASS_EXTRACT_AMOUNTS Function Module for Derive Amounts from CRT









HRGPBS_CLASS_EXTRACT_AMOUNTS is a standard hrgpbs class extract amounts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Derive Amounts from CRT 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 hrgpbs class extract amounts FM, simply by entering the name HRGPBS_CLASS_EXTRACT_AMOUNTS into the relevant SAP transaction such as SE37 or SE38.

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



Function HRGPBS_CLASS_EXTRACT_AMOUNTS 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 'HRGPBS_CLASS_EXTRACT_AMOUNTS'"Derive Amounts from CRT
EXPORTING
P_MEMCT = "CLASS CPX INTERFACE Control File Member's Cont. Check Box
P_STRCT = "CLASS CPX INTERFACE Control File Striker's Cont. Check Box
P_NIECT = "CLASS CPX INTERFACE Control File NI Earnings Check Box
P_ACTCT = "CLASS CPX INTERFACE Control File Actual Rem Check Box
P_PENCT = "CLASS CPX INTERFACE Control File Pensionable Rem Check Box
P_SIXCT = "CLASS CPX INTERFACE Control File Amount Six Check Box
P_PAYROLL_RESULT_PDATE = "Date
P_CURRENCY = "Currency Key

IMPORTING
P_PRM_TOT = "HR Payroll: Amount

CHANGING
P_EXTRACT = "CLASS CPX INTERFACE Snapshot Table

TABLES
P_CRT = "Payroll Results: Cumulated Results Table
P_WTG_MEM = "Structure To Hold Wage Types
P_WTG_STR = "Structure To Hold Wage Types
P_WTG_NIE = "Structure To Hold Wage Types
P_WTG_ARM = "Structure To Hold Wage Types
P_WTG_PRM = "Structure To Hold Wage Types
P_WTG_SIX = "Structure To Hold Wage Types
.



IMPORTING Parameters details for HRGPBS_CLASS_EXTRACT_AMOUNTS

P_MEMCT - CLASS CPX INTERFACE Control File Member's Cont. Check Box

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

P_STRCT - CLASS CPX INTERFACE Control File Striker's Cont. Check Box

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

P_NIECT - CLASS CPX INTERFACE Control File NI Earnings Check Box

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

P_ACTCT - CLASS CPX INTERFACE Control File Actual Rem Check Box

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

P_PENCT - CLASS CPX INTERFACE Control File Pensionable Rem Check Box

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

P_SIXCT - CLASS CPX INTERFACE Control File Amount Six Check Box

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

P_PAYROLL_RESULT_PDATE - Date

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

P_CURRENCY - Currency Key

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

EXPORTING Parameters details for HRGPBS_CLASS_EXTRACT_AMOUNTS

P_PRM_TOT - HR Payroll: Amount

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

CHANGING Parameters details for HRGPBS_CLASS_EXTRACT_AMOUNTS

P_EXTRACT - CLASS CPX INTERFACE Snapshot Table

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

TABLES Parameters details for HRGPBS_CLASS_EXTRACT_AMOUNTS

P_CRT - Payroll Results: Cumulated Results Table

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

P_WTG_MEM - Structure To Hold Wage Types

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

P_WTG_STR - Structure To Hold Wage Types

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

P_WTG_NIE - Structure To Hold Wage Types

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

P_WTG_ARM - Structure To Hold Wage Types

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

P_WTG_PRM - Structure To Hold Wage Types

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

P_WTG_SIX - Structure To Hold Wage Types

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

Copy and paste ABAP code example for HRGPBS_CLASS_EXTRACT_AMOUNTS 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_p_crt  TYPE STANDARD TABLE OF PC208, "   
lv_p_memct  TYPE P08_CNT14, "   
lv_p_extract  TYPE P08P1CLS, "   
lv_p_prm_tot  TYPE MAXBT, "   
lv_p_strct  TYPE P08_CNT15, "   
lt_p_wtg_mem  TYPE STANDARD TABLE OF P08P_LGART, "   
lv_p_niect  TYPE P08_CNT16, "   
lt_p_wtg_str  TYPE STANDARD TABLE OF P08P_LGART, "   
lv_p_actct  TYPE P08_CNT17, "   
lt_p_wtg_nie  TYPE STANDARD TABLE OF P08P_LGART, "   
lv_p_penct  TYPE P08_CNT18, "   
lt_p_wtg_arm  TYPE STANDARD TABLE OF P08P_LGART, "   
lv_p_sixct  TYPE P08_CNT19, "   
lt_p_wtg_prm  TYPE STANDARD TABLE OF P08P_LGART, "   
lt_p_wtg_six  TYPE STANDARD TABLE OF P08P_LGART, "   
lv_p_payroll_result_pdate  TYPE DATUM, "   
lv_p_currency  TYPE WAERS. "   

  CALL FUNCTION 'HRGPBS_CLASS_EXTRACT_AMOUNTS'  "Derive Amounts from CRT
    EXPORTING
         P_MEMCT = lv_p_memct
         P_STRCT = lv_p_strct
         P_NIECT = lv_p_niect
         P_ACTCT = lv_p_actct
         P_PENCT = lv_p_penct
         P_SIXCT = lv_p_sixct
         P_PAYROLL_RESULT_PDATE = lv_p_payroll_result_pdate
         P_CURRENCY = lv_p_currency
    IMPORTING
         P_PRM_TOT = lv_p_prm_tot
    CHANGING
         P_EXTRACT = lv_p_extract
    TABLES
         P_CRT = lt_p_crt
         P_WTG_MEM = lt_p_wtg_mem
         P_WTG_STR = lt_p_wtg_str
         P_WTG_NIE = lt_p_wtg_nie
         P_WTG_ARM = lt_p_wtg_arm
         P_WTG_PRM = lt_p_wtg_prm
         P_WTG_SIX = lt_p_wtg_six
. " HRGPBS_CLASS_EXTRACT_AMOUNTS




ABAP code using 7.40 inline data declarations to call FM HRGPBS_CLASS_EXTRACT_AMOUNTS

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!