andDogs is a simple bash script to demonstrate the usage of an OData-API. Therefor the script needs an appropriate backend where the data is posted to, otherwise it will return an error. Don't use the script in productive environments as it is only a proof of concept.
Further details on the script can be found in the blog post Lieber ODATA als SAP GUI?.
The script was designed to run on Ubuntu Linux, but it should run on other distributions too. However, the following description is based on Ubuntu.
First of all install zenity
which is used to draw the dialog.
sudo apt-get install zenity
Create the configuration file conf.json
and adopt the fields to your needs
{
"LST_ART" : [{ "ID": "ACME_BH", "TEXT": "Consulting" },
{ "ID": "ACME_PH", "TEXT": "Product Development" }],
"ANAB_ART": [{"ID": "0850", "TEXT": "Internal"},
{"ID": "0800", "TEXT": "External"} ],
"PSP" : [{ "ID": "I-ACME/12", "TEXT": "Training of other Coyote" },
{ "ID": "I-ACME/11", "TEXT": "ACME Birdcage Development" } ],
"SERVICE_ENDPOINT": "https://acme.manufacturing.local/service_endpoint",
"SERVICE_USER": "Wile.E.Coyote"
}
To run the script type:
./anddogs