Application Development and Automation 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: 
Read only

object S_DATASETvsSPTH?

Former Member
0 Likes
480

Q] We cannot access all files from all programs wit6h reference to the concept of authorization object S_DATASET

Pls explain? What do we mean byu particular programs ?How does thi differentiates from the function of table SPTH?

1 REPLY 1
Read only

Former Member
0 Likes
425

The Authorization Object S_DATASET

The object S_DATASET consists of the following fields:

· ABAP program name -

-


enter as ZTEST1

Name of the ABAP program from which access is allowed. This allows you to restrict file access to a few programs specifically for that task.

· Activity

The possible values are:

33: Read file normally

34: Write to or delete file normally

A6: Read file with filter (operating system command)

A7: Write to file with filter (operating system command)

· File name -

-


Enter as /tmp/FILE1

Name of the operating system file. This allows you to restrict the files to which the user has access.

Using this object you are assigning authorization for particular files ( /tmp/FILE1) from particular program (ZTEST1)

Now the last part of your question

When you access sequential files on the application server using the following statements

OPEN DATASET

TRANSFER

DELETE DATASET

the system automatically checks against table SPTH.

So you can specify the general read and write access to all files specified in a Path. Here it becomes generic, because, you are not specifying any program. Again you can make it more generic by Specifying the Root Node like (/tmp) or any sub node like (/tmp/myfile) in the server.

Hope this helps.

Vinodh Balakrishnan