
Today we will see how we can execute OS command from SAP GUI frontend.
Run Report RSBDCOS0
T-code:SE38 ->RSBDCOS0

Report will take you to the input screen:

Output will be like OS level command:

Prerequisite For Executing OS Command from SAP Front end
Check if environment variable ComSpec set correctly for SAPService<SID> which is used to start SAP.
You may refer 1988042.
If prerequisites are not met, we might run into errorcode-1 after executing any command.