Giter Club home page Giter Club logo

py-sapgui-automation's Introduction

SAP GUI Automation via Python Scripting

Tools needed to test things out:

  • VS Code - to edit python scripts and run them
  • Python Extension for VS Code
  • Python installed on your computer
  • SAP Scripting Tracker
  • win32com python module installed

This VSCode tutorial can help get you set up with VS Code, Python Extension for VS Code, and Python Installation:

https://code.visualstudio.com/docs/python/python-tutorial

SAP Scripting Tracker:

https://tracker.stschnell.de/#download

Enable Scripting in application server and presentation server

Application Server
  • Login to SAP
  • Go to tcode RZ11
  • Param. Name: sapgui/user_scripting, click Display
  • Ensure Current Value is equal to TRUE
  • If value not TRUE
    • Press Change Value button
    • New value: TRUE
    • Switch on all servers: Checked
    • Save
Presentation Server
  • On SAP Logon Pad, click the top left menu button, and select Options...
  • Open the Accessibility & Scripting Node
  • Select Scripting node
  • Ensure the Installation Section says "Scripting is installed"
  • Ensure the User Settings section has
    • Enable Scripting - Checked
    • Notify when a script attaches to SAP GUI - Unchecked
    • Notify when a script opens a connection - Unchecked
    • Show native Microsoft Windows dialogs - Unchecked

Additional details about SAP Scripting Tracker can be found in the documentation within the download

Installing win32com python module

  • Open command line or terminal
  • pip install py32com
  • If it was installed successfully, it should be available to use in your scripts

Running this script

Pull this repo into your VS Code editor, and follow the directions in https://code.visualstudio.com/docs/python/python-tutorial

Note: You must login to an SAP session, for the scripting to work. As you can see there is not login credentials supplied to the python scripting

py-sapgui-automation's People

Contributors

colbyhemond avatar

Stargazers

Marco Beier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.