cancel
Showing results for 
Search instead for 
Did you mean: 

User Authorization

Former Member
0 Kudos

Hi

I want to restrict some users for making A/R invoice with Document type as service type & some others from Item type.In this i want to find the user logon information & again compare this vale with my UDT value.If the user is a authorized then only he will make the entries.That means one system message will generated that You are not authorized.Reply me with coding hints

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This will get you the user's login name. SBO_Application is a UI Application object (SAPbouiCOM.Application).

SBO_Application.Company.UserName

This will get you the user's full name. oCompany is a DI Company object (SAPbobsCOM.ICompany).


Dim Users As SAPbobsCOM.IUsers = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUsers)
Users.GetByKey(SBO_Application.Company.UserName)
dim UserName as string = Users.UserName