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

Open Dataset non-unicode & default

Currently im using the open dataset with default then it hit a codepage error. I found out that the file contained characters that is not UTF-8 so when i changed the open dataset to non-unicode the codepage error goes away. Im wondering if there is any effect of changing from default to non-unicode.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 21, 2011 at 09:22 AM

    if your function keys working properly then please hit the 'F1' key on OPEN DATASET and read the SAP help of Open dataset-mode.

    Cheers

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2011 at 11:25 AM

    Hi,

    it sounds interesting that the error occurs with UTF-8 only (normally I would expect it vice versa) ...

    Usually it depends on what you want to do with the created file.

    SAP recommendation would be to use UTF-8, because then you can download most of the existing characters without problems (e.g. Chinese data and Russian data in one file).

    In case of Non-Unicode, you are restricted to one code page (defined by logon language) and you will get an error once you need to download other characters (e.g. the u20AC-sign).

    Can you describe which characters cause the error ?

    Best regards,

    Nils Buerckel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2011 at 12:19 PM
     
    OPEN DATASET P_AFILE FOR INPUT IN TEXT MODE ENCODING DEFAULT ignoring conversion errors.
    

    ADD ignoring conversion errors to ur prg

    and should be unicode.

    hope it will help you.

    Regards,

    sinagam.

    Edited by: Venkata Pavan Sinagam on Sep 23, 2011 5:50 PM

    Add a comment
    10|10000 characters needed characters exceeded

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.