CL_BCS_CONVERT
RAW_TO_XSTRING
TXT_TO_SOLIX
TXT_TO_STRING
TXT_TO_XSTRING
STRING_TO_SOLI
STRING_TO_SOLIX
STRING_TO_XSTRING
SOLI_TO_SOLIX
XSTRING_TO_SOLIX
SOLIX_TO_XSTRING
HTMLBIN_TO_HTMLTXT
XSTRING_TO_STRING
data: lt_soli type soli_tab,
lv_codepage type abap_encod,
lv_add_bom type os_boolean,
lt_solix type solix_tab,
lv_size_i type i,
lv_size type so_obj_len,
lv_string type string,
lv_xstring type xstring.
data: lv_CPCODEPAGE type CPCODEPAGE.
try.
call method cl_bcs_convert=>raw_to_solix
exporting
it_soli = lt_soli
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
importing
et_solix = lt_solix
ev_size = lv_size.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>raw_to_string
exporting
it_soli = lt_soli
receiving
ev_string = lv_string.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>raw_to_xstring
exporting
it_soli = lt_soli
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
receiving
ev_xstring = lv_xstring.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>txt_to_solix
exporting
it_soli = lt_soli
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
iv_size = lv_size_i
importing
et_solix = lt_solix
ev_size = lv_size.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>txt_to_string
exporting
it_soli = lt_soli
iv_size = lv_size_i
receiving
ev_string = lv_string.
endtry.
try.
call method cl_bcs_convert=>txt_to_xstring
exporting
it_soli = lt_soli
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
iv_size = lv_size_i
receiving
ev_xstring = lv_xstring.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>string_to_soli
exporting
iv_string = lv_string
receiving
et_soli = lt_soli.
endtry.
try.
call method cl_bcs_convert=>string_to_solix
exporting
iv_string = lv_string
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
importing
et_solix = lt_solix
ev_size = lv_size.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>string_to_xstring
exporting
iv_string = lv_string
iv_convert_cp = `X`
iv_codepage = lv_codepage
iv_add_bom = lv_add_bom
receiving
ev_xstring = lv_xstring.
catch cx_bcs .
endtry.
try.
call method cl_bcs_convert=>soli_to_solix
exporting
it_soli = lt_soli
receiving
et_solix = lt_solix
.
catch cx_bcs .
endtry.
call method cl_bcs_convert=>solix_to_xstring
exporting
it_solix = lt_solix
iv_size = lv_size_i
receiving
ev_xstring = lv_xstring
.
call method cl_bcs_convert=>xstring_to_string
exporting
iv_xstr = lv_xstring
iv_cp = lv_CPCODEPAGE
receiving
rv_string = lv_string
.