Skip to Content

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

Open Dataset is returning sy-subrc of 8!

Hello All,

I am running the program RSEINB00 to process an inbound file but getting an error at the open dataset statement in the below code. I had checked all the conentions and standards and they are correct. What are the possible reason of getting an error. I am getting sy-subrc of 8 after trying to open the file.

form open_dataset_for_input
   using  l_filename    type edi_path-pthnam
          l_os_message  type t_os_message
          l_unicode     type edi_unicod
          l_repchar     type edi_repchr
          l_rc          type sy-subrc.

clear l_rc.
if l_unicode = c_true.
    catch system-exceptions convt_codepage_init = 9.
    open dataset l_filename for input in text mode encoding utf-8
       replacement character l_repchar message l_os_message.
    l_rc = sy-subrc.
    endcatch.
  else.
    catch system-exceptions convt_codepage_init = 9.
    *open dataset l_filename for input in text mode encoding non-unicode*
      *replacement character l_repchar message l_os_message.*
    l_rc = sy-subrc.
    endcatch.
  endif.
  if sy-subrc = 9.
    l_rc = sy-subrc.
  endif.

endform.                    " open_dataset_for_input

Here are the input values I am passing to the program RSEINB00.

*
w01dvec02\sbxedi\chgbck01*

ZCLR

Thanks.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question