Agnostic Guides
Developers Guide

Link Enterprise BAPI Web Services

1min

Link Enterprise provides two end points to access SAP BAPI's. Using the GET request on the "any" endpoint we can retrieve what data is available to the developer. Link Enterprise BAPI web services use basic authorization with a default username: admin, and a default password: admin. Ensure SSL cert validation is disabled prior to accessing the web services.



The following examples can be imported into Insomnia Rest Client via this link: https://gimmal.box.com/s/em0ckv2zarcai15cr5az6rewxvfw18p5

For example using a get request, https://localhost:82/bapi/any?bapi=BAPI_INCOMINGINVOICE_CREATE would return the following data below:

https://jsoneditoronline.org/#left=cloud.b9e0a63872034234850ac9de5709b564

We can use this response to learn what all the available fields/data are available in that particular bapi.

To send data to BAPI_INCOMINGINVOICE_CREATE we would send a post request to https://localhost:82/bapi/any using the json body included in this link:

https://jsoneditoronline.org/#left=cloud.dbd7f72e2ade41eab9301c17081b2a04

You should see the following json response here

https://jsoneditoronline.org/#left=cloud.73c35d070cb546f683dc05e82865cac1

Notice in the export parameters the response given from the BAPI that was executed

Document image




Another example is given here with BAPI_PO_CHANGE using post.

https://jsoneditoronline.org/#left=cloud.b9a0aeb968344aeb94b1153ca69b1959

and it's corresponding response,

https://jsoneditoronline.org/#left=cloud.d6ef93f919e443d7a8153c1fd6b856ec



Common tables to look at for response from SAP are the return table, and the export parameters.