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

Exception Handling for OPEN DATA SET and CLOSE DATA SET

Hi ppl,

Can you please let me know what are the exceptions that can be handled for open, read, transfer and close data set ?

Many Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 07:10 AM

    HI,

    try this way....

    DO.

    TRY.

    READ DATASET filename INTO datatab.

    CATCH cx_sy_conversion_codepage cx_sy_codepage_converter_init

    cx_sy_file_authority cx_sy_file_io cx_sy_file_open .

    ENDTRY.

    • READ DATASET filename INTO datatab.

    • End of changes CHRK941728

    IF sy-subrc NE 0.

    EXIT.

    ELSE.

    APPEND datatab.

    ENDIF.

    ENDDO.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 07:11 AM

    HI Kishan,

    Please take the F1 help on KEY word OPEN DATASET

    All exceptions are listed and how to handle them also given there

    There you find the Perfect Answer

    Regards

    Ramchander Rao.K

    Edited by: ramchander krishnamraju on Dec 18, 2008 8:11 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 07:11 AM

    Hi Kishan,

    refer this link open-data-set-file-is-not-openning

    Regards,

    Flavay

    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.