SAP TRANSLATE_CODEPAGE_EXCEPT Function Module for









TRANSLATE_CODEPAGE_EXCEPT is a standard translate codepage except 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 translate codepage except FM, simply by entering the name TRANSLATE_CODEPAGE_EXCEPT into the relevant SAP transaction such as SE37 or SE38.

Function Group: F110
Program Name: SAPLF110
Main Program: SAPLF110
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TRANSLATE_CODEPAGE_EXCEPT 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 'TRANSLATE_CODEPAGE_EXCEPT'"
EXPORTING
* I_EXCEPT = "

CHANGING
* C_FROM = "
* C_TO = 1100 "

TABLES
T_DATA = "
.



IMPORTING Parameters details for TRANSLATE_CODEPAGE_EXCEPT

I_EXCEPT -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for TRANSLATE_CODEPAGE_EXCEPT

C_FROM -

Data type: TCP00-CPCODEPAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

C_TO -

Data type: TCP00-CPCODEPAGE
Default: 1100
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TRANSLATE_CODEPAGE_EXCEPT

T_DATA -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TRANSLATE_CODEPAGE_EXCEPT 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_c_from  TYPE TCP00-CPCODEPAGE, "   
lt_t_data  TYPE STANDARD TABLE OF TCP00, "   
lv_i_except  TYPE TCP00, "   
lv_c_to  TYPE TCP00-CPCODEPAGE. "   1100

  CALL FUNCTION 'TRANSLATE_CODEPAGE_EXCEPT'  "
    EXPORTING
         I_EXCEPT = lv_i_except
    CHANGING
         C_FROM = lv_c_from
         C_TO = lv_c_to
    TABLES
         T_DATA = lt_t_data
. " TRANSLATE_CODEPAGE_EXCEPT




ABAP code using 7.40 inline data declarations to call FM TRANSLATE_CODEPAGE_EXCEPT

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 CPCODEPAGE FROM TCP00 INTO @DATA(ld_c_from).
 
 
 
"SELECT single CPCODEPAGE FROM TCP00 INTO @DATA(ld_c_to).
DATA(ld_c_to) = 1100.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!