Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

convert string to rawstring

Former Member
0 Likes
10,133

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.

3 REPLIES 3
Read only

Former Member
4,648

There is a conversion class in SAP

In SE24 check CL_BCS_CONVERT for all conversion

I hope it helps

BR

Read only

0 Likes
4,648

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

Read only

Ruediger_Plantiko
Active Contributor
0 Likes
4,648

rawstring = cl_abap_codepage=>convert_to( string )

rawstring will then be the UTF8 version of string.