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.
cancel
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?

1 REPLY 1

Former Member
0 Kudos

Hi,

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.

try.

open dataset <....>

catch CX_SY_FILE_AUTHORITY into wa_error.

w_text = wa_error->IF_MESSAGE~GET_TEXT.

write:/ w_text.

endtry.

hope that helps