SAP HR_GB_FETCH_SSMP_DATA Function Module for function module providing data for SSP & SMP - form filling reports
HR_GB_FETCH_SSMP_DATA is a standard hr gb fetch ssmp 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 function module providing data for SSP & SMP - form filling reports 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 fetch ssmp data FM, simply by entering the name HR_GB_FETCH_SSMP_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRG5
Program Name: SAPLHRG5
Main Program: SAPLHRG5
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_GB_FETCH_SSMP_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 'HR_GB_FETCH_SSMP_DATA'"function module providing data for SSP & SMP - form filling reports.
EXPORTING
PERSNR = "
BEGDA = "
ENDDA = "
* GET_SSMP_WEEKS = "
* GET_SSMP_EXCLS = "
IMPORTING
SSMP_WEEKS = "
SSMP_EXCLS = "
PIW_START = "
EXCL_START = "
EXCEPTIONS
FAILED_IMP_CLUSTER_PC = 1 FAILED_IMP_RGDIR = 2 FAILED_READ_QDNUM = 3 DIVISION_BY_ZERO = 4
IMPORTING Parameters details for HR_GB_FETCH_SSMP_DATA
PERSNR -
Data type: P0001-PERNROptional: No
Call by Reference: Yes
BEGDA -
Data type: P2001-BEGDAOptional: No
Call by Reference: Yes
ENDDA -
Data type: P2001-ENDDAOptional: No
Call by Reference: Yes
GET_SSMP_WEEKS -
Data type: COptional: Yes
Call by Reference: Yes
GET_SSMP_EXCLS -
Data type: COptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_GB_FETCH_SSMP_DATA
SSMP_WEEKS -
Data type:Optional: No
Call by Reference: Yes
SSMP_EXCLS -
Data type:Optional: No
Call by Reference: Yes
PIW_START -
Data type: DOptional: No
Call by Reference: Yes
EXCL_START -
Data type: DOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED_IMP_CLUSTER_PC - Import von Cluster PC fehlgeschlagen
Data type:Optional: No
Call by Reference: Yes
FAILED_IMP_RGDIR - Lesen von RGDIR fehlgeschlagen
Data type:Optional: No
Call by Reference: Yes
FAILED_READ_QDNUM - Anzahl qualifying days Lesen Fehlgeschlagen
Data type:Optional: No
Call by Reference: Yes
DIVISION_BY_ZERO - Division durch Null
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_GB_FETCH_SSMP_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_persnr | TYPE P0001-PERNR, " | |||
| lv_ssmp_weeks | TYPE P0001, " | |||
| lv_failed_imp_cluster_pc | TYPE P0001, " | |||
| lv_begda | TYPE P2001-BEGDA, " | |||
| lv_ssmp_excls | TYPE P2001, " | |||
| lv_failed_imp_rgdir | TYPE P2001, " | |||
| lv_endda | TYPE P2001-ENDDA, " | |||
| lv_piw_start | TYPE D, " | |||
| lv_failed_read_qdnum | TYPE D, " | |||
| lv_excl_start | TYPE D, " | |||
| lv_get_ssmp_weeks | TYPE C, " | |||
| lv_division_by_zero | TYPE C, " | |||
| lv_get_ssmp_excls | TYPE C. " |
|   CALL FUNCTION 'HR_GB_FETCH_SSMP_DATA' "function module providing data for SSP & SMP - form filling reports |
| EXPORTING | ||
| PERSNR | = lv_persnr | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| GET_SSMP_WEEKS | = lv_get_ssmp_weeks | |
| GET_SSMP_EXCLS | = lv_get_ssmp_excls | |
| IMPORTING | ||
| SSMP_WEEKS | = lv_ssmp_weeks | |
| SSMP_EXCLS | = lv_ssmp_excls | |
| PIW_START | = lv_piw_start | |
| EXCL_START | = lv_excl_start | |
| EXCEPTIONS | ||
| FAILED_IMP_CLUSTER_PC = 1 | ||
| FAILED_IMP_RGDIR = 2 | ||
| FAILED_READ_QDNUM = 3 | ||
| DIVISION_BY_ZERO = 4 | ||
| . " HR_GB_FETCH_SSMP_DATA | ||
ABAP code using 7.40 inline data declarations to call FM HR_GB_FETCH_SSMP_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.| "SELECT single PERNR FROM P0001 INTO @DATA(ld_persnr). | ||||
| "SELECT single BEGDA FROM P2001 INTO @DATA(ld_begda). | ||||
| "SELECT single ENDDA FROM P2001 INTO @DATA(ld_endda). | ||||
Search for further information about these or an SAP related objects