‎2009 Jan 13 2:04 AM
Hi there,
I need to send a FM parameter type xstring from another FM parameter type RAW, how can I assign this RAW field to a xstring field?
thanks.
‎2009 Jan 13 2:18 AM
try this fm
SCMS_binary_to_xstring
see this sap help too
http://help.sap.com/saphelp_47x200/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm
also see this code
data:lv_xstr type xstring,
lt_xmlr type sdokcntbins,
ls_xmlr type sdokcntbi,.
lo_conv type ref to cl_abap_conv_obj.
create object lo_conv.
loop at lt_xmlr into ls_xmlr.
call method lo_conv->convert
exporting
inbuff = ls_xmlr
outbufflg = 25000
importing
outbuff = lv_xstr.Edited by: kartik tarla on Jan 13, 2009 7:49 AM
‎2009 Jan 13 4:13 AM
hi,
Check this Code..
DATA :
contents_hex LIKE solix OCCURS 0 WITH HEADER LINE,
conv TYPE REF TO cl_abap_conv_out_ce,
l_buffer TYPE xstring,
l_hexa(510) type x.
call function 'SO_RAW_TO_RTF'
TABLES
objcont_old = contents_raw
objcont_new = contents_bin.
LOOP AT contents_bin.
conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
CALL METHOD conv->write( data = contents_bin-line ).
l_buffer = conv->get_buffer( ).
move l_buffer to l_hexa.
move l_hexa to contents_hex-line.
APPEND contents_hex.
ENDLOOP.
‎2009 Apr 02 2:09 PM
Hi...
check this code:
data: it_pdf TYPE w3mimetabtype,
w3mime TYPE LINE OF w3mimetabtype,
xdata TYPE xstring.
LOOP AT it_pdf INTO w3mime.
CONCATENATE xdata w3mime-line INTO xdata IN BYTE MODE.
ENDLOOP.Regards,
Mauro Laranjeira