cancel
Showing results for 
Search instead for 
Did you mean: 

How to locate Installation Number and System Number

former_member609283
Participant
0 Kudos

Hello Everyone,

    How can I locate Installation number and system number in Database, in which table this information is saving?? as i want to use them for my own License logic.

For your reference below is the screenshot

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

What they said ^^

former_member251860
Discoverer
0 Kudos

In SAP 9.1 is:

String installationId = SAPbouiCOM.Framework.Application.SBO_Application.Company.InstallationId;

String systemId = SAPbouiCOM.Framework.Application.SBO_Application.Company.SystemId;

Former Member
0 Kudos

i think u can get little bit information from oula..

plz check it .

if it's wrong plz ignore it..

Former Member
former_member609283
Participant
0 Kudos

Hey Srinivas,

   But I can't get Installation Number and System Number using this class. How can I get them?? as Its giving me an error of "Error HRESULT E_FAIL has returned from a call to a COM component".

Here is the code for your reference:

string x = null;

            string x2 = null;

            string Hkey=null;

            string Hkeys = null;

            SBOLICENSELib.LicenseInfo lic = new SBOLICENSELib.LicenseInfo();

           lic.GetHardwareKey(out Hkey); // This working FINE

            lic.GetInstallationNumber(out Hkeys); //Its giving me the above error

            lic.GetSystemNumber(out Hkey11); // Same goes with it, its giving me the above error

            x = Hkey;

            x2 = Hkeys;

            label1.Text = x;

            label2.Text = x2;

Regards,

Idrees

Former Member
0 Kudos

Hi ,

Have you try this :

string InstallationId =  SBO_Application.Company.InstallationId ;

string SystemNum =  SBO_Application.Company.SystemId ;

Hope it helps .

Regards