Open SAP transaction directly with command line parameter in Application Modeller

Gausus

New Member
Hello everyone,

I saw a possibility to open a SAP transactions directly without start/login in SAP Logon with the command line parameters in the Application Modeller.

Can someone explain to me what kind of code is needed or write me the code to open transaction ME51N in P1A.

Thanks and have a nice day!
Christian
 

sahil_raina_91

Active Member
You can do that via sapshcut.exe. Please research about the command.

As as starting point, the following command will launch/login SAP and open TCODE = SM37
start sapshcut.exe -system={SYSID} -client={CLIENTID} -user={USERNAME} -pw={PASSWORD} -language=EN -maxgui -Command=SM37 (Type this in Command Prompt after editing the SYSID,CLIENTID,USERNAME,PASSWORD values)

You can then utilize Start-Process action in Utility - Environment VBO to launch cmd and pass the above as an argument.
 

Gausus

New Member
sapshcut opened and asked for the password. I also asked my colleague which is responsible for sap and we dont have passwords. It is an automatically log in
 
Top