07-01-2008 10:15 AM
Hi ,
I receive text from Portal as xstring . Now in R/3 I need to save this as a standard text .
I can convert xstring to binary .. but how do i convert it to text to be saved as standard text.
Any idea?
07-01-2008 10:30 AM
try this which will convert the xstring to text string
data: l_convin type ref to cl_abap_conv_in_ce,
l_msgstr type string ,
l_text type xstring,
l_html type string .
try.
call method cl_abap_conv_in_ce=>create
exporting
encoding = 'UTF-8'
input = l_text " xstring content received from portal
receiving
conv = l_convin.
call method l_convin->read
importing
data = l_html.
catch cx_root.
l_msgstr = 'Conversion error'.
endtry.
07-01-2008 10:30 AM
try this which will convert the xstring to text string
data: l_convin type ref to cl_abap_conv_in_ce,
l_msgstr type string ,
l_text type xstring,
l_html type string .
try.
call method cl_abap_conv_in_ce=>create
exporting
encoding = 'UTF-8'
input = l_text " xstring content received from portal
receiving
conv = l_convin.
call method l_convin->read
importing
data = l_html.
catch cx_root.
l_msgstr = 'Conversion error'.
endtry.
07-01-2008 10:44 AM
08-11-2008 10:37 AM
hi
guru.
The above process is for converting xstring to string if possible can u give some info on converting x to c .