SAP HRGPBS_BAR_GET_PAYSCALE_DATA Function Module for Get payscale data form various infotypes









HRGPBS_BAR_GET_PAYSCALE_DATA is a standard hrgpbs bar get payscale 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 payscale data form various infotypes 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 bar get payscale data FM, simply by entering the name HRGPBS_BAR_GET_PAYSCALE_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function HRGPBS_BAR_GET_PAYSCALE_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 'HRGPBS_BAR_GET_PAYSCALE_DATA'"Get payscale data form various infotypes
EXPORTING
PERNR = "Personnel Number
BEGIN = "Start Date
END = "End Date
TRFKZ = "ES grouping for collective agreement provision
INFTY = "Infotype

IMPORTING
MIN_LEVEL = "Pay Scale Level
MAX_LEVEL = "Pay Scale Level
CURR_PAY_SCALE = "Bar pointing: Pay scale

TABLES
INFTY_TAB = "

EXCEPTIONS
NOT_SUPPORTED = 1 HR_READ_INFTY_FAILED = 2 NO_PAY_SCALE = 3
.



IMPORTING Parameters details for HRGPBS_BAR_GET_PAYSCALE_DATA

PERNR - Personnel Number

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

BEGIN - Start Date

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

END - End Date

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

TRFKZ - ES grouping for collective agreement provision

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

INFTY - Infotype

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

EXPORTING Parameters details for HRGPBS_BAR_GET_PAYSCALE_DATA

MIN_LEVEL - Pay Scale Level

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

MAX_LEVEL - Pay Scale Level

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

CURR_PAY_SCALE - Bar pointing: Pay scale

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

TABLES Parameters details for HRGPBS_BAR_GET_PAYSCALE_DATA

INFTY_TAB -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_SUPPORTED - infotype not supported

Data type:
Optional: No
Call by Reference: Yes

HR_READ_INFTY_FAILED - read infotype failed

Data type:
Optional: No
Call by Reference: Yes

NO_PAY_SCALE - no pay scale information for current date

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRGPBS_BAR_GET_PAYSCALE_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_pernr  TYPE PERNR_D, "   
lt_infty_tab  TYPE STANDARD TABLE OF PERNR_D, "   
lv_min_level  TYPE TRFST, "   
lv_not_supported  TYPE TRFST, "   
lv_begin  TYPE BEGDA, "   
lv_max_level  TYPE TRFST, "   
lv_hr_read_infty_failed  TYPE TRFST, "   
lv_end  TYPE ENDDA, "   
lv_no_pay_scale  TYPE ENDDA, "   
lv_curr_pay_scale  TYPE P08P_BAR_PAY_SCALE, "   
lv_trfkz  TYPE TRFKZ, "   
lv_infty  TYPE INFTY. "   

  CALL FUNCTION 'HRGPBS_BAR_GET_PAYSCALE_DATA'  "Get payscale data form various infotypes
    EXPORTING
         PERNR = lv_pernr
         BEGIN = lv_begin
         END = lv_end
         TRFKZ = lv_trfkz
         INFTY = lv_infty
    IMPORTING
         MIN_LEVEL = lv_min_level
         MAX_LEVEL = lv_max_level
         CURR_PAY_SCALE = lv_curr_pay_scale
    TABLES
         INFTY_TAB = lt_infty_tab
    EXCEPTIONS
        NOT_SUPPORTED = 1
        HR_READ_INFTY_FAILED = 2
        NO_PAY_SCALE = 3
. " HRGPBS_BAR_GET_PAYSCALE_DATA




ABAP code using 7.40 inline data declarations to call FM HRGPBS_BAR_GET_PAYSCALE_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.

 
 
 
 
 
 
 
 
 
 
 
 


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!