Hi Amit
As you know that it is a UI based automation so it will quite difficult and challenging to launch multiple instances of same application at the same time and then to differentiate between them.
Simple solution to achieve this is to create two independent objects for SAP having their own separate launch pages and application modeller.
The advantage of using this is that you will have two different instances at the same time and you can control each instance with the corresponding object.
The disadvantage is that you will not be able to use attach action as it may confuse blue prism to identify the correct instance and that will lead to the error. Each object will have control over their own instances till you detach/terminate or force close externally.
Also if you want to have more sessions, more objects needs to be created. And at this point you can see that why this solution is not recommended.
Apart from attach, there might be quite a few challenges like if you force close the process from task manager or kill process from blue prism, both instances will be closed resulting in system failure. You will not be able to use attach and detach. And this may lead to additional complex coding to stabilise the process.
Regards
Himanshu Mishra
------------------------------
Himanshu Mishra
Software developer
HCL Technologies
Asia/Kolkata
------------------------------