Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

In OPEN DATASET statement to open a file

Former Member
0 Kudos

In OPEN DATASET statement

To open a file, the user under which the R/3 System is running must have the requisite authorizations at operating system level.

How to do this ? what knowledge apart from ABAP do I need ?

what is its requirement in prograqmming domain?


Former Member
0 Kudos


You can consult Basis people to get this authorization for OS folders for your login ID.

From programming point of view, you need to put OPEN DATASET keyword inside try...catch block to avoid the short dump due to authorization issue as below.


open dataset <....>

catch CX_SY_FILE_AUTHORITY into wa_error.

w_text = wa_error->IF_MESSAGE~GET_TEXT.

write:/ w_text.


hope that helps