Code Monkey home page Code Monkey logo

abapops's Introduction

abapops

ABAP Operation Tools available as the Docker image filaksap/abapops

Tools

Infrastructure

  • PyRFC 2.0.1
  • Python 3.7
  • Node.js 12.15.0

Usage

docker pull filaksap/abapops

cd /var/tmp
git clone https://github.com/larshp/abapGit
cd abapGit

DOCKER_RUN="docker run -i --rm -v $(pwd):/repo --workdir /repo"

${DOCKER_RUN} filaksap/abapops abapmerge -f src/zabapgit.prog.abap > zabapgit_full.prog.abap

SAPCLI_ENV="-e SAP_HOST=172.17.0.2 -e SAP_CLIENT=001 -e SAP_SID=NPL -e SAP_PORT=8000 -e SAP_SSL=no -e SAP_USER=DEVELOPER -e SAP_PASSWORD=****"

${DOCKER_RUN} ${SAPCLI_ENV} filaksap/abapops sapcli package create '$abapgit' 'Git client by Lars Hvam'
${DOCKER_RUN} ${SAPCLI_ENV} filaksap/abapops sapcli program create zabapgit 'compiled abapgit' '$abapgit'
${DOCKER_RUN} ${SAPCLI_ENV} filaksap/abapops sapcli program write -a - zabapgit_full.prog.abap

RFC

To be able to use RFC features of sapcli you must provide SAP NetWeaver RFC SDK libraries.

These libraries are listed in the PyRFC installation manual and can be found on file system of your ABAP server.

The container expects the libraries at /usr/local/sap/nwrfcsdk/lib.

Of course, it is much simpler to create your own docker image with the libraries bundled instead of passing them via a volume.

docker pull filaksap/abapops

DOCKER_RUN="docker run -i --rm -v /path/to/the/nw_rfc_sdk_libs:/usr/local/sap/nwrfcsdk/lib"

SAPCLI_ENV="-e SAP_HOST=172.17.0.2 -e SAP_SYSNR=00 -e SAP_CLIENT=001 -e SAP_SID=NPL -e SAP_USER=DEVELOPER -e SAP_PASSWORD=****"

${DOCKER_RUN} ${SAPCLI_ENV} filaksap/abapops sapcli startrfc STFC_CONNECTION '{"REQUTEXT":"ping"}'

Find more examples how to utilize sapcli for running RFC function modules in sapcli's startrfc documentation

abapops's People

Contributors

filak-sap avatar msfeghouli 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.