Skip to Content
avatar image
Former Member

How to exit the sap business one application and re login the application using UIAPI

How to exit the sap business one application and re login the application using UIAPI

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 17, 2017 at 03:09 PM

    Hi Narasimha,

    For close your SAP B1 application you can try to simulate a click on close menu with this:

    SBO_Application.ActivateMenuItem("526");

    A message will be showed to confirm the SAP B1 action, you will need simulate a click on the confirmation button.

    After this you won't have an ui api connection established.

    To start a new SAP B1 instance you can use the ProcessStartInfo class from .NET Framework

    http://stackoverflow.com/questions/9679375/run-an-exe-from-c-sharp-code

    But after this will be necessary that the user provide the credential for SAP B1.

    Maybe someone else in this board have some better approach.

    Hope it helps.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded