Beas Script is an interpreter and integrated in Beas
A Beas Script Script editor is available in the Beas Application
Open the script editor with Tools -> Customizing Tools -> Script editor
If you start Beas outside SAP Business One, you can open the editor with Crtl+N+S
Beas Script Style
command=property[linefeed]
• | Commands and properties are connected with the = sign. |
• | Lines of code are closed with a linefeed. |
• | Properties are separated by , (coma). |
• | <tab> is used as a placeholder. |
• | Long lines can be broken in the editor for better visibility using the & character at the end of the line for line continuation. |
• | Beas script is case sensitive, use lower case characters. |
The first program has to display a messagebox "Hello world"
messagebox="Hello World"
Insert this and click on the "running man" symbol
Script editor from Debug window
Alternative is the debug window
1. | Open the debugger from View>System Information or with CTRL+Shift+I. |
2. | Use the Script tab to enter the command: messagebox=hello world |
Debugger Script Tab
3. | Click the Execute button. This executes the whole script or, if lines are selected, the selected lines only. |
4. | The result of the script is immediately visible and the Protocol tab shows the executed lines. |
Script Result
Beas Script is always window based.
If you execute a script, then all commands executed in this window. It's not possible to create macro script.