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: 

Files decoding unther UNICODE

Former Member
0 Kudos

Hi,

I have attachments in xstrings. I'm getting them through WebServices from another non-SAP system.

I need to decode them before putting in one of the Workplace folders in SAP.

The problem is I can't do it unther UNICODE system.

Unther non-UNICODE i use:

CONV = CL_ABAP_CONV_IN_CE=>CREATE( INPUT = ATTCH_WA-CONTENT ).
CONV->READ( importing DATA = CONTENT LEN = CLEN ).

But unther UNICODE I get:

<b>CX_SY_CONVERSION_CODEPAGE</b>

<i>Bei der Konvertierung eines Textes von Codepage '4110' nach Codepage

'4103' wurde</i>

In attachments i have many types of files: txt, doc, xls, jpg and many others.

None of them is decoded in the right way.

I tried many dofferent codepages anf FMs to do this but it's just not working...

Please help if You have any ideas.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use of data types X and XSTRING should be avoided if your system is using unicode.

Because of the difference of length for coding characters between ascii and unicode, conversion is not possible.

You should try to use other data types to solve your problem.

Hope this helps.

Regards,

Nicolas.

1 REPLY 1

Former Member
0 Kudos

Hi,

Use of data types X and XSTRING should be avoided if your system is using unicode.

Because of the difference of length for coding characters between ascii and unicode, conversion is not possible.

You should try to use other data types to solve your problem.

Hope this helps.

Regards,

Nicolas.