cancel
Showing results for 
Search instead for 
Did you mean: 

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

narasimha_chary2
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor
0 Kudos

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

Answers (0)