SAP HR_GBSXP_MSA_OFFSETS Function Module for Derive offsetting values of OSP v SSP and OMP v SMP
HR_GBSXP_MSA_OFFSETS is a standard hr gbsxp msa offsets SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Derive offsetting values of OSP v SSP and OMP v SMP 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 gbsxp msa offsets FM, simply by entering the name HR_GBSXP_MSA_OFFSETS into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRGB_MSA
Program Name: SAPLHRGB_MSA
Main Program: SAPLHRGB_MSA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_GBSXP_MSA_OFFSETS 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_GBSXP_MSA_OFFSETS'"Derive offsetting values of OSP v SSP and OMP v SMP.
EXPORTING
P_PERNR = "Personnel Number
P_MOLGA = "Country Grouping
* P_BEGDA = '18000101' "Date
* P_ENDDA = '99991231' "Date
P_SW_PROT = "Checkbox
TABLES
P_MSA = "Maternity and Sickness Absences (GB)
P_ERROR = "Transfer Structure with all Sy Fields for T100
P_PLOG_TEXT = "Structure for HR Function Log
* P_OMSA = "Maternity and Sickness Absences (GB)
P_WPBP = "Payroll Results: Work Center/Basic Pay
P_P0088 = "HR Master Record for Infotype 0088
P_ADOPTION_OFFSETS = "Amount to offset on a particular day
P_MATERNITY_OFFSETS = "Amount to offset on a particular day
P_PATERNITY_OFFSETS = "Amount to offset on a particular day
P_TRANSFER_OFFSETS = "Amount to offset on a particular day
P_SICKNESS_OFFSETS = "Amount to offset on a particular day
IMPORTING Parameters details for HR_GBSXP_MSA_OFFSETS
P_PERNR - Personnel Number
Data type: P_PERNROptional: No
Call by Reference: No ( called with pass by value option)
P_MOLGA - Country Grouping
Data type: MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
P_BEGDA - Date
Data type: DATUMDefault: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_ENDDA - Date
Data type: DATUMDefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_SW_PROT - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_GBSXP_MSA_OFFSETS
P_MSA - Maternity and Sickness Absences (GB)
Data type: PC27JOptional: No
Call by Reference: No ( called with pass by value option)
P_ERROR - Transfer Structure with all Sy Fields for T100
Data type: EDIMESSAGEOptional: No
Call by Reference: No ( called with pass by value option)
P_PLOG_TEXT - Structure for HR Function Log
Data type: PLOG_TEXTOptional: No
Call by Reference: Yes
P_OMSA - Maternity and Sickness Absences (GB)
Data type: PC27JOptional: Yes
Call by Reference: Yes
P_WPBP - Payroll Results: Work Center/Basic Pay
Data type: PC205Optional: No
Call by Reference: No ( called with pass by value option)
P_P0088 - HR Master Record for Infotype 0088
Data type: P0088Optional: No
Call by Reference: Yes
P_ADOPTION_OFFSETS - Amount to offset on a particular day
Data type: P08P_MSA_OFFSETSOptional: No
Call by Reference: Yes
P_MATERNITY_OFFSETS - Amount to offset on a particular day
Data type: P08P_MSA_OFFSETSOptional: No
Call by Reference: Yes
P_PATERNITY_OFFSETS - Amount to offset on a particular day
Data type: P08P_MSA_OFFSETSOptional: No
Call by Reference: Yes
P_TRANSFER_OFFSETS - Amount to offset on a particular day
Data type: P08P_MSA_OFFSETSOptional: No
Call by Reference: Yes
P_SICKNESS_OFFSETS - Amount to offset on a particular day
Data type: P08P_MSA_OFFSETSOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_GBSXP_MSA_OFFSETS 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_p_msa | TYPE STANDARD TABLE OF PC27J, " | |||
lv_p_pernr | TYPE P_PERNR, " | |||
lt_p_error | TYPE STANDARD TABLE OF EDIMESSAGE, " | |||
lt_p_plog_text | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
lt_p_omsa | TYPE STANDARD TABLE OF PC27J, " | |||
lv_p_molga | TYPE MOLGA, " | |||
lt_p_wpbp | TYPE STANDARD TABLE OF PC205, " | |||
lv_p_begda | TYPE DATUM, " '18000101' | |||
lv_p_endda | TYPE DATUM, " '99991231' | |||
lt_p_p0088 | TYPE STANDARD TABLE OF P0088, " | |||
lv_p_sw_prot | TYPE XFELD, " | |||
lt_p_adoption_offsets | TYPE STANDARD TABLE OF P08P_MSA_OFFSETS, " | |||
lt_p_maternity_offsets | TYPE STANDARD TABLE OF P08P_MSA_OFFSETS, " | |||
lt_p_paternity_offsets | TYPE STANDARD TABLE OF P08P_MSA_OFFSETS, " | |||
lt_p_transfer_offsets | TYPE STANDARD TABLE OF P08P_MSA_OFFSETS, " | |||
lt_p_sickness_offsets | TYPE STANDARD TABLE OF P08P_MSA_OFFSETS. " |
  CALL FUNCTION 'HR_GBSXP_MSA_OFFSETS' "Derive offsetting values of OSP v SSP and OMP v SMP |
EXPORTING | ||
P_PERNR | = lv_p_pernr | |
P_MOLGA | = lv_p_molga | |
P_BEGDA | = lv_p_begda | |
P_ENDDA | = lv_p_endda | |
P_SW_PROT | = lv_p_sw_prot | |
TABLES | ||
P_MSA | = lt_p_msa | |
P_ERROR | = lt_p_error | |
P_PLOG_TEXT | = lt_p_plog_text | |
P_OMSA | = lt_p_omsa | |
P_WPBP | = lt_p_wpbp | |
P_P0088 | = lt_p_p0088 | |
P_ADOPTION_OFFSETS | = lt_p_adoption_offsets | |
P_MATERNITY_OFFSETS | = lt_p_maternity_offsets | |
P_PATERNITY_OFFSETS | = lt_p_paternity_offsets | |
P_TRANSFER_OFFSETS | = lt_p_transfer_offsets | |
P_SICKNESS_OFFSETS | = lt_p_sickness_offsets | |
. " HR_GBSXP_MSA_OFFSETS |
ABAP code using 7.40 inline data declarations to call FM HR_GBSXP_MSA_OFFSETS
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.DATA(ld_p_begda) | = '18000101'. | |||
DATA(ld_p_endda) | = '99991231'. | |||
Search for further information about these or an SAP related objects