Skip to Content
author's profile photo Former Member
Former Member

Data Transfer with APD in UTF-8 format

Hello Experts,

I am facing a situation where I need to transfer data from our Unicode BW system to the external system which accepts data only in UTF-8 format.

I have created an APD and I am storing the result file on the application server of the BW system where the external system picks up the data. The problem arises when the target system is unable to read the file as it is in unicode format or UTF-16. Only when I manually save the file as UTF-8 type I can transfer the file to target which it can read. I need to avoid this manual intervention.

Does anyone have a better way of doing this activity.

I will highly appreciate a good reply or a solution.

Thanks,

Rohit

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 09:55 AM

    Hi,

    Which command you are using to open file ?

    Regards

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2010 at 01:57 PM

    Hi Rohit,

    if you transfer the data with

    OPEN DATASET IN TEXT MODE ENCODING UTF-8

    the system is using UTF-8 as code page for the file and you can pick up the data as desired.

    Best regards,

    Nils Buerckel

    SAP AG

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2010 at 07:49 AM

    Hi Rohit,

    using OPEN DATASET is the standard way to download data in an ABAP program.

    Please have a look at the standard help for a description.

    However I guess it does not help you ...

    Can you please describe your specific problem in more detail ?

    What exactly are you doing when you say

    'giving the encoding as UTF-8' ?

    Do you convert the data or add a BOM (Byte order mark) ?

    Regards,

    Nils Buerckel

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Rohit,

      AL11 should already save the file in UTF-8 format in a Unicode system.

      Therefore I think it should also work without your manual change.

      Did you examine the file with an Hex-editor (before and after change) ?

      Then you might be able to see the delta ...

      Best regards,

      Nils Buerckel

      SAP AG

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.