07-15-2009 7:31 AM
Hello All,
I am getting error as 'Permission Denied' (sy-subrc = 😎 while writing the text to txt file which is present on server. I am tried using --
OPEN DATASET pa_upld FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE error_message.
IF sy-subrc <> 0.
WRITE : / sy-subrc, error_message.
EXIT.
ENDIF.
Can anybody faced the same problem??
FYI.. The following statement is working fine while reading the contents of the file.
OPEN DATASET pa_upld FOR INPUT IN TEXT MODE ENCODING DEFAULT.
Any help??
Thanks in Advance,
Prashant
07-15-2009 7:35 AM
Hi,
You may not have WRITE authorizations for the server file . Check with your BASIS team
Regards
07-15-2009 7:35 AM
Hi,
You may not have WRITE authorizations for the server file . Check with your BASIS team
Regards
07-15-2009 7:48 AM
Can you please provide me help regarding "How to give write permission/authorizations for the server file".
Currently i can able to perform read operation on server file.
Thanks,
Prashant
07-15-2009 7:35 AM
Hi,
I think you dont have access for get the file from the Application server.
go to the AL11 tcode , double click on the folder , it will says you do u have acess or not?
regards,
Rama reddy
07-15-2009 7:43 AM
Hello Ram,
On which folder should i double click?
For writing the file , in which location my file should be located?
Thanks,
Prashant
07-15-2009 7:50 AM
Hi,
This may be a authorization issue. Either your ID should have role SAP_ALL or the other role with the authorization object S_DATASET (Authorization for file access) with write access.
The activity read and write is separate. May be you have only read assigned to your ID
Regards
07-15-2009 7:37 AM
May be you opened the file but not closed then try to open it the same file you get this type of error. Pls chk.
07-15-2009 7:41 AM
Hello Raghava and Alexander,
Thanks for your prompt reply .
I have closed the file using statement.
CLOSE DATASET pa_upld.
Regards,
Prashant
07-15-2009 7:38 AM
hi,
check that opened dataset be closed or not
and also check may be another person may work on that one.
regards.
07-15-2009 7:55 AM
07-15-2009 7:55 AM
Saving the file in the usr folder of the server solves the problem.