SAP HR99L00_GET_RETRO_MONTH_DIFF Function Module for Get retroactive result differences by month
HR99L00_GET_RETRO_MONTH_DIFF is a standard hr99l00 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 for Get retroactive result differences by month 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 hr99l00 get retro month diff FM, simply by entering the name HR99L00_GET_RETRO_MONTH_DIFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR99L00_RETROACCTG_REPORTS
Program Name: SAPLHR99L00_RETROACCTG_REPORTS
Main Program: SAPLHR99L00_RETROACCTG_REPORTS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR99L00_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 'HR99L00_GET_RETRO_MONTH_DIFF'"Get retroactive result differences by month.
EXPORTING
PERNR = "Personnel number
MONTH = "Month
YEAR = "Fiscal year
* SEL_DATE = 'B' "Selection Date
TABLES
LGART = "List of Wage Types
RETRO_MONTH_DIFF = "Retroactive Accounting Monthly Differences
EXCEPTIONS
T500L_NOT_MAINTAINED = 1 NO_READ_AUTHORITY = 2 IMPORT_ERROR = 3
IMPORTING Parameters details for HR99L00_GET_RETRO_MONTH_DIFF
PERNR - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
MONTH - Month
Data type: MONTHOptional: No
Call by Reference: No ( called with pass by value option)
YEAR - Fiscal year
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
SEL_DATE - Selection Date
Data type: P_99L_SEL_DATEDefault: 'B'
Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR99L00_GET_RETRO_MONTH_DIFF
LGART - List of Wage Types
Data type: SEL_LGARTOptional: No
Call by Reference: Yes
RETRO_MONTH_DIFF - Retroactive Accounting Monthly Differences
Data type: HR99LRET_S_MONTH_DIFFOptional: No
Call by Reference: Yes
EXCEPTIONS details
T500L_NOT_MAINTAINED - Table T500L is not maintained properly
Data type:Optional: No
Call by Reference: Yes
NO_READ_AUTHORITY - No read authority
Data type:Optional: No
Call by Reference: Yes
IMPORT_ERROR - Error during import
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR99L00_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, " | |||
lv_import_error | TYPE GJAHR, " | |||
lv_sel_date | TYPE P_99L_SEL_DATE. " 'B' |
  CALL FUNCTION 'HR99L00_GET_RETRO_MONTH_DIFF' "Get retroactive result differences by month |
EXPORTING | ||
PERNR | = lv_pernr | |
MONTH | = lv_month | |
YEAR | = lv_year | |
SEL_DATE | = lv_sel_date | |
TABLES | ||
LGART | = lt_lgart | |
RETRO_MONTH_DIFF | = lt_retro_month_diff | |
EXCEPTIONS | ||
T500L_NOT_MAINTAINED = 1 | ||
NO_READ_AUTHORITY = 2 | ||
IMPORT_ERROR = 3 | ||
. " HR99L00_GET_RETRO_MONTH_DIFF |
ABAP code using 7.40 inline data declarations to call FM HR99L00_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