SAP CATT_NUMBER_TO_NAMEPREFIX Function Module for
CATT_NUMBER_TO_NAMEPREFIX is a standard catt number to nameprefix 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 catt number to nameprefix FM, simply by entering the name CATT_NUMBER_TO_NAMEPREFIX into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKC2
Program Name: SAPLKKC2
Main Program: SAPLKKC2
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CATT_NUMBER_TO_NAMEPREFIX 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 'CATT_NUMBER_TO_NAMEPREFIX'".
EXPORTING
NUMBER = "Integer
CONVERTING_MODE = "
IMPORTING
STRING = "Result String
EXCEPTIONS
NUMBER_TOO_LARGE = 1 WRONG_CONVERTING_MODE = 2
IMPORTING Parameters details for CATT_NUMBER_TO_NAMEPREFIX
NUMBER - Integer
Data type: SY-INDEXOptional: No
Call by Reference: No ( called with pass by value option)
CONVERTING_MODE -
Data type: SY-BINPTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CATT_NUMBER_TO_NAMEPREFIX
STRING - Result String
Data type: CAT_DAT_IO-P01Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NUMBER_TOO_LARGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CONVERTING_MODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CATT_NUMBER_TO_NAMEPREFIX 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_number | TYPE SY-INDEX, " | |||
| lv_string | TYPE CAT_DAT_IO-P01, " | |||
| lv_number_too_large | TYPE CAT_DAT_IO, " | |||
| lv_converting_mode | TYPE SY-BINPT, " | |||
| lv_wrong_converting_mode | TYPE SY. " |
|   CALL FUNCTION 'CATT_NUMBER_TO_NAMEPREFIX' " |
| EXPORTING | ||
| NUMBER | = lv_number | |
| CONVERTING_MODE | = lv_converting_mode | |
| IMPORTING | ||
| STRING | = lv_string | |
| EXCEPTIONS | ||
| NUMBER_TOO_LARGE = 1 | ||
| WRONG_CONVERTING_MODE = 2 | ||
| . " CATT_NUMBER_TO_NAMEPREFIX | ||
ABAP code using 7.40 inline data declarations to call FM CATT_NUMBER_TO_NAMEPREFIX
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 INDEX FROM SY INTO @DATA(ld_number). | ||||
| "SELECT single P01 FROM CAT_DAT_IO INTO @DATA(ld_string). | ||||
| "SELECT single BINPT FROM SY INTO @DATA(ld_converting_mode). | ||||
Search for further information about these or an SAP related objects