Skip to Content
0

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

Feb 17, 2017 at 06:24 AM

53

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER Feb 17, 2017 at 03:09 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded