SAP UI-API

Working with SAP Business One SDK - User Interface API

 

The SAP Business One UI API provides a programmatic interface to SAP Business One through a set of fully functional user interface.

Over BeasScript  it is possible to use the UI-API.

 

How to insert your custom functionality:

 

Open debug window (Level 1)

Open the SAP Form

sbo_ui_api_example1

 

In the debug window you can see all events triggered by SAP.

NOTE: Do not use windowevents. This only available for compatibility. Take the global function instead.

 

If you make a double-click on the globalfunction, the system opens a script window and here you can insert your code directly.

To add/change elements, use event form_clicked()

sap-ui-api_example2

 

BS Form

BS Item

BS Create objects

BS Right Click