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

Authorization for the user to write/read/create a file in application serve

Hi experts.

I am uploading some data to a file in a folder in application server, created in AL11 tcode.

In my program i need to restrict the unauthorized users to create/write/read a file in app server.

I dont know how to do this.

Kindly give me the code, please it wil be helpfull for you all.

I dont know how to use the auth object or function module, to do this.

Is the basis/security people need to do something.

Kindly revert me back ASAP.

KK

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 08:37 PM

    HI,

    Normally the access is controlled by the role of that particular user you need not do that.. but how every if you want to hardcode a specific path to be accessed by a specific users then you can do that .. but when it moves to production.. at the first case it will be restricted at the authorization or role of that user..so u dont need to worry about it..

    Thansk

    Mahesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI,

      if you have written in ur code that is enough.. you dont need to add to the user profile how ever..

      a person with the autorization object S_DATASET. will be able to do the changes.

      a write permission means he can create also.. when ur program reads a application file then ensure that the user as read permission

      if ur program creates a file then ensure the the user has write permissions.

      Thanks

      Mahesh

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 09:10 PM

    Hi Kiran,

    As far as i know, the access to application server directories is controlled by the system or database administraor.. This is done by the basis team..

    In your code call the function module 'PFL_CHECK_DIRECTORY' by passing the file path.. Also, you can pass the write / read check here..

    This FM will return you whether the user is authorised for the specific task or not.

    Thanks and Best Regards,

    Vikas Bittera.

    <b><REMOVED BY MODERATOR></b>

    Message was edited by:

    Alvaro Tejada Galindo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2007 at 02:52 AM

    In the key word OPEN DATASET , you can use an addition called messages (You hit F1 on open dataset and read about it). This parameter will return you all the errors which occurred during OPEN DATASET.

    You can use the same parameter to display the message.

    This addition will keep the code really simple.

    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.