SAP ISP_POSTBOX_CHECK Function Module for IS-M/SD: Check Correctness of Postal Data for PO Boxes
ISP_POSTBOX_CHECK is a standard isp postbox check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/SD: Check Correctness of Postal Data for PO Boxes 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 isp postbox check FM, simply by entering the name ISP_POSTBOX_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: JSS1
Program Name: SAPLJSS1
Main Program: SAPLJSS1
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISP_POSTBOX_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 'ISP_POSTBOX_CHECK'"IS-M/SD: Check Correctness of Postal Data for PO Boxes.
EXPORTING
LAND1 = "Country
* ORTNAME = ' ' "Location
PFACH = "PO Box
PLZ_PB = "
* PLZ_ADDON_PB = "IS-M: Extension to 5-Character ZIP Code (PO Box)
* POSTORT = ' ' "
* GUELTIGAB_IN = "
* GUELTIGBIS_IN = "
IMPORTING
FLG_SUCCESS = "
ORTNAME = "Location
PFACH = "PO Box
PLZ_PB = "
POSTORT = "
REGION = "Federal State
GUELTIGAB_OUT = "
GUELTIGBIS_OUT = "
PLZ_ADDON_PB = "IS-M: Extension to 5-Character ZIP Code (PO Box)
EXCEPTIONS
INVALID_INPUT = 1 NO_SUCH_POSTBOX_FOUND = 2 NO_SUCH_POSTCODE_FOUND = 3 NO_SUCH_TOWN_FOUND = 4 PLZART_CONFLICT = 5 PLZ_KEINEM_ORT_ZUGEORDNET = 6
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLJSS1_001 IS-M/SD: DB Optimization
EXIT_SAPLJSS1_010 Find Street Using Short Text from Street File
IMPORTING Parameters details for ISP_POSTBOX_CHECK
LAND1 - Country
Data type: JSTORTPRO-LAND1Optional: No
Call by Reference: No ( called with pass by value option)
ORTNAME - Location
Data type: JGTSADR-ORT01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PFACH - PO Box
Data type: JGTSADR-PFACHOptional: No
Call by Reference: No ( called with pass by value option)
PLZ_PB -
Data type: JGTSADR-PSTL2Optional: No
Call by Reference: No ( called with pass by value option)
PLZ_ADDON_PB - IS-M: Extension to 5-Character ZIP Code (PO Box)
Data type: JGTSADR-PSTL2_ADDONOptional: Yes
Call by Reference: No ( called with pass by value option)
POSTORT -
Data type: JSTORTPRO-ALORTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GUELTIGAB_IN -
Data type: JSTORTPRO-GUELTIGABOptional: Yes
Call by Reference: No ( called with pass by value option)
GUELTIGBIS_IN -
Data type: JSTORTPRO-GUELTIGBISOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISP_POSTBOX_CHECK
FLG_SUCCESS -
Data type: JSTPOFPRO-X_FEHLEROptional: No
Call by Reference: No ( called with pass by value option)
ORTNAME - Location
Data type: JGTSADR-ORT01Optional: No
Call by Reference: No ( called with pass by value option)
PFACH - PO Box
Data type: JGTSADR-PFACHOptional: No
Call by Reference: No ( called with pass by value option)
PLZ_PB -
Data type: JGTSADR-PSTL2Optional: No
Call by Reference: No ( called with pass by value option)
POSTORT -
Data type: JSTORTPRO-ALORTOptional: No
Call by Reference: No ( called with pass by value option)
REGION - Federal State
Data type: T005S-BLANDOptional: No
Call by Reference: No ( called with pass by value option)
GUELTIGAB_OUT -
Data type: JSTORTPRO-GUELTIGABOptional: No
Call by Reference: No ( called with pass by value option)
GUELTIGBIS_OUT -
Data type: JSTORTPRO-GUELTIGBISOptional: No
Call by Reference: No ( called with pass by value option)
PLZ_ADDON_PB - IS-M: Extension to 5-Character ZIP Code (PO Box)
Data type: JGTSADR-PSTL2_ADDONOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_INPUT - Invalid Entries
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SUCH_POSTBOX_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SUCH_POSTCODE_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SUCH_TOWN_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PLZART_CONFLICT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PLZ_KEINEM_ORT_ZUGEORDNET - Postal code is not assigned to a city
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISP_POSTBOX_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_land1 | TYPE JSTORTPRO-LAND1, " | |||
| lv_flg_success | TYPE JSTPOFPRO-X_FEHLER, " | |||
| lv_invalid_input | TYPE JSTPOFPRO, " | |||
| lv_ortname | TYPE JGTSADR-ORT01, " | |||
| lv_ortname | TYPE JGTSADR-ORT01, " SPACE | |||
| lv_no_such_postbox_found | TYPE JGTSADR, " | |||
| lv_pfach | TYPE JGTSADR-PFACH, " | |||
| lv_pfach | TYPE JGTSADR-PFACH, " | |||
| lv_no_such_postcode_found | TYPE JGTSADR, " | |||
| lv_plz_pb | TYPE JGTSADR-PSTL2, " | |||
| lv_plz_pb | TYPE JGTSADR-PSTL2, " | |||
| lv_no_such_town_found | TYPE JGTSADR, " | |||
| lv_postort | TYPE JSTORTPRO-ALORT, " | |||
| lv_plz_addon_pb | TYPE JGTSADR-PSTL2_ADDON, " | |||
| lv_plzart_conflict | TYPE JGTSADR, " | |||
| lv_region | TYPE T005S-BLAND, " | |||
| lv_postort | TYPE JSTORTPRO-ALORT, " SPACE | |||
| lv_plz_keinem_ort_zugeordnet | TYPE JSTORTPRO, " | |||
| lv_gueltigab_in | TYPE JSTORTPRO-GUELTIGAB, " | |||
| lv_gueltigab_out | TYPE JSTORTPRO-GUELTIGAB, " | |||
| lv_gueltigbis_in | TYPE JSTORTPRO-GUELTIGBIS, " | |||
| lv_gueltigbis_out | TYPE JSTORTPRO-GUELTIGBIS, " | |||
| lv_plz_addon_pb | TYPE JGTSADR-PSTL2_ADDON. " |
|   CALL FUNCTION 'ISP_POSTBOX_CHECK' "IS-M/SD: Check Correctness of Postal Data for PO Boxes |
| EXPORTING | ||
| LAND1 | = lv_land1 | |
| ORTNAME | = lv_ortname | |
| PFACH | = lv_pfach | |
| PLZ_PB | = lv_plz_pb | |
| PLZ_ADDON_PB | = lv_plz_addon_pb | |
| POSTORT | = lv_postort | |
| GUELTIGAB_IN | = lv_gueltigab_in | |
| GUELTIGBIS_IN | = lv_gueltigbis_in | |
| IMPORTING | ||
| FLG_SUCCESS | = lv_flg_success | |
| ORTNAME | = lv_ortname | |
| PFACH | = lv_pfach | |
| PLZ_PB | = lv_plz_pb | |
| POSTORT | = lv_postort | |
| REGION | = lv_region | |
| GUELTIGAB_OUT | = lv_gueltigab_out | |
| GUELTIGBIS_OUT | = lv_gueltigbis_out | |
| PLZ_ADDON_PB | = lv_plz_addon_pb | |
| EXCEPTIONS | ||
| INVALID_INPUT = 1 | ||
| NO_SUCH_POSTBOX_FOUND = 2 | ||
| NO_SUCH_POSTCODE_FOUND = 3 | ||
| NO_SUCH_TOWN_FOUND = 4 | ||
| PLZART_CONFLICT = 5 | ||
| PLZ_KEINEM_ORT_ZUGEORDNET = 6 | ||
| . " ISP_POSTBOX_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM ISP_POSTBOX_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 LAND1 FROM JSTORTPRO INTO @DATA(ld_land1). | ||||
| "SELECT single X_FEHLER FROM JSTPOFPRO INTO @DATA(ld_flg_success). | ||||
| "SELECT single ORT01 FROM JGTSADR INTO @DATA(ld_ortname). | ||||
| "SELECT single ORT01 FROM JGTSADR INTO @DATA(ld_ortname). | ||||
| DATA(ld_ortname) | = ' '. | |||
| "SELECT single PFACH FROM JGTSADR INTO @DATA(ld_pfach). | ||||
| "SELECT single PFACH FROM JGTSADR INTO @DATA(ld_pfach). | ||||
| "SELECT single PSTL2 FROM JGTSADR INTO @DATA(ld_plz_pb). | ||||
| "SELECT single PSTL2 FROM JGTSADR INTO @DATA(ld_plz_pb). | ||||
| "SELECT single ALORT FROM JSTORTPRO INTO @DATA(ld_postort). | ||||
| "SELECT single PSTL2_ADDON FROM JGTSADR INTO @DATA(ld_plz_addon_pb). | ||||
| "SELECT single BLAND FROM T005S INTO @DATA(ld_region). | ||||
| "SELECT single ALORT FROM JSTORTPRO INTO @DATA(ld_postort). | ||||
| DATA(ld_postort) | = ' '. | |||
| "SELECT single GUELTIGAB FROM JSTORTPRO INTO @DATA(ld_gueltigab_in). | ||||
| "SELECT single GUELTIGAB FROM JSTORTPRO INTO @DATA(ld_gueltigab_out). | ||||
| "SELECT single GUELTIGBIS FROM JSTORTPRO INTO @DATA(ld_gueltigbis_in). | ||||
| "SELECT single GUELTIGBIS FROM JSTORTPRO INTO @DATA(ld_gueltigbis_out). | ||||
| "SELECT single PSTL2_ADDON FROM JGTSADR INTO @DATA(ld_plz_addon_pb). | ||||
Search for further information about these or an SAP related objects