on 04-27-2015 1:54 PM
Hi All
Is there a report in SAP that provides a listing of users and what licence type has been assigned to that user?
Derek
Hi,
there is no such report but you can this under Admin >>Licenses
or you can try this query on SQL
if OBJECT_ID('tempdb..#xmlLicense') is not null
DROP TABLE #xmlLicense
;
if OBJECT_ID('tempdb..#UserLicenses') is not null
DROP TABLE #UserLicenses
;
CREATE TABLE #xmlLicense
(
Id INT IDENTITY PRIMARY KEY,
XMLData XML,
LoadedDateTime DATETIME
)
CREATE TABLE #UserLicenses
(
UserID varchar(50)
, LicenseType varchar(100)
)
INSERT INTO #xmlLicense(XMLData, LoadedDateTime)
SELECT CONVERT(XML, BulkColumn) AS BulkColumn, GETDATE()
FROM OPENROWSET(BULK 'C:\Program Files (x86)\SAP\SAP Business One ServerTools\License\B1Upf.xml', SINGLE_BLOB) AS x;
DECLARE @XML AS XML, @hDoc AS INT, @SQL NVARCHAR (MAX)
SELECT @XML = XMLData FROM #xmlLicense
EXEC sp_xml_preparedocument @hDoc OUTPUT, @XML
INSERT INTO #UserLicenses
SELECT UserID
, LicenseType
FROM OPENXML(@hdoc, 'Users/User/Modules/Module')
WITH
(
UserID [varchar](50) '../../UserName'
, LicenseType [varchar](100) 'KeyDesc'
)
EXEC sp_xml_removedocument @hDoc
GO
SELECT T0.UserID, T1.U_NAME, T0.LicenseType
FROM #UserLicenses T0
LEFT OUTER JOIN OUSR T1 ON T0.UserID COLLATE DATABASE_DEFAULT = T1.USER_CODE
--Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Derek,
If you are using Sap b1 9.1 then you can see assignment tab on license administration window and you can export it to excel.
Else you can check on license administration window. No such report available.
Regards,
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.