on 11-23-2007 9:48 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.