The SAP System automatically performs the following checks in operations with sequential files:
It checks the authorization object S_DATASET to see whether the current program may access the specified file.
Authorization Checks for Programs and Files
It checks in table SPTH to see whether the specified file is registered for file access from ABAP. Table SPTH also allows you to check the user’s authorization.
General Checks for File Access