Skip to Content

GetSystemPermission always returns 1 when authorization "Disable DI API Permission Check" has full authorization

Hi everyone,

i've encountered a problem with the function GetSystemPermission in SAP 9.1 PL08.

It seems that there is a new SAP authorization called "Disable DI API Permission Check" wich prevents GetSystemPermission from getting correct results, it always return 1.

So i've got 2 questions about this:

1. Shouldn't the authorization handled more in a positiv way like "Enable DI API Permission", because this can lead to massive problems when using the GetSystemPermission function when this function is deactivated by Default for every new and existent user in SAP

2. Did i missed that GetSystemPermission ist obsolet and there is a new way to check user permissions?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 28, 2015 at 02:42 AM

    Hi Thilo,

    The Disable DI API permission check is to by pass the permission restriction when the user is using the DI API object.

    Thus, when this is set to Full Authorization, All permission will returns Read/Write enabled (1) and this DI API user will have access like a super user.

    in view of the above, i think i should agree with you that we should be able to check the 'original' state of permission even though the 'Disable DI API permission check' is turned on, with this we could at least control our add on behaviour.

    Regards

    Edy

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ad,

      Please take a look at REFDI.chm search for SetSystemPermission.

      Seems like we can set it, but the permission lists does not list out the ID for this permission.

      Not sure if it is not updated, or they intentionally not disclosing it.

      If you ever find what the ID is, please do share it with us.

      Note, I believe only a superuser can set this though.

      Regards
      Edy

  • Posted on Sep 04 at 08:38 AM

    Hello.
    I have the same problem in SAP 9.2 PL 07...
    I have a scenario, where i'm using the method "GetSystemPermission", to see if a user as permission to a Price List Group, and the method should return 2 and it returns 1 allways...
    The result is allways the same, when "Disable DI API permission check" is Full Authorization, ou any other value... And this is a real problem, because my costumer as an addon to change automatically the price in same price lists, but not all users have full permissions...
    Can anyone help?

    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.