SAP HRGPBS_ME_YE_CHECK_CNIC Function Module for Checks for negative amounts in CNIC
HRGPBS_ME_YE_CHECK_CNIC is a standard hrgpbs me ye check cnic SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks for negative amounts in CNIC 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 hrgpbs me ye check cnic FM, simply by entering the name HRGPBS_ME_YE_CHECK_CNIC into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRGPBS_ME_YEAR_END
Program Name: SAPLHRGPBS_ME_YEAR_END
Main Program: SAPLHRGPBS_ME_YEAR_END
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRGPBS_ME_YE_CHECK_CNIC 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 'HRGPBS_ME_YE_CHECK_CNIC'"Checks for negative amounts in CNIC.
EXPORTING
I_PERNR = "Personnel number
I_TY_START = "Start of tax year
I_TY_END = "End of tax year
CHANGING
I_CHECK = "Checkbox
TABLES
IT_CNIC = "Cumulated NI Contributions
IT_ERROR = "Transfer table for HR error handling
IMPORTING Parameters details for HRGPBS_ME_YE_CHECK_CNIC
I_PERNR - Personnel number
Data type: P_PERNROptional: No
Call by Reference: Yes
I_TY_START - Start of tax year
Data type: DOptional: No
Call by Reference: Yes
I_TY_END - End of tax year
Data type: DOptional: No
Call by Reference: Yes
CHANGING Parameters details for HRGPBS_ME_YE_CHECK_CNIC
I_CHECK - Checkbox
Data type: XFELDOptional: No
Call by Reference: Yes
TABLES Parameters details for HRGPBS_ME_YE_CHECK_CNIC
IT_CNIC - Cumulated NI Contributions
Data type: PC2N2Optional: No
Call by Reference: Yes
IT_ERROR - Transfer table for HR error handling
Data type: HRERROROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRGPBS_ME_YE_CHECK_CNIC 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_it_cnic | TYPE STANDARD TABLE OF PC2N2, " | |||
| lv_i_check | TYPE XFELD, " | |||
| lv_i_pernr | TYPE P_PERNR, " | |||
| lt_it_error | TYPE STANDARD TABLE OF HRERROR, " | |||
| lv_i_ty_start | TYPE D, " | |||
| lv_i_ty_end | TYPE D. " |
|   CALL FUNCTION 'HRGPBS_ME_YE_CHECK_CNIC' "Checks for negative amounts in CNIC |
| EXPORTING | ||
| I_PERNR | = lv_i_pernr | |
| I_TY_START | = lv_i_ty_start | |
| I_TY_END | = lv_i_ty_end | |
| CHANGING | ||
| I_CHECK | = lv_i_check | |
| TABLES | ||
| IT_CNIC | = lt_it_cnic | |
| IT_ERROR | = lt_it_error | |
| . " HRGPBS_ME_YE_CHECK_CNIC | ||
ABAP code using 7.40 inline data declarations to call FM HRGPBS_ME_YE_CHECK_CNIC
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.Search for further information about these or an SAP related objects