点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
<html> <head> <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script> </head> <body> <h2>SAP-WEB</h2> Transaction: <input id="transaction" type="text" value="SE38"></input> User: <input id="usr" type="text" value="XXXXX"></input> Passwort: <input id="pass" type="password" value="1qaz2wsx"></input> SID: <input id="sid" type="text" value="DR0"></input> Mandant: <input id="mand" type="text" value="300"></input> <button id="go" type="button">执行!</button> <script> $(document).ready(function(){ $('#go').click(function(){ var trans = $('#transaction').val(); var usr = $('#usr').val(); var pass = $('#pass').val(); var sid = $('#sid').val(); var mand = $('#mand').val(); openSAPGui(sid, mand, usr, pass, trans); }); }); function openSAPGui(sid, client, user, password, transaction){ var shell = new ActiveXObject("WScript.Shell"); shell.run('sapshcut.exe -system="'+sid+'" -client='+client+' -user="'+user+'" -pw="'+password+'" -language=EN -Command="'+transaction+'"'); } </script> </body> </html> <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); </script> </head> <body> <p>If you click on me, I will disappear.</p> </body> </html>