With POST command you can insert new entries, example create time receipt, sales order or many other transactions or you can do a login
in BSL the POST support additional parameters
Example: Postman - create a login
1. Choose "POST" as command
2. In Body you must insert the JSON string
You can define additional parameter in the URL String.
Follow Parameter allowed
Parameter |
Description |
ProgramId='x' |
Name/Id of the ProgramId Make only sense, if you want to work with parameter, which defined in a WEB Program or if you need the Print solution |
AppId='x' |
Name/Id of App Make only sense, if you want to work with parameter, which defined in a WEB Program or if you need the Print solution |
async=true |
Use asynchronous mode |
Beas WEB Server is a single process. Transactions in SAP B1 take time. While the transaction is running, the WEB Server can't work on other requests.
Idea: The Beas WEB Server return only a request id and send the POST command to the Beas common service. This don't take time and the Beas WEB Service can answer next requests. The WEB client can use the RequestAnswerService to ask, if the transaction is executed and can delete the request with DEL RequestAnswerService.
Example:
(using postman)
POST http://192.168.0.16:8080/odata4/v1/Interruption?async=true
{"action":"stop",
"ResourceId":"1500",
"InterruptionId":110
}
(example response)
{"TransactionID": 2820 }
later you can read the response using the /RequestAnswerService service
GET http://192.168.0.16:8080/odata4/v1/RequestAnswerService?$filter=RequestId eq 2820
This return
- no information -> not executed
- answer from this service with all information about the executed post command
to delete the request/response use the delete command (mandatory!!!):
DELETE http://192.168.0.16:8080/odata4/v1/RequestAnswerService(2820)