02-17-2017 6:24 AM - edited 02-04-2024 6:55 AM
How to exit the sap business one application and re login the application using UIAPI
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.