SAP HRAE_PBS_RETRIEVE_FROM_IT0267 Function Module for Retrieve Salary Component Data from Infotype 0267









HRAE_PBS_RETRIEVE_FROM_IT0267 is a standard hrae pbs retrieve from it0267 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve Salary Component Data from Infotype 0267 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 hrae pbs retrieve from it0267 FM, simply by entering the name HRAE_PBS_RETRIEVE_FROM_IT0267 into the relevant SAP transaction such as SE37 or SE38.

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



Function HRAE_PBS_RETRIEVE_FROM_IT0267 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 'HRAE_PBS_RETRIEVE_FROM_IT0267'"Retrieve Salary Component Data from Infotype 0267
EXPORTING
PERNR = "
DATE = "
SC_INFO = "Salary packaging Salary component information table

IMPORTING
SC_CATEGORY = "Component category
SC_PAYID = "Payroll Identifier
SC_OCRSN = "Reason for Off-Cycle Payroll
SC_AMOUNT = "New amount
SC_PERCENT = "New Number
SC_ZEINH = "New Time/Measurement Unit
SC_INDBW = "Indicator for indirect valuation
SC_INDEX = "Salary packaging: Infotype record index
SC_PREAS = "Reason for Changing Master Data
SC_ZUORD = "Assignment Number
SC_PAYTY = "Payroll type

TABLES
IDATA = "Table of Generic Infotypes
.



IMPORTING Parameters details for HRAE_PBS_RETRIEVE_FROM_IT0267

PERNR -

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

DATE -

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

SC_INFO - Salary packaging Salary component information table

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

EXPORTING Parameters details for HRAE_PBS_RETRIEVE_FROM_IT0267

SC_CATEGORY - Component category

Data type: PAEP_PACKAGE_COMPONENT-NECAT
Optional: No
Call by Reference: Yes

SC_PAYID - Payroll Identifier

Data type: PAEP_PACKAGE_COMPONENT-PAYID
Optional: No
Call by Reference: Yes

SC_OCRSN - Reason for Off-Cycle Payroll

Data type: PAEP_PACKAGE_COMPONENT-OCRSN
Optional: No
Call by Reference: Yes

SC_AMOUNT - New amount

Data type: PAEP_PACKAGE_COMPONENT-NEAMT
Optional: No
Call by Reference: Yes

SC_PERCENT - New Number

Data type: PAEP_PACKAGE_COMPONENT-NEPCT
Optional: No
Call by Reference: Yes

SC_ZEINH - New Time/Measurement Unit

Data type: PAEP_PACKAGE_COMPONENT-ZEINH
Optional: No
Call by Reference: Yes

SC_INDBW - Indicator for indirect valuation

Data type: PAEP_PACKAGE_COMPONENT-INDBW
Optional: No
Call by Reference: Yes

SC_INDEX - Salary packaging: Infotype record index

Data type: PAEP_INFTY_INDEX-ITIDX
Optional: No
Call by Reference: Yes

SC_PREAS - Reason for Changing Master Data

Data type: PAEP_PACKAGE_COMPONENT-PREAS
Optional: No
Call by Reference: Yes

SC_ZUORD - Assignment Number

Data type: PAEP_PACKAGE_COMPONENT-ZUORD
Optional: No
Call by Reference: Yes

SC_PAYTY - Payroll type

Data type: PAEP_PACKAGE_COMPONENT-PAYTY
Optional: No
Call by Reference: Yes

TABLES Parameters details for HRAE_PBS_RETRIEVE_FROM_IT0267

IDATA - Table of Generic Infotypes

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

Copy and paste ABAP code example for HRAE_PBS_RETRIEVE_FROM_IT0267 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_idata  TYPE STANDARD TABLE OF PRELP_TAB, "   
lv_pernr  TYPE PERNR-PERNR, "   
lv_sc_category  TYPE PAEP_PACKAGE_COMPONENT-NECAT, "   
lv_sc_payid  TYPE PAEP_PACKAGE_COMPONENT-PAYID, "   
lv_sc_ocrsn  TYPE PAEP_PACKAGE_COMPONENT-OCRSN, "   
lv_date  TYPE SY-DATUM, "   
lv_sc_amount  TYPE PAEP_PACKAGE_COMPONENT-NEAMT, "   
lv_sc_info  TYPE PAEP_COMPONENT_INFO, "   
lv_sc_percent  TYPE PAEP_PACKAGE_COMPONENT-NEPCT, "   
lv_sc_zeinh  TYPE PAEP_PACKAGE_COMPONENT-ZEINH, "   
lv_sc_indbw  TYPE PAEP_PACKAGE_COMPONENT-INDBW, "   
lv_sc_index  TYPE PAEP_INFTY_INDEX-ITIDX, "   
lv_sc_preas  TYPE PAEP_PACKAGE_COMPONENT-PREAS, "   
lv_sc_zuord  TYPE PAEP_PACKAGE_COMPONENT-ZUORD, "   
lv_sc_payty  TYPE PAEP_PACKAGE_COMPONENT-PAYTY. "   

  CALL FUNCTION 'HRAE_PBS_RETRIEVE_FROM_IT0267'  "Retrieve Salary Component Data from Infotype 0267
    EXPORTING
         PERNR = lv_pernr
         DATE = lv_date
         SC_INFO = lv_sc_info
    IMPORTING
         SC_CATEGORY = lv_sc_category
         SC_PAYID = lv_sc_payid
         SC_OCRSN = lv_sc_ocrsn
         SC_AMOUNT = lv_sc_amount
         SC_PERCENT = lv_sc_percent
         SC_ZEINH = lv_sc_zeinh
         SC_INDBW = lv_sc_indbw
         SC_INDEX = lv_sc_index
         SC_PREAS = lv_sc_preas
         SC_ZUORD = lv_sc_zuord
         SC_PAYTY = lv_sc_payty
    TABLES
         IDATA = lt_idata
. " HRAE_PBS_RETRIEVE_FROM_IT0267




ABAP code using 7.40 inline data declarations to call FM HRAE_PBS_RETRIEVE_FROM_IT0267

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 PERNR INTO @DATA(ld_pernr).
 
"SELECT single NECAT FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_category).
 
"SELECT single PAYID FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_payid).
 
"SELECT single OCRSN FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_ocrsn).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
 
"SELECT single NEAMT FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_amount).
 
 
"SELECT single NEPCT FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_percent).
 
"SELECT single ZEINH FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_zeinh).
 
"SELECT single INDBW FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_indbw).
 
"SELECT single ITIDX FROM PAEP_INFTY_INDEX INTO @DATA(ld_sc_index).
 
"SELECT single PREAS FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_preas).
 
"SELECT single ZUORD FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_zuord).
 
"SELECT single PAYTY FROM PAEP_PACKAGE_COMPONENT INTO @DATA(ld_sc_payty).
 


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!