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

OPEN dataset getting no authority dump

Using OPEN dataset getting no authority dump.

Statement used is

-


OPEN DATASET y_filename FOR APPENDING IN TEXT MODE ENCODING DEFAULT

-


This statement is giving dump message "no authority"

y_filename has the value /usr/sap/tmp/text03012008.txt

Above mentioned file "text03012008.txt" does not exit on Application server and should be created

kindly advsie

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 03, 2008 at 07:47 AM

    As specified in online-help on instruction OPEN DATASET you have to check authority before opening any dataset.

    Use Function Module AUTHORITY_CHECK_DATASET

    Else you could try to CATCH the error OPEN_DATASET_NO_AUTHORITY

    If an error occurs, then OPEN DATASET FOR OUTPUT

    If an other error occurs, then has your user the right to create file on this directory.

    CATCH SYSTEM-EXCEPTIONS OPEN_DATASET_NO_AUTHORITY = 1.

    OPEN DATASET y_filename FOR APPENDING IN TEXT MODE ENCODING DEFAULT.

    ENDCATCH.

    IF sy-subrc = 1.

    CATCH SYSTEM-EXCEPTIONS OPEN_DATASET_NO_AUTHORITY = 1.

    OPEN DATASET y_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT

    ENDCATCH.

    ENDIF.

    IF sy-subrc = 1.

    " errror message => Contact BC team for authorization

    ENDIF.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2008 at 01:08 AM

    Are you running this in the foreground or background? Does the userID have operating system file permission to the file?

    /usr/sap/tmp/text03012008.txt

    Can you verify the application server can see this path from the console?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 06:52 AM

    Hi,

    Ur id must have Authority to create a File on App Server. If not ask the basis to give a authorization.

    Regards,

    Srinivas M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 08:51 AM

    Thanks will check with the basis team .

    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.