SAP HR_PT_SS_GET_REGIME_CODE Function Module for HR-PT: Returns Wage Types for SS Regime
HR_PT_SS_GET_REGIME_CODE is a standard hr pt ss get regime code 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-PT: Returns Wage Types for SS Regime 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 pt ss get regime code FM, simply by entering the name HR_PT_SS_GET_REGIME_CODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: 3P01
Program Name: SAPL3P01
Main Program: SAPL3P01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_PT_SS_GET_REGIME_CODE 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_PT_SS_GET_REGIME_CODE'"HR-PT: Returns Wage Types for SS Regime.
EXPORTING
P_RGCOD = "Social Security Regime Code
* P_RGSEQ = 00 "Regime Sequential Processing Number
P_ENDDA = "End Date
P_BEGDA = "Start Date
IMPORTING
P_SSPRC = "Wage Type
P_BSMIN = "Wage Type
P_BSMAX = "Wage Type
P_EECTR = "Wage Type
P_ERCTR = "Wage Type
P_RGTXT = "Description of Social Security Regimes
EXCEPTIONS
SS_REGIME_NOT_FOUND = 1
IMPORTING Parameters details for HR_PT_SS_GET_REGIME_CODE
P_RGCOD - Social Security Regime Code
Data type: T5P2Q-RGCODOptional: No
Call by Reference: Yes
P_RGSEQ - Regime Sequential Processing Number
Data type: T5P2Q-RGSEQDefault: 00
Optional: Yes
Call by Reference: Yes
P_ENDDA - End Date
Data type: T5P2Q-ENDDAOptional: No
Call by Reference: Yes
P_BEGDA - Start Date
Data type: T5P2Q-BEGDAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_PT_SS_GET_REGIME_CODE
P_SSPRC - Wage Type
Data type: T5P2Q-SSPRCOptional: No
Call by Reference: Yes
P_BSMIN - Wage Type
Data type: T5P2Q-BSMINOptional: No
Call by Reference: Yes
P_BSMAX - Wage Type
Data type: T5P2Q-BSMAXOptional: No
Call by Reference: Yes
P_EECTR - Wage Type
Data type: T5P2Q-EECTROptional: No
Call by Reference: Yes
P_ERCTR - Wage Type
Data type: T5P2Q-ERCTROptional: No
Call by Reference: Yes
P_RGTXT - Description of Social Security Regimes
Data type: T5P2Q-RGTXTOptional: No
Call by Reference: Yes
EXCEPTIONS details
SS_REGIME_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_PT_SS_GET_REGIME_CODE 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_p_rgcod | TYPE T5P2Q-RGCOD, " | |||
| lv_p_ssprc | TYPE T5P2Q-SSPRC, " | |||
| lv_ss_regime_not_found | TYPE T5P2Q, " | |||
| lv_p_bsmin | TYPE T5P2Q-BSMIN, " | |||
| lv_p_rgseq | TYPE T5P2Q-RGSEQ, " 00 | |||
| lv_p_bsmax | TYPE T5P2Q-BSMAX, " | |||
| lv_p_endda | TYPE T5P2Q-ENDDA, " | |||
| lv_p_begda | TYPE T5P2Q-BEGDA, " | |||
| lv_p_eectr | TYPE T5P2Q-EECTR, " | |||
| lv_p_erctr | TYPE T5P2Q-ERCTR, " | |||
| lv_p_rgtxt | TYPE T5P2Q-RGTXT. " |
|   CALL FUNCTION 'HR_PT_SS_GET_REGIME_CODE' "HR-PT: Returns Wage Types for SS Regime |
| EXPORTING | ||
| P_RGCOD | = lv_p_rgcod | |
| P_RGSEQ | = lv_p_rgseq | |
| P_ENDDA | = lv_p_endda | |
| P_BEGDA | = lv_p_begda | |
| IMPORTING | ||
| P_SSPRC | = lv_p_ssprc | |
| P_BSMIN | = lv_p_bsmin | |
| P_BSMAX | = lv_p_bsmax | |
| P_EECTR | = lv_p_eectr | |
| P_ERCTR | = lv_p_erctr | |
| P_RGTXT | = lv_p_rgtxt | |
| EXCEPTIONS | ||
| SS_REGIME_NOT_FOUND = 1 | ||
| . " HR_PT_SS_GET_REGIME_CODE | ||
ABAP code using 7.40 inline data declarations to call FM HR_PT_SS_GET_REGIME_CODE
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 RGCOD FROM T5P2Q INTO @DATA(ld_p_rgcod). | ||||
| "SELECT single SSPRC FROM T5P2Q INTO @DATA(ld_p_ssprc). | ||||
| "SELECT single BSMIN FROM T5P2Q INTO @DATA(ld_p_bsmin). | ||||
| "SELECT single RGSEQ FROM T5P2Q INTO @DATA(ld_p_rgseq). | ||||
| DATA(ld_p_rgseq) | = 00. | |||
| "SELECT single BSMAX FROM T5P2Q INTO @DATA(ld_p_bsmax). | ||||
| "SELECT single ENDDA FROM T5P2Q INTO @DATA(ld_p_endda). | ||||
| "SELECT single BEGDA FROM T5P2Q INTO @DATA(ld_p_begda). | ||||
| "SELECT single EECTR FROM T5P2Q INTO @DATA(ld_p_eectr). | ||||
| "SELECT single ERCTR FROM T5P2Q INTO @DATA(ld_p_erctr). | ||||
| "SELECT single RGTXT FROM T5P2Q INTO @DATA(ld_p_rgtxt). | ||||
Search for further information about these or an SAP related objects