Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Files decoding unther UNICODE

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.

Tags:
Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question