If you want to perform in Beas a data exchange to an external product via a web interface, it can be accomplished with the "Open Data Protocol" (OData) integrated in BEAS which is supported by BSL.
To test itself developed API's, you need a tool such as e. g. Postman. Here will be immediately showing the results after entering the commands.
You
- have to install Postman (downloadable via https://www.postman.com/downloads/)
- need the Beas Web-Server
1.1. Beas Web Server
Run the Web Server to get a connection from Postman to the Beas:
Define/Check the Port and start the Server.
Normally you need an authorization to connect to the BEAS data. For the simplification, this can be turned off.
1.1. Postman
After the Installation of Postman you can work in an easy way via ODATA to move Data from and to Beas.
Data sections are:
- Administration
- Business Partners
- Warehouse Management
- Production
- Quality Management
- Personnel
- Transactions Documents
Detailed objects are described in the Beas Script Manual in section:
Beas Service Layer -> BSL Reference
When using commands in Postman is to pay attention to the IP address and port with those in the
BEAS Web server.
The following subchapters describe an example of working with the BSL Object Item of Warehouse Management.
1.2.1 Get
With "GET" data can be retrieved.
The following simple example retrieves data (ItemCode, ItemName) out of the Item table to an item "SE0110".
In the field “Value” you can add further existing fields
In area “Body” you see the results as JSON script of the retrieve via the “GET” command.
1.2.1 POST
With "POST" data can be inserted (or updated) into the Item Master Data.
Only for this object also an update is possible if the Item is already existing.
(For the insert of items, means new creation, the system takes always a copy from a default item, which is to define in configuration wizard!!)
1.2.1.1 POST (creation of a new Item)
Example for creation of a new Item. For this case the Item “N005” is not existing before.
1.2.1.1 POST (update of an Item)
Example for updating an Item. For this case the Item “N003” is existing.
Comments
0 comments
Please sign in to leave a comment.