on ‎2021 Sep 03 7:46 AM
I have no experience with SAP, but I should create a PowerShell script. I've taken a look at the SAP community and found some examples like https://blogs.sap.com/2015/09/26/how-to-use-powershell-for-automated-login-to-sap/ which explain how to log on to the SAP GUI. In addition to that, I should be able to execute a command from CLI. The command is:
.\sapshcut -system=EHD -client=102 -user=myUserName -PW=myPass -maxgui -command="va03"
Is it possible to execute this command after the logon thru the PowerShell script?
Thanks
Request clarification before answering.
Hello Stefan,
in meantime, I researched more on-site and on the Internet and found all steps to successfully perform your code example. Now I'm able to execute transaction "BAMBI" and receive/read an error. So the last step for me will be to test this approach as a background task when nobody logged on. Anyway, thank you for your help.
Best regards,
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.