cancel
Showing results for 
Search instead for 
Did you mean: 

UI API company object GetFormLicenseStatus

edy_simon
Active Contributor
0 Kudos

Hi,

Referring to this post https://community.sap.com/t5/enterprise-resource-planning-q-a/check-user-permission-on-form-type-for...
The original post was on 2007,
I need to use this method to check for current user form permission for my own form (NOT system form).
But I always get a 'Full' license.

var license = SBO_Application.Company.GetFormLicenseStatus("MyFormType");


Even when passing a non-existent formtype, it still returns FULL.
Anyone knows how to use this method correctly?

Regards
Edy

View Entire Topic
edy_simon
Active Contributor
0 Kudos

Hi,
I thought I leave my workaround here for others who may need.

  1. Use the Users object to iterate the UserPermission object. This should returns the permission as specified in authorization.
  2. In case the Users object throw exception due to no access rights, means current user is not granted the "Disable DI API Permission Check". Thus the Sbob.GetSystemPermission method should return the correct permission.

Thank you.