Skip to Content

Licensing issue while company connection in SAP B1 9.0

Hi All,

Recently I have installed SAP B1 9.0 in my development environment and started development using DI API SDK.I am written this code for company connection given in the SAP Sample SDK but it is giving the below error

error code : 100000048

error description : No SAP licenses

I have checked SAP forum and people are saying it is for license issue. But I think I have all the license. I am attaching my license screenshot below . Where I have doubt is that in the component section it is showing that no license is allocated for Software Development Kit but SAP implementer is saying that he has allocated all the necessary license. Please see the attached screenshot and below code sample to suggest if there is any mistake in license allocation or coding.

SAPbobsCOM.Company oCompany = new Company();

oCompany.Server = "ITSL-VM-PC5";

oCompany.language = BoSuppLangs.ln_English;

oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2008;//_serverConfig.ServerIp;

oCompany.DbUserName = "sa";

oCompany.DbPassword = "C0llecti0n";

oCompany.CompanyDB = "SBODemoIN";

oCompany.UserName = "manager";

oCompany.Password = "manager";

int f = oCompany.Connect();

int errcode = oCompany.GetLastErrorCode();

string str = oCompany.GetLastErrorDescription();

Thanks and Regards

Utpal Maity

License2.JPG (50.6 kB)
License1.JPG (55.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on May 27, 2013 at 12:25 PM

    Hi All,

    Just for your information even the sample program downloaded with B1DE source code is giving the same error in the same lines of code.

    Thanks and Regards

    Utpal Maity

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Utpal,

      At last.. 😉..

      I was actually debugging some connection problem on my side also.

      I am not using the B1DE because of testing the new features in SBO 9 UI API.

      My UI connected but DI was not connected and the problem was the file....

      So, I was trying on my machine while guiding you... hahaahaaa...

      Cheers

      Edy

  • Posted on May 27, 2013 at 04:55 AM

    Hi Utpal,

    Where is line in the code to set the LicenseServer. ? You also need to set it.

    Hope it helps..

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2013 at 05:33 AM

    Hi Utpal,

    You have not set the oCompany.LicenseServer

    Regards

    Edy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 08:52 AM

    Hi All,

    This is a continuation of the above problem in a different scenario. I am trying to initialize my company connection in the below way but in SAP 9.0 it is not working.

    int retCode = 0;

    string connStr = string.Empty;

    B1WizardBase.B1Connections.ConnectionType cnxType = B1WizardBase.B1Connections.ConnectionType.SSO;

    //string addOnIdentifierStr = "5645523035446576656C6F706D656E743A503038303831363933323527AA00E7CE085573E102B8C27928B27F62F40C56";

    string addOnIdentifierStr = string.Empty;

    if ((System.Environment.GetCommandLineArgs().Length == 1))

    {

    connStr = B1Connections.connStr;

    }

    else

    {

    connStr = System.Environment.GetCommandLineArgs().GetValue(1).ToString();

    }

    retCode = B1Connections.Init(connStr, addOnIdentifierStr, cnxType);

    // CONNECTION FAILED

    if ((retCode != 0))

    {

    System.Windows.Forms.MessageBox.Show("ERROR - Connection failed: " + B1Connections.diCompany.GetLastErrorDescription());

    return;

    }

    But it is returning error code : 100000004

    and error description : Unknown session

    We have used B1DE for developing this code version B1DE 2.2 for SAP 8.8. Is that a cause?

    Thanks and Regards

    Utpal Maity

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.