SAP HR_BE_GE_READ_MAX_HOURS_WEEK Function Module for Read maximum working hours a week.









HR_BE_GE_READ_MAX_HOURS_WEEK is a standard hr be ge read max hours week SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read maximum working hours a week. 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 be ge read max hours week FM, simply by entering the name HR_BE_GE_READ_MAX_HOURS_WEEK into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_BE_GE_READ_MAX_HOURS_WEEK 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_BE_GE_READ_MAX_HOURS_WEEK'"Read maximum working hours a week.
EXPORTING
IN_PMEBW = "Data structure for BEUWG Feature

IMPORTING
RTN_BEUWG = "Maximum number of hours per week

EXCEPTIONS
FEATURE_NOT_GENERATED = 1 INPUT_IS_EMPTY = 2 ZERO_OUTPUT = 3 UNKNWON_FEATURE = 4 BUKRS_NOT_AVAILABLE = 5
.



IMPORTING Parameters details for HR_BE_GE_READ_MAX_HOURS_WEEK

IN_PMEBW - Data structure for BEUWG Feature

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

EXPORTING Parameters details for HR_BE_GE_READ_MAX_HOURS_WEEK

RTN_BEUWG - Maximum number of hours per week

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

EXCEPTIONS details

FEATURE_NOT_GENERATED - Feature is not generated

Data type:
Optional: No
Call by Reference: Yes

INPUT_IS_EMPTY - Input structure is empty

Data type:
Optional: No
Call by Reference: Yes

ZERO_OUTPUT - Case is not treated by feature BEUWG

Data type:
Optional: No
Call by Reference: Yes

UNKNWON_FEATURE - Unknwon Feature, Please refer to documentation.

Data type:
Optional: No
Call by Reference: Yes

BUKRS_NOT_AVAILABLE - Unable to retrieve Company Code

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_BE_GE_READ_MAX_HOURS_WEEK 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_in_pmebw  TYPE PMEBW, "   
lv_rtn_beuwg  TYPE BEUWG, "   
lv_feature_not_generated  TYPE BEUWG, "   
lv_input_is_empty  TYPE BEUWG, "   
lv_zero_output  TYPE BEUWG, "   
lv_unknwon_feature  TYPE BEUWG, "   
lv_bukrs_not_available  TYPE BEUWG. "   

  CALL FUNCTION 'HR_BE_GE_READ_MAX_HOURS_WEEK'  "Read maximum working hours a week.
    EXPORTING
         IN_PMEBW = lv_in_pmebw
    IMPORTING
         RTN_BEUWG = lv_rtn_beuwg
    EXCEPTIONS
        FEATURE_NOT_GENERATED = 1
        INPUT_IS_EMPTY = 2
        ZERO_OUTPUT = 3
        UNKNWON_FEATURE = 4
        BUKRS_NOT_AVAILABLE = 5
. " HR_BE_GE_READ_MAX_HOURS_WEEK




ABAP code using 7.40 inline data declarations to call FM HR_BE_GE_READ_MAX_HOURS_WEEK

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!