How to close SAP session using UiPath?

I’m working on SAP automation and I have open one SAP window with Admin credential and I have to open another SAP GUI window using Test_User account at multiple time, so how to close SAP window for Test_User and Admin SAP window should be open.
can anyone please help me to solve this issue?

@Ankit_Chauhan

generally if same windows are open the idx would differ so try to use that and close

cheers

how to close it with Kill Process activity, can you please help me?

How to use this SAP Session Window type variable in Kill Process Activity?

@Ankit_Chauhan

Kill process cannot take output of sap window…

If you want to use kill process then after opening first window use get processes and get the opened sap process details and pass that in kill process

Cheers

Try

send the “ALT+F4” key to close the Test_User SAP window.