‎2013 Jun 05 2:31 PM
hi
i am working on a rfc and here i have to convert the concatenated string to rawstring type.i.e. my internal table has got only one field and data type of that is RAWSTRING.need inputs on converting string to this formati.e. rawstring .got some function modules and classes but for vice versa case.
‎2013 Jun 05 2:37 PM
There is a conversion class in SAP
In SE24 check CL_BCS_CONVERT for all conversion
I hope it helps
BR
‎2013 Jun 05 2:39 PM
You can use STRING_TO_XSTRING method to achieve the same
XSTRING and RAWSTRING are the same.. for reference please check
http://help.sap.com/saphelp_46c/helpdata/en/d7/11322bc925d311b60f0060b03c2bff/content.htm
‎2013 Jun 05 7:38 PM
rawstring = cl_abap_codepage=>convert_to( string )
rawstring will then be the UTF8 version of string.