SAP TELECOMMUNICATION_NUMBER_CHECK Function Module for SAPcomm: Check of a Telefax/Telex/Teletex number
TELECOMMUNICATION_NUMBER_CHECK is a standard telecommunication number 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 SAPcomm: Check of a Telefax/Telex/Teletex number 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 telecommunication number check FM, simply by entering the name TELECOMMUNICATION_NUMBER_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCOM
Program Name: SAPLSCOM
Main Program: SAPLSCOM
Appliation area: S
Release date: 26-Oct-1992
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TELECOMMUNICATION_NUMBER_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 'TELECOMMUNICATION_NUMBER_CHECK'"SAPcomm: Check of a Telefax/Telex/Teletex number.
EXPORTING
COUNTRY = "Country 'number' is located in
NUMBER = "Required partner number
SERVICE = "Service: TELEFAX, TELEX, TELETEX
EXCEPTIONS
COUNTRY_NOT_CONFIGURED = 1 NUMBER_EMPTIED = 2 NUMBER_EMPTY = 3 NUMBER_NOT_LEGAL = 4 SERVER_NOT_FOUND = 5 SERVICE_NOT_SUPPORTED = 6
IMPORTING Parameters details for TELECOMMUNICATION_NUMBER_CHECK
COUNTRY - Country 'number' is located in
Data type: ITCPP-TDTELELANDOptional: No
Call by Reference: No ( called with pass by value option)
NUMBER - Required partner number
Data type: TSKPA-TELNROptional: No
Call by Reference: No ( called with pass by value option)
SERVICE - Service: TELEFAX, TELEX, TELETEX
Data type: TSKPA-SERVICEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COUNTRY_NOT_CONFIGURED - 'COUNTRY' is not maintained in TMLVW.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_EMPTIED - The number processing was emptied.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_EMPTY - 'NUMBER' is empty.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_NOT_LEGAL - 'NUMBER' is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SERVER_NOT_FOUND - No appropriate server was found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SERVICE_NOT_SUPPORTED - 'SERVICE' is not implemented.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TELECOMMUNICATION_NUMBER_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 ITCPP-TDTELELAND, " | |||
| lv_country_not_configured | TYPE ITCPP, " | |||
| lv_number | TYPE TSKPA-TELNR, " | |||
| lv_number_emptied | TYPE TSKPA, " | |||
| lv_service | TYPE TSKPA-SERVICE, " | |||
| lv_number_empty | TYPE TSKPA, " | |||
| lv_number_not_legal | TYPE TSKPA, " | |||
| lv_server_not_found | TYPE TSKPA, " | |||
| lv_service_not_supported | TYPE TSKPA. " |
|   CALL FUNCTION 'TELECOMMUNICATION_NUMBER_CHECK' "SAPcomm: Check of a Telefax/Telex/Teletex number |
| EXPORTING | ||
| COUNTRY | = lv_country | |
| NUMBER | = lv_number | |
| SERVICE | = lv_service | |
| EXCEPTIONS | ||
| COUNTRY_NOT_CONFIGURED = 1 | ||
| NUMBER_EMPTIED = 2 | ||
| NUMBER_EMPTY = 3 | ||
| NUMBER_NOT_LEGAL = 4 | ||
| SERVER_NOT_FOUND = 5 | ||
| SERVICE_NOT_SUPPORTED = 6 | ||
| . " TELECOMMUNICATION_NUMBER_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM TELECOMMUNICATION_NUMBER_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 TDTELELAND FROM ITCPP INTO @DATA(ld_country). | ||||
| "SELECT single TELNR FROM TSKPA INTO @DATA(ld_number). | ||||
| "SELECT single SERVICE FROM TSKPA INTO @DATA(ld_service). | ||||
Search for further information about these or an SAP related objects