SAP TEST_GET_BENEFIT_HOURS Function Module for TEST_PAID_TIMOFFREQ_GETLIST
TEST_GET_BENEFIT_HOURS is a standard test get benefit hours SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TEST_PAID_TIMOFFREQ_GETLIST 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 test get benefit hours FM, simply by entering the name TEST_GET_BENEFIT_HOURS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_WFM_SCHED_STAT
Program Name: SAPLCRM_WFM_SCHED_STAT
Main Program: SAPLCRM_WFM_SCHED_STAT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TEST_GET_BENEFIT_HOURS 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 'TEST_GET_BENEFIT_HOURS'"TEST_PAID_TIMOFFREQ_GETLIST.
EXPORTING
IV_PARTNER = "Business Partner Number
IV_ORG_OBJID = "Object ID
IV_WEEK_OF = "Date
IMPORTING
ET_BENEFIT_DAYS = "Table of Benefit Hours and Pay (by Day)
EV_DEFAULT_SET_GRP_ID = "Default Settings Group
EV_CALENDAR = "Public Holiday Calendar
EV_ELIGIBLE_HOLBEN = "Boolean ( True = 'X', False = ' ')
EV_ELIGIBLE_HOLPPRM = "Boolean ( True = 'X', False = ' ')
IMPORTING Parameters details for TEST_GET_BENEFIT_HOURS
IV_PARTNER - Business Partner Number
Data type: BU_PARTNEROptional: No
Call by Reference: No ( called with pass by value option)
IV_ORG_OBJID - Object ID
Data type: HROBJIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_WEEK_OF - Date
Data type: WFM_CAS_DATEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TEST_GET_BENEFIT_HOURS
ET_BENEFIT_DAYS - Table of Benefit Hours and Pay (by Day)
Data type: WFMCAST_PAID_BENEFIT_DAYOptional: No
Call by Reference: No ( called with pass by value option)
EV_DEFAULT_SET_GRP_ID - Default Settings Group
Data type: WFM_CAS_DFTSET_GRP_IDOptional: No
Call by Reference: No ( called with pass by value option)
EV_CALENDAR - Public Holiday Calendar
Data type: HIDENTOptional: No
Call by Reference: No ( called with pass by value option)
EV_ELIGIBLE_HOLBEN - Boolean ( True = 'X', False = ' ')
Data type: WFM_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
EV_ELIGIBLE_HOLPPRM - Boolean ( True = 'X', False = ' ')
Data type: WFM_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TEST_GET_BENEFIT_HOURS 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_iv_partner | TYPE BU_PARTNER, " | |||
| lv_et_benefit_days | TYPE WFMCAST_PAID_BENEFIT_DAY, " | |||
| lv_iv_org_objid | TYPE HROBJID, " | |||
| lv_ev_default_set_grp_id | TYPE WFM_CAS_DFTSET_GRP_ID, " | |||
| lv_iv_week_of | TYPE WFM_CAS_DATE, " | |||
| lv_ev_calendar | TYPE HIDENT, " | |||
| lv_ev_eligible_holben | TYPE WFM_BOOLEAN, " | |||
| lv_ev_eligible_holpprm | TYPE WFM_BOOLEAN. " |
|   CALL FUNCTION 'TEST_GET_BENEFIT_HOURS' "TEST_PAID_TIMOFFREQ_GETLIST |
| EXPORTING | ||
| IV_PARTNER | = lv_iv_partner | |
| IV_ORG_OBJID | = lv_iv_org_objid | |
| IV_WEEK_OF | = lv_iv_week_of | |
| IMPORTING | ||
| ET_BENEFIT_DAYS | = lv_et_benefit_days | |
| EV_DEFAULT_SET_GRP_ID | = lv_ev_default_set_grp_id | |
| EV_CALENDAR | = lv_ev_calendar | |
| EV_ELIGIBLE_HOLBEN | = lv_ev_eligible_holben | |
| EV_ELIGIBLE_HOLPPRM | = lv_ev_eligible_holpprm | |
| . " TEST_GET_BENEFIT_HOURS | ||
ABAP code using 7.40 inline data declarations to call FM TEST_GET_BENEFIT_HOURS
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