12-03-2007 1:40 PM
Hi experts,
I have to write a file to a unix server destination which is a file path.
I can view the file when i connect through telnet. But when i try to write to that file path from SAP. I am not able to do it.
i used open dataset <filepath> for output. and the sy-subrc return was 8
how to write a file to the unix server from sap. ?
Please help.
Regards
Kothai
12-03-2007 1:47 PM
12-03-2007 1:52 PM
Hi,
To write the file to unix (app server) we need to use dataset only
This is the syntax.
open dataset 'test1.dat' for output in text mode encoding default.
Returncode:8 means file could not be opened, so please make sure you've given total path correctly (Make sure you have given forward slash in between folders) , if you still get this error it could be authorization issue.
Pavan
Message was edited by:
Pavan Kothapalli
12-03-2007 2:29 PM
Hi,
In general we ll have authorization to TMP file only. So, it should be the prob with it. Try to send it to tmp first.
regards,
Subbu