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

error to open a net directory with abap

Hi gurus.

I have created a report that executes a process chain when a file exits in one net directory.

The report runs the function module EPS_GET_DIRECTORY_LISTING to obtain the list of files in the directory, but it returns always the exception u201Cread_directory_failedu201D. The open dataset instruction returns the same error.

I have tried to open the directory from windows explorer and it runs fine, so, I donu2019t think that the error is the authorization.

I have created a record in the al11 transaction with the path but the transaction returns u201CWrong order of calls <- CALL opendir(,,..) Nº message: S1204u201D.

Can anybody help me?

Thanks in advantage.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 22, 2011 at 01:13 PM

    Hi Javier,

    first of all: If the net directory can be reached from PC, it can usually not be reached, at least not using the same name, from SAP server.

    Functions like WS_upload/download(obsoltete), GUI_upload/download can be used in online process connected to local SAPGUI.

    OPEN/READ/TRANSFR dataset is for access of files from SAP server, online, background.

    If the access is via GUI, then the file/directory access must be granted to the local PC user, for access from SAP server the current SAP user needs the rights to access the file/directory.

    Please discuss this with basis administrator, she may check the access rights on server and client side.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2011 at 06:26 PM

    Is your file stored in unix directory in Application server? If yes, how did you give the directory name? Does it have a '/' at the end. It should be like /SAPOUT/HR/PAYROLL/.

    Its usually throws that error when we miss the last '/' or when there is no unix directory by that name.

    If your file is in your local PC you should use, function GUI_UPLOAD.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 05:35 PM

    The problem Was the authority between servers.

    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.