Presentation is loading. Please wait.

Presentation is loading. Please wait.

beas script Basic knowledge for consultants Ana Bracho

Similar presentations


Presentation on theme: "beas script Basic knowledge for consultants Ana Bracho"— Presentation transcript:

1 beas script Basic knowledge for consultants Ana Bracho
Beas Product Owner

2 Agenda Beas script introduction Project Folder Beas script editor
Agenda Beas script introduction Project Folder Beas script editor Beas form events Beas script reference Fields simple customization

3 Beas script Introduction
BEASCOMMON is an application component system, Programming language for any applications within the range of data bases. BEASCOMMON is completely written with 4G-Language “SAP Sybase Powerbuilder 12.5 (R)” programming language. But you don't need to know PowerBuilder Syntax since BEASCOMMON uses its own Script Syntax.

4 Beas Database Access Beas ODBC: beas_sap 06.09.2018
BEAS will basically write to SBO-Tables via the DI-API Every Read Access will be done via the ODBC Layer. Also all Read / Write access to BEAS-Tables will be done via ODBC Layer

5 SRC Files and project folder
SRC Files and project folder Project SRC File

6 Beas Addon screen Add-on administration Project Folder

7 Script Editor Debug windows 06.09.2018
There is no detailed documentation about the windows events. Instead, there is a debug window in which are presented all events and functions. Accessible is it through SAP view information system resp. in a be.as-Form with Ctrl+N+D Then, enter "windowevent" into the field "filter". be.as works only with small letters !! The corresponding windowevents are logged, if a window is opened or closed, the mouse-button is somewhere clicked, windows saved or loaded. Customized changes are now made via EXTRA / customer specific enhancements resp.in the be.as-Form Ctrl+N+U. It opens an editor. An example: Open an article list: Ctrl+N+U Enter in the editor: windowevent open message=hello world end event Save, open window again - now appears this message when you open.

8 How to run beas script Project Windows Event (Beas Form) Windows Event
How to run beas script Project Windows Event (Beas Form) Windows Event (Beas Form) Program Event (User event) Beas Beas Common Table Beas Services (scheduled task) External Program Add-on Connector

9 Beas form Events windowevent open //your code end event open postopen
Beas form Events open BEFORE construction of the form postopen AFTER construction of the form del BEFORE delete new AFTER New update WHEN doing an Update (after UpdateScript but before DWUpdate) itemchange <columnname> AFTER Item value changes click <objectname> left mouse-click rclick <objectname> right mouse-click close BEFORE closing the form. If it returns failure the form is not closed windowevent open //your code end event Syntaxis windowevent open //your code end event

10 Beas script on beas Form
Beas script on beas Form Types BEASMELDUNG popup a message in a new window FEHLER Error message in foot-line SQL SQL message (SQL-Code and SQL-Errtext) in foot line WARNUNG Warning (in SBO in blue) in foot line INFO as warning OK ok message in the foot line. You need no message message=ok$ok QUESTION With a Yes / No Question. Return value: No = -1 Yes = 1 QUESTION-NO Like Question but default = No (only PowerScript) Text return the translated Text in variable value Message Example messagebox=sql$nrxxx$<textmessage> Display an SQL error messagebox=fehler$nrxxxx$<textmessaeg> Display an error messagebox=warnung$nrxxxx$<textmessage> Display warning-Message (blue Message) messagebox=info$this is my warnig-Message messagebox=text$nrxxx$<textmessage> translate Textmessage and set translated Text in Variable value messagebox=text$testnumber$das ist der deutsche Text messagebox=beasmeldung$value messagebox=beasmeldung$<textmessage> output the message in a new form If you do not need an translation and the message is not declined by the source text scanner, then you can use the following syntax. messagebox=**$text in own language messagebox=My Message messagebox=<types>$<meldenummer>$my message

11 Place holder and variables
Place holder and variables Set value Setitem Setvar Get value Between less and greater than symbols <variable> Apply a format: (numeric or date format) <variable,num()>, Item (field at the screen) Variables System Syntaxis

12 Create Objects text Button Dropdown
Create Objects text Button Dropdown create=text=property1=valor,property2=valor Syntaxis

13 sql=select * from oitm SQL Statement
To read fields values: <wert1> <wert2> …..

14 tools=isql=<sql-statement or procedure>
ISQL Object tools=isql=<sql-statement or procedure>

15 Customizing fields with double click
Customizing fields with double click Crtl + Double Click Customzing Text- or Columnfield. beas will save this in the window-src-File in the project-folder

16 Future: B1 up and Beas integration
resize AFTER resizing a form. Only if the variable sys_resize is "c" Future: B1 up and Beas integration The new B1UP integration is optimized for beas and allows you to: Easily customize options for business processes  Flexibly format with conditional options Add and move fields easier Add buttons, right-click menu and icons  Define conditions and events  It will be released in beas 9.3 (February 2018).

17 Beas script help document and videos
Beas script help document and videos

18 Go to the system.

19


Download ppt "beas script Basic knowledge for consultants Ana Bracho"

Similar presentations


Ads by Google