SAP HR_BR_GET_RETRO_MONTH_DIFF Function Module for
HR_BR_GET_RETRO_MONTH_DIFF is a standard hr br get retro month diff SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 br get retro month diff FM, simply by entering the name HR_BR_GET_RETRO_MONTH_DIFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYBR08
Program Name: SAPLHRPAYBR08
Main Program: SAPLHRPAYBR08
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BR_GET_RETRO_MONTH_DIFF 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_BR_GET_RETRO_MONTH_DIFF'".
EXPORTING
PERNR = "
MONTH = "
YEAR = "
* SEL_DATE = 'B' "
* AJUS_DATE = "
TABLES
LGART = "
RETRO_MONTH_DIFF = "
* OFFCYCLES = "
EXCEPTIONS
T500L_NOT_MAINTAINED = 1 NO_READ_AUTHORITY = 2 IMPORT_ERROR = 3
IMPORTING Parameters details for HR_BR_GET_RETRO_MONTH_DIFF
PERNR -
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
MONTH -
Data type: MONTHOptional: No
Call by Reference: No ( called with pass by value option)
YEAR -
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
SEL_DATE -
Data type: P_99L_SEL_DATEDefault: 'B'
Optional: No
Call by Reference: No ( called with pass by value option)
AJUS_DATE -
Data type: ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_BR_GET_RETRO_MONTH_DIFF
LGART -
Data type: SEL_LGARTOptional: No
Call by Reference: Yes
RETRO_MONTH_DIFF -
Data type: HR99LRET_S_MONTH_DIFFOptional: No
Call by Reference: Yes
OFFCYCLES -
Data type: SEL_OCRSNOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
T500L_NOT_MAINTAINED -
Data type:Optional: No
Call by Reference: Yes
NO_READ_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
IMPORT_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_BR_GET_RETRO_MONTH_DIFF 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_lgart | TYPE STANDARD TABLE OF SEL_LGART, " | |||
| lv_pernr | TYPE PERNR-PERNR, " | |||
| lv_t500l_not_maintained | TYPE PERNR, " | |||
| lv_month | TYPE MONTH, " | |||
| lt_retro_month_diff | TYPE STANDARD TABLE OF HR99LRET_S_MONTH_DIFF, " | |||
| lv_no_read_authority | TYPE HR99LRET_S_MONTH_DIFF, " | |||
| lv_year | TYPE GJAHR, " | |||
| lt_offcycles | TYPE STANDARD TABLE OF SEL_OCRSN, " | |||
| lv_import_error | TYPE SEL_OCRSN, " | |||
| lv_sel_date | TYPE P_99L_SEL_DATE, " 'B' | |||
| lv_ajus_date | TYPE ENDDA. " |
|   CALL FUNCTION 'HR_BR_GET_RETRO_MONTH_DIFF' " |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| MONTH | = lv_month | |
| YEAR | = lv_year | |
| SEL_DATE | = lv_sel_date | |
| AJUS_DATE | = lv_ajus_date | |
| TABLES | ||
| LGART | = lt_lgart | |
| RETRO_MONTH_DIFF | = lt_retro_month_diff | |
| OFFCYCLES | = lt_offcycles | |
| EXCEPTIONS | ||
| T500L_NOT_MAINTAINED = 1 | ||
| NO_READ_AUTHORITY = 2 | ||
| IMPORT_ERROR = 3 | ||
| . " HR_BR_GET_RETRO_MONTH_DIFF | ||
ABAP code using 7.40 inline data declarations to call FM HR_BR_GET_RETRO_MONTH_DIFF
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 PERNR INTO @DATA(ld_pernr). | ||||
| DATA(ld_sel_date) | = 'B'. | |||
Search for further information about these or an SAP related objects