Skip to Content
author's profile photo Former Member
Former Member

Unix server as SAP AS

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 03, 2007 at 01:47 PM

    1st try fm AUTHORITY_CHECK_DATASET

    A.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.