SAP CEVA_CONVERT_FIELDS Function Module for NOTRANSL: FLOAT- und CHAR-Felder zur Anzeige umwandeln (mit Overflow-Check









CEVA_CONVERT_FIELDS is a standard ceva convert fields SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: FLOAT- und CHAR-Felder zur Anzeige umwandeln (mit Overflow-Check 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 ceva convert fields FM, simply by entering the name CEVA_CONVERT_FIELDS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CEVA
Program Name: SAPLCEVA
Main Program: SAPLCEVA
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CEVA_CONVERT_FIELDS 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 'CEVA_CONVERT_FIELDS'"NOTRANSL: FLOAT- und CHAR-Felder zur Anzeige umwandeln (mit Overflow-Check
EXPORTING
* ATAWE_IMP = ' ' "Alternative unit of measure
* ATFOR_IMP = ' ' "Format (CHAR, NUM or similar)
ATINN_IMP = "Characteristic number
* ATWRT_IMP = ' ' "CHAR field (entry)
FLOAT_IMP = "Floating field (entry)
FORMAT_IMP = "Formatting field e.g.: a P10/4 field
* MSEHI_IMP = ' ' "Normal quantity unit
* ROUND_IMP = ' ' "Rounding category ' X+-'

IMPORTING
CHAR_EXP = "Character field (output)
MSEHI_EXP = "Output of the quantity unit
OVERFLOW_EXP = "Flag X: overflow occurred
.



IMPORTING Parameters details for CEVA_CONVERT_FIELDS

ATAWE_IMP - Alternative unit of measure

Data type: COMW-ATAWE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ATFOR_IMP - Format (CHAR, NUM or similar)

Data type: COMW-ATFOR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ATINN_IMP - Characteristic number

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

ATWRT_IMP - CHAR field (entry)

Data type: COMW-ATWRT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLOAT_IMP - Floating field (entry)

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

FORMAT_IMP - Formatting field e.g.: a P10/4 field

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

MSEHI_IMP - Normal quantity unit

Data type: COMW-ATAWE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROUND_IMP - Rounding category ' X+-'

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

EXPORTING Parameters details for CEVA_CONVERT_FIELDS

CHAR_EXP - Character field (output)

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

MSEHI_EXP - Output of the quantity unit

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

OVERFLOW_EXP - Flag X: overflow occurred

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

Copy and paste ABAP code example for CEVA_CONVERT_FIELDS 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_char_exp  TYPE STRING, "   
lv_atawe_imp  TYPE COMW-ATAWE, "   SPACE
lv_atfor_imp  TYPE COMW-ATFOR, "   SPACE
lv_msehi_exp  TYPE COMW, "   
lv_atinn_imp  TYPE COMW-ATINN, "   
lv_overflow_exp  TYPE COMW, "   
lv_atwrt_imp  TYPE COMW-ATWRT, "   SPACE
lv_float_imp  TYPE COMW, "   
lv_format_imp  TYPE COMW, "   
lv_msehi_imp  TYPE COMW-ATAWE, "   SPACE
lv_round_imp  TYPE COMW. "   ' '

  CALL FUNCTION 'CEVA_CONVERT_FIELDS'  "NOTRANSL: FLOAT- und CHAR-Felder zur Anzeige umwandeln (mit Overflow-Check
    EXPORTING
         ATAWE_IMP = lv_atawe_imp
         ATFOR_IMP = lv_atfor_imp
         ATINN_IMP = lv_atinn_imp
         ATWRT_IMP = lv_atwrt_imp
         FLOAT_IMP = lv_float_imp
         FORMAT_IMP = lv_format_imp
         MSEHI_IMP = lv_msehi_imp
         ROUND_IMP = lv_round_imp
    IMPORTING
         CHAR_EXP = lv_char_exp
         MSEHI_EXP = lv_msehi_exp
         OVERFLOW_EXP = lv_overflow_exp
. " CEVA_CONVERT_FIELDS




ABAP code using 7.40 inline data declarations to call FM CEVA_CONVERT_FIELDS

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 ATAWE FROM COMW INTO @DATA(ld_atawe_imp).
DATA(ld_atawe_imp) = ' '.
 
"SELECT single ATFOR FROM COMW INTO @DATA(ld_atfor_imp).
DATA(ld_atfor_imp) = ' '.
 
 
"SELECT single ATINN FROM COMW INTO @DATA(ld_atinn_imp).
 
 
"SELECT single ATWRT FROM COMW INTO @DATA(ld_atwrt_imp).
DATA(ld_atwrt_imp) = ' '.
 
 
 
"SELECT single ATAWE FROM COMW INTO @DATA(ld_msehi_imp).
DATA(ld_msehi_imp) = ' '.
 
DATA(ld_round_imp) = ' '.
 


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!