SAP HR_PAYROLL_PUSHBUTTON_DISPLAY Function Module for Decides Whether 'Payroll' Pushbutton Should Be Displayed
HR_PAYROLL_PUSHBUTTON_DISPLAY is a standard hr payroll pushbutton display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Decides Whether 'Payroll' Pushbutton Should Be Displayed 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 hr payroll pushbutton display FM, simply by entering the name HR_PAYROLL_PUSHBUTTON_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_INFOTYPE8_PAYROLL
Program Name: SAPLHR_INFOTYPE8_PAYROLL
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_PAYROLL_PUSHBUTTON_DISPLAY 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 'HR_PAYROLL_PUSHBUTTON_DISPLAY'"Decides Whether 'Payroll' Pushbutton Should Be Displayed.
EXPORTING
PERSONNEL_AREA = "Personnel area
PERSONNEL_SUBAREA = "Personnel subarea
EMPLOYEE_GROUP = "Employee Group
EMPLOYEE_SUBGROUP = "Employee Subgroup
PAYROLL_AREA = "Payroll area
* SIMULATION_CODE = 'IT' "Simulation Code
IMPORTING
PUSHBUTTON_SWITCH = "Control Display Pushbutton
EXCEPTIONS
FEATURE_ERROR = 1
IMPORTING Parameters details for HR_PAYROLL_PUSHBUTTON_DISPLAY
PERSONNEL_AREA - Personnel area
Data type: PERSAOptional: No
Call by Reference: No ( called with pass by value option)
PERSONNEL_SUBAREA - Personnel subarea
Data type: BTRTLOptional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEE_GROUP - Employee Group
Data type: PERSGOptional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEE_SUBGROUP - Employee Subgroup
Data type: PERSKOptional: No
Call by Reference: No ( called with pass by value option)
PAYROLL_AREA - Payroll area
Data type: ABKRSOptional: No
Call by Reference: No ( called with pass by value option)
SIMULATION_CODE - Simulation Code
Data type: SIMULATION_CODEDefault: 'IT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_PAYROLL_PUSHBUTTON_DISPLAY
PUSHBUTTON_SWITCH - Control Display Pushbutton
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FEATURE_ERROR - Error When Reading Feature PM004
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_PAYROLL_PUSHBUTTON_DISPLAY 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_feature_error | TYPE STRING, " | |||
| lv_personnel_area | TYPE PERSA, " | |||
| lv_pushbutton_switch | TYPE C, " | |||
| lv_personnel_subarea | TYPE BTRTL, " | |||
| lv_employee_group | TYPE PERSG, " | |||
| lv_employee_subgroup | TYPE PERSK, " | |||
| lv_payroll_area | TYPE ABKRS, " | |||
| lv_simulation_code | TYPE SIMULATION_CODE. " 'IT' |
|   CALL FUNCTION 'HR_PAYROLL_PUSHBUTTON_DISPLAY' "Decides Whether 'Payroll' Pushbutton Should Be Displayed |
| EXPORTING | ||
| PERSONNEL_AREA | = lv_personnel_area | |
| PERSONNEL_SUBAREA | = lv_personnel_subarea | |
| EMPLOYEE_GROUP | = lv_employee_group | |
| EMPLOYEE_SUBGROUP | = lv_employee_subgroup | |
| PAYROLL_AREA | = lv_payroll_area | |
| SIMULATION_CODE | = lv_simulation_code | |
| IMPORTING | ||
| PUSHBUTTON_SWITCH | = lv_pushbutton_switch | |
| EXCEPTIONS | ||
| FEATURE_ERROR = 1 | ||
| . " HR_PAYROLL_PUSHBUTTON_DISPLAY | ||
ABAP code using 7.40 inline data declarations to call FM HR_PAYROLL_PUSHBUTTON_DISPLAY
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.| DATA(ld_simulation_code) | = 'IT'. | |||
Search for further information about these or an SAP related objects