Application Development 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: 

Unix server as SAP AS

Former Member
0 Kudos

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

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

1st try fm AUTHORITY_CHECK_DATASET

A.

Former Member
0 Kudos

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

Former Member
0 Kudos

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