Merhaba SAP uzerinde calistigimiz bi toolda yaptigimiz adımlari sırayla kaydettik sistemin de kendi ozelligi sayesinde bunu koda doktu.ancak bu kod uzerinde bi kac degisiklik yapmak istiyorum.excelden copy from yorum satırı olduğu yere bır sey eklemek ıstıyorum.excele girip tool a copy paste yapmak yerine deneme isimli exceldeki a sütünunundaki degerleri seçme koduna( yapıştırma kodu sistemin kendisinde mevcut) ve bu exceli masaüstüne kaydedecek koda ihtiyacim var.
If Not IsObject(application) Then Set SapGuiAuto = GetObject("SAPGUI") Set application = SapGuiAuto.GetScriptingEngine End If If Not IsObject(connection) Then Set connection = application.Children(0) End If If Not IsObject(session) Then Set session = connection.Children(0) End If If IsObject(WScript) Then WScript.ConnectObject session, "on" WScript.ConnectObject application, "on" End If session.findById("wnd[0]").maximize session.findById("wnd[0]/tbar[0]/okcd").text = "coois" session.findById("wnd[0]/tbar[0]/btn[0]").press session.findById("wnd[0]/usr/ssub%_SUBSCREEN_TOPBLOCK:PPIO_ENTRY:1100/cmbPPIO_ENTRY_SC1100-PPIO_LISTTYP").key = "PPIOO000" session.findById("wnd[0]/usr/ssub%_SUBSCREEN_TOPBLOCK:PPIO_ENTRY:1100/ctxtPPIO_ENTRY_SC1100-ALV_VARIANT").setFocus session.findById("wnd[0]/usr/ssub%_SUBSCREEN_TOPBLOCK:PPIO_ENTRY:1100/ctxtPPIO_ENTRY_SC1100-ALV_VARIANT").caretPosition = 8 session.findById("wnd[0]").sendVKey 4 session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").currentCellRow = 6 //Layout seçimi kodu session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").selectedRows = "6" // session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").clickCurrentCell session.findById("wnd[0]/usr/tabsTABSTRIP_SELBLOCK/tabpSEL_00/ssub%_SUBSCREEN_SELBLOCK:PPIO_ENTRY:1200/ctxtS_KDAUF-LOW").setFocus session.findById("wnd[0]/usr/tabsTABSTRIP_SELBLOCK/tabpSEL_00/ssub%_SUBSCREEN_SELBLOCK:PPIO_ENTRY:1200/ctxtS_KDAUF-LOW").caretPosition = 0 session.findById("wnd[0]/usr/tabsTABSTRIP_SELBLOCK/tabpSEL_00/ssub%_SUBSCREEN_SELBLOCK:PPIO_ENTRY:1200/btn%_S_KDAUF_%_APP_%-VALU_PUSH").press //excelden copy from