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

String to XString Conversion

Former Member
0 Likes
646

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
Read only

Former Member
0 Likes
481

Hello Prasad,

Use the FM : SCMS_STRING_TO_XSTRING

Regards,

Deepu.K

Read only

Former Member
0 Likes
481

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..

Read only

Former Member
0 Likes
481

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