SAP HRCA_POSTAL_CODE_CHECK Function Module for
HRCA_POSTAL_CODE_CHECK is a standard hrca postal code check 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 hrca postal code check FM, simply by entering the name HRCA_POSTAL_CODE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBK
Program Name: SAPLHRBK
Main Program: SAPLHRBK
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRCA_POSTAL_CODE_CHECK 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 'HRCA_POSTAL_CODE_CHECK'".
EXPORTING
COUNTRY = "
* ONE_TIME_ACCOUNT = ' ' "
* POSTAL_CODE = ' ' "
* POSTAL_CODE_PO_BOX = ' ' "
* PO_BOX = ' ' "
* REGION = ' ' "
IMPORTING
POSTAL_CODE = "
EXCEPTIONS
NOT_VALID = 1
IMPORTING Parameters details for HRCA_POSTAL_CODE_CHECK
COUNTRY -
Data type: HRCA_POSTALCODE-COUNTRYOptional: No
Call by Reference: No ( called with pass by value option)
ONE_TIME_ACCOUNT -
Data type: HRCA_POSTALCODE-ONETIMEACCDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POSTAL_CODE -
Data type: HRCA_POSTALCODE-POSTALCODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POSTAL_CODE_PO_BOX -
Data type: HRCA_POSTALCODE-CODE_POBOXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PO_BOX -
Data type: HRCA_POSTALCODE-PO_BOXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REGION -
Data type: HRCA_POSTALCODE-REGIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRCA_POSTAL_CODE_CHECK
POSTAL_CODE -
Data type: HRCA_POSTALCODE-POSTALCODEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRCA_POSTAL_CODE_CHECK 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_country | TYPE HRCA_POSTALCODE-COUNTRY, " | |||
| lv_not_valid | TYPE HRCA_POSTALCODE, " | |||
| lv_postal_code | TYPE HRCA_POSTALCODE-POSTALCODE, " | |||
| lv_one_time_account | TYPE HRCA_POSTALCODE-ONETIMEACC, " SPACE | |||
| lv_postal_code | TYPE HRCA_POSTALCODE-POSTALCODE, " SPACE | |||
| lv_postal_code_po_box | TYPE HRCA_POSTALCODE-CODE_POBOX, " SPACE | |||
| lv_po_box | TYPE HRCA_POSTALCODE-PO_BOX, " SPACE | |||
| lv_region | TYPE HRCA_POSTALCODE-REGION. " SPACE |
|   CALL FUNCTION 'HRCA_POSTAL_CODE_CHECK' " |
| EXPORTING | ||
| COUNTRY | = lv_country | |
| ONE_TIME_ACCOUNT | = lv_one_time_account | |
| POSTAL_CODE | = lv_postal_code | |
| POSTAL_CODE_PO_BOX | = lv_postal_code_po_box | |
| PO_BOX | = lv_po_box | |
| REGION | = lv_region | |
| IMPORTING | ||
| POSTAL_CODE | = lv_postal_code | |
| EXCEPTIONS | ||
| NOT_VALID = 1 | ||
| . " HRCA_POSTAL_CODE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM HRCA_POSTAL_CODE_CHECK
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 COUNTRY FROM HRCA_POSTALCODE INTO @DATA(ld_country). | ||||
| "SELECT single POSTALCODE FROM HRCA_POSTALCODE INTO @DATA(ld_postal_code). | ||||
| "SELECT single ONETIMEACC FROM HRCA_POSTALCODE INTO @DATA(ld_one_time_account). | ||||
| DATA(ld_one_time_account) | = ' '. | |||
| "SELECT single POSTALCODE FROM HRCA_POSTALCODE INTO @DATA(ld_postal_code). | ||||
| DATA(ld_postal_code) | = ' '. | |||
| "SELECT single CODE_POBOX FROM HRCA_POSTALCODE INTO @DATA(ld_postal_code_po_box). | ||||
| DATA(ld_postal_code_po_box) | = ' '. | |||
| "SELECT single PO_BOX FROM HRCA_POSTALCODE INTO @DATA(ld_po_box). | ||||
| DATA(ld_po_box) | = ' '. | |||
| "SELECT single REGION FROM HRCA_POSTALCODE INTO @DATA(ld_region). | ||||
| DATA(ld_region) | = ' '. | |||
Search for further information about these or an SAP related objects