Variante 1 (Typecast -> direkte Zuweisung)
DATA: lv_string TYPE string VALUE '01234567'. DATA: lv_int TYPE i. * Typecast durch direkte Zuweisung lv_int = lv_string. * Ausgabe: 1.234.567 WRITE: / lv_int.
Variante 2 (CL_ABAP_CONTAINER_UTILITIES)
* String DATA(lv_str_val) = |123|. * Int DATA(lv_int) = 0. * String -> Int cl_abap_container_utilities=>read_container_c( EXPORTING im_container = lv_str_val IMPORTING ex_value = lv_int ). WRITE: / lv_int.