ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → String Functions → Examples of String Functions
String Functions, to_mixed and from_mixed
This example demonstrates the string functions to_mixed
and from_mixed
.
Other versions: 7.31 | 7.40 | 7.54
Source Code
DATA: to_mixed TYPE string,
from_mixed TYPE string.
TRY.
SKIP.
WRITE: (12) 'original:', original.
to_mixed = to_mixed( val = original
sep = to_sep
case = to_case
min = to_min ).
SKIP.
WRITE: /(12) 'to_mixed:', to_mixed.
from_mixed = from_mixed( val = to_mixed
sep = frm_sep
case = frm_case
min = frm_min ).
SKIP.
WRITE: /(12) 'from_mixed:', from_mixed.
CATCH cx_sy_strg_par_val.
MESSAGE 'Invalid parameters' TYPE 'I' DISPLAY LIKE 'E'.
RETURN.
ENDTRY.
Description
The program queries the parameters for the functions to_mixed
and from_mixed
on the selection screen. The result of to_mixed
is edited by from_mixed
.