Application Development 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: 

String to XString Conversion

Former Member
0 Kudos

Dear all,

It may be simple question for u?

I want to know how to convert string to xsting?

Please ASAP.

Thanks in advance.

Best Regards,

Prasad.

3 REPLIES 3

Former Member
0 Kudos

Hello Prasad,

Use the FM : SCMS_STRING_TO_XSTRING

Regards,

Deepu.K

Former Member
0 Kudos

Hi Prasad,

i think that below example gives u an idea,

convert string to xstring

call function 'SCMS_STRING_TO_XSTRING'

exporting

text = t_result

  • MIMETYPE = ' '

  • ENCODING =

importing

buffer = result.

  • EXCEPTIONS

  • FAILED = 1

  • OTHERS = 2

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Plz rewards points if heilful,

Ganesh..

Former Member
0 Kudos

Hi,

Many thanks for ur quick replies.

Actually problem is, I am working on 4.6C and the suggested Function Modules are not available with it.

So, any another way out for this?

Thanks in advance.

Best regards,

Prasad