‎2008 Jan 16 6:28 AM
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?
‎2008 Jan 16 9:12 PM
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