SAP HR_GB_AWE_FROM_BASIC_PAY Function Module for HR-GB: Detemine AWE for SSP from basic pay
HR_GB_AWE_FROM_BASIC_PAY is a standard hr gb awe from basic pay SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR-GB: Detemine AWE for SSP from basic pay 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 gb awe from basic pay FM, simply by entering the name HR_GB_AWE_FROM_BASIC_PAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRG1
Program Name: SAPLHRG1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_GB_AWE_FROM_BASIC_PAY 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_GB_AWE_FROM_BASIC_PAY'"HR-GB: Detemine AWE for SSP from basic pay.
EXPORTING
START_DATE = "Start date of employment
ABSENCE_DATE = "Start date of absence
* TRFKZ = "ES grouping for collective agreement provision
* ZEINH = "Payroll time units
* GSDIVI = "Planned working hours in payroll period
IMPORTING
AWE_BETPE = "HR-GB: Average Weekly Earnings (5 decimal places)
TABLES
PP0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
PP0008 = "HR Master Record: Infotype 0008 (Basic Pay)
EXCEPTIONS
NO_PP0008_ENTRY_FOUND = 1 NO_PP0001_ENTRY_FOUND = 2 NO_TIME_UNIT_FOUND = 3
IMPORTING Parameters details for HR_GB_AWE_FROM_BASIC_PAY
START_DATE - Start date of employment
Data type: DOptional: No
Call by Reference: Yes
ABSENCE_DATE - Start date of absence
Data type: DOptional: No
Call by Reference: Yes
TRFKZ - ES grouping for collective agreement provision
Data type: T503-TRFKZOptional: Yes
Call by Reference: Yes
ZEINH - Payroll time units
Data type: T549R-ZEINHOptional: Yes
Call by Reference: Yes
GSDIVI - Planned working hours in payroll period
Data type: PAY99_GLOBAL_VAR-GSDIVIOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_GB_AWE_FROM_BASIC_PAY
AWE_BETPE - HR-GB: Average Weekly Earnings (5 decimal places)
Data type: P08_AWE_DEC18_5Optional: No
Call by Reference: Yes
TABLES Parameters details for HR_GB_AWE_FROM_BASIC_PAY
PP0001 - HR Master Record: Infotype 0001 (Org. Assignment)
Data type: P0001Optional: No
Call by Reference: Yes
PP0008 - HR Master Record: Infotype 0008 (Basic Pay)
Data type: P0008Optional: No
Call by Reference: Yes
EXCEPTIONS details
NO_PP0008_ENTRY_FOUND - No infotype 0008 record found
Data type:Optional: No
Call by Reference: Yes
NO_PP0001_ENTRY_FOUND - No infotype 0001 record found
Data type:Optional: No
Call by Reference: Yes
NO_TIME_UNIT_FOUND - No time unit found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_GB_AWE_FROM_BASIC_PAY 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_pp0001 | TYPE STANDARD TABLE OF P0001, " | |||
| lv_awe_betpe | TYPE P08_AWE_DEC18_5, " | |||
| lv_start_date | TYPE D, " | |||
| lv_no_pp0008_entry_found | TYPE D, " | |||
| lt_pp0008 | TYPE STANDARD TABLE OF P0008, " | |||
| lv_absence_date | TYPE D, " | |||
| lv_no_pp0001_entry_found | TYPE D, " | |||
| lv_trfkz | TYPE T503-TRFKZ, " | |||
| lv_no_time_unit_found | TYPE T503, " | |||
| lv_zeinh | TYPE T549R-ZEINH, " | |||
| lv_gsdivi | TYPE PAY99_GLOBAL_VAR-GSDIVI. " |
|   CALL FUNCTION 'HR_GB_AWE_FROM_BASIC_PAY' "HR-GB: Detemine AWE for SSP from basic pay |
| EXPORTING | ||
| START_DATE | = lv_start_date | |
| ABSENCE_DATE | = lv_absence_date | |
| TRFKZ | = lv_trfkz | |
| ZEINH | = lv_zeinh | |
| GSDIVI | = lv_gsdivi | |
| IMPORTING | ||
| AWE_BETPE | = lv_awe_betpe | |
| TABLES | ||
| PP0001 | = lt_pp0001 | |
| PP0008 | = lt_pp0008 | |
| EXCEPTIONS | ||
| NO_PP0008_ENTRY_FOUND = 1 | ||
| NO_PP0001_ENTRY_FOUND = 2 | ||
| NO_TIME_UNIT_FOUND = 3 | ||
| . " HR_GB_AWE_FROM_BASIC_PAY | ||
ABAP code using 7.40 inline data declarations to call FM HR_GB_AWE_FROM_BASIC_PAY
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 TRFKZ FROM T503 INTO @DATA(ld_trfkz). | ||||
| "SELECT single ZEINH FROM T549R INTO @DATA(ld_zeinh). | ||||
| "SELECT single GSDIVI FROM PAY99_GLOBAL_VAR INTO @DATA(ld_gsdivi). | ||||
Search for further information about these or an SAP related objects