본문 바로가기
RPA

SAP VBA 사용할 때

by Sol95 2023. 5. 3.
728x90

SAP VBA로 작업 시 최상단에 아래 내역이 있어야 SAP에서 VBA작업 진행 가능합니다.

 

Dim SapGuiAuto As Object
Dim App As Object
Dim Connection As Object
Dim session As Object
    
Set SapGuiAuto = GetObject("SAPGUI")
Set App = SapGuiAuto.GetScriptingEngine
Set Connection = App.Children(0)
Set session = Connection.Children(0)

728x90
반응형

댓글