SAP HRGPBS_CLASS_EXTRACT_INFOTYPES Function Module for CLASS Data record: DEFAULTED fields









HRGPBS_CLASS_EXTRACT_INFOTYPES is a standard hrgpbs class extract infotypes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CLASS Data record: DEFAULTED fields 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 infotypes FM, simply by entering the name HRGPBS_CLASS_EXTRACT_INFOTYPES 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_INFOTYPES 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_INFOTYPES'"CLASS Data record: DEFAULTED fields
EXPORTING
P_PERNR = "Personnel number
P_BEGDA = "Date
P_ENDDA = "Date
P_EMP_SD = "Date type
P_SERPS_SD = "Date type
P_PENS_SD = "Date type
P_PENS_S_SD = "Date type

CHANGING
P_EXTRACT = "CLASS CPX INTERFACE Snapshot Table
P_DATE_LEFT = "Date
P_FIRST_PDATE_IN_TAX_YEAR = "Date
P_LAST_PDATE_IN_TAX_YEAR = "Date
P_CURRENT_CLASS_SCHEME = "Pension scheme

TABLES
P_P0000 = "HR Master Record: Infotype 0000 (Actions)
P_P0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
P_P0002 = "HR Master Record: Infotype 0002 (Personal Data)
P_P0003 = "HR Master Record: Infotype 0003 (Payroll Status)
P_P0006 = "HR Master Record: Infotype 0006 (Addresses)
P_P0007 = "HR Master Record: Infotype 0007 (Planned Working Time)
P_P0069 = "HR Master Record: Infotype 0069 (Nat. Insurance - GB)
P_P0071 = "HR Master Record: Infotype 0071 (Pensions Admin. - GB)
P_I5GPBS1 = "CLASS CPX Pension Scheme Cross Reference

EXCEPTIONS
INFOTYPES_ERROR = 1
.



IMPORTING Parameters details for HRGPBS_CLASS_EXTRACT_INFOTYPES

P_PERNR - Personnel number

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

P_BEGDA - Date

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

P_ENDDA - Date

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

P_EMP_SD - Date type

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

P_SERPS_SD - Date type

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

P_PENS_SD - Date type

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

P_PENS_S_SD - Date type

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

CHANGING Parameters details for HRGPBS_CLASS_EXTRACT_INFOTYPES

P_EXTRACT - CLASS CPX INTERFACE Snapshot Table

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

P_DATE_LEFT - Date

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

P_FIRST_PDATE_IN_TAX_YEAR - Date

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

P_LAST_PDATE_IN_TAX_YEAR - Date

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

P_CURRENT_CLASS_SCHEME - Pension scheme

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

TABLES Parameters details for HRGPBS_CLASS_EXTRACT_INFOTYPES

P_P0000 - HR Master Record: Infotype 0000 (Actions)

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

P_P0001 - HR Master Record: Infotype 0001 (Org. Assignment)

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

P_P0002 - HR Master Record: Infotype 0002 (Personal Data)

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

P_P0003 - HR Master Record: Infotype 0003 (Payroll Status)

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

P_P0006 - HR Master Record: Infotype 0006 (Addresses)

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

P_P0007 - HR Master Record: Infotype 0007 (Planned Working Time)

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

P_P0069 - HR Master Record: Infotype 0069 (Nat. Insurance - GB)

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

P_P0071 - HR Master Record: Infotype 0071 (Pensions Admin. - GB)

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

P_I5GPBS1 - CLASS CPX Pension Scheme Cross Reference

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

EXCEPTIONS details

INFOTYPES_ERROR - Error when deriving Infotype Data

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRGPBS_CLASS_EXTRACT_INFOTYPES 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_p0000  TYPE STANDARD TABLE OF P0000, "   
lv_p_pernr  TYPE P_PERNR, "   
lv_p_extract  TYPE P08P1CLS, "   
lv_infotypes_error  TYPE P08P1CLS, "   
lv_p_begda  TYPE DATUM, "   
lt_p_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_p_date_left  TYPE DATUM, "   
lv_p_endda  TYPE DATUM, "   
lt_p_p0002  TYPE STANDARD TABLE OF P0002, "   
lv_p_first_pdate_in_tax_year  TYPE DATUM, "   
lt_p_p0003  TYPE STANDARD TABLE OF P0003, "   
lv_p_emp_sd  TYPE DATAR, "   
lv_p_last_pdate_in_tax_year  TYPE DATUM, "   
lt_p_p0006  TYPE STANDARD TABLE OF P0006, "   
lv_p_serps_sd  TYPE DATAR, "   
lv_p_current_class_scheme  TYPE P08_SCHID, "   
lt_p_p0007  TYPE STANDARD TABLE OF P0007, "   
lv_p_pens_sd  TYPE DATAR, "   
lt_p_p0069  TYPE STANDARD TABLE OF P0069, "   
lv_p_pens_s_sd  TYPE DATAR, "   
lt_p_p0071  TYPE STANDARD TABLE OF P0071, "   
lt_p_i5gpbs1  TYPE STANDARD TABLE OF T5GPBS1. "   

  CALL FUNCTION 'HRGPBS_CLASS_EXTRACT_INFOTYPES'  "CLASS Data record: DEFAULTED fields
    EXPORTING
         P_PERNR = lv_p_pernr
         P_BEGDA = lv_p_begda
         P_ENDDA = lv_p_endda
         P_EMP_SD = lv_p_emp_sd
         P_SERPS_SD = lv_p_serps_sd
         P_PENS_SD = lv_p_pens_sd
         P_PENS_S_SD = lv_p_pens_s_sd
    CHANGING
         P_EXTRACT = lv_p_extract
         P_DATE_LEFT = lv_p_date_left
         P_FIRST_PDATE_IN_TAX_YEAR = lv_p_first_pdate_in_tax_year
         P_LAST_PDATE_IN_TAX_YEAR = lv_p_last_pdate_in_tax_year
         P_CURRENT_CLASS_SCHEME = lv_p_current_class_scheme
    TABLES
         P_P0000 = lt_p_p0000
         P_P0001 = lt_p_p0001
         P_P0002 = lt_p_p0002
         P_P0003 = lt_p_p0003
         P_P0006 = lt_p_p0006
         P_P0007 = lt_p_p0007
         P_P0069 = lt_p_p0069
         P_P0071 = lt_p_p0071
         P_I5GPBS1 = lt_p_i5gpbs1
    EXCEPTIONS
        INFOTYPES_ERROR = 1
. " HRGPBS_CLASS_EXTRACT_INFOTYPES




ABAP code using 7.40 inline data declarations to call FM HRGPBS_CLASS_EXTRACT_INFOTYPES

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!