system.betamodus 
 | 
x 
 | 
  
 | 
return true, if beta mode is active 
gapp.of_mget("betamodus","N") J/N 
 | 
system.common 
 | 
x 
 | 
  
 | 
return true, if common service is active   
if gapp.of_common()=1=active / 0=not active 
 | 
system.helponline 
 | 
  
 | 
x 
 | 
Open online help system 
You can define the link 
system.helponline=mychapter#myanker 
 | 
system.databasetype 
 | 
x 
 | 
  
 | 
Return MSSQL or HANA - defined fix in the program self gapp.is_databasetype 
 | 
system.debug 
 | 
x 
 | 
x 
 | 
Return current Debug Level : messagebox=<system.debug> gapp.is_debug 
As function follow functionality is available 
Function 
 | 
Description 
 | 
 
on 
 | 
activate the debug 
system.debug=on 
 | 
 
off 
 | 
disable debug, but don't close it 
 | 
 
close 
 | 
close debug window 
 | 
 
level=[0...2] 
 | 
define debug level 
In this way you can change the level inside your script 
system.debug=level=2 
.... my script 
system.debug=level=1 
 | 
 
html 
 | 
return debug log as html in variable "<value>" 
system.debug=html 
messagebox=<value> 
 | 
 
html=<variablename> 
 | 
return debug log as html in variable "<variablename>" 
system.debug=html=debughtml 
messagebox=<debughtml> 
 | 
 
htmlfile=<filename> 
 | 
Create a debugfile in html format in the specified file 
system.debug=htmlfile=c:\debug\debug.html 
 | 
 
mirror 
 | 
Create a mirror from main information of current window 
in this way you can see "inside" of the function in this moment 
system.debug=mirror 
 | 
 
 
 
 | 
 
 
 
 | 
system.desingfolder 
 | 
x 
 | 
  
 | 
Folder from icons for current design gapp.is_pf_design 
 | 
system.devmode 
 | 
x 
 | 
  
 | 
return true, if development mode is active gapp.ib_entwicklung 
 | 
system.enablemenuitem.XXX 
 | 
x 
 | 
  
 | 
Enable a menuUID, this function works in both environment (beas standalone and beas into SAP) 
 | 
system.eventname.x 
 | 
x 
 | 
  
 | 
  
<system.eventname.1> = Doubleclick 
<system.eventname.2> = Form load and so on 
 | 
 
 
 
 | 
system.exit[=true/false] 
system.kill[=true/false] 
 | 
  
 | 
x 
 | 
system.exit --> try to close all windows and close application 
system.exit=true --> asks if application should be closed 
system.kill --> close application immediately  without closing the open windows 
system.kill=true --> asks if application should be closed 
 | 
 
 
 
 | 
system.form 
system.window 
 | 
x 
 | 
x 
 | 
  
system.windows.count -> return count of active windows 
system.windows.id -> return dropdown value (name=id) from all current active windows 
system.windows.dwname -> return dropdown value (name=name) from all current active windows 
 | 
 
 
 
  
  
system.form.[name].setfocus 
 | 
Window becomes the focus 
Example 
system.form.artikel_browse.setfocus 
 | 
 
 
 | 
 
 | 
 
 
 
 | 
 
 
 
 | 
system.insidesap 
 | 
x 
 | 
  
 | 
Started inside SAP true / false gapp.is_beasgui true/false 
 | 
system.project 
 | 
x 
 | 
  
 | 
Return current Project Name (for customizing)  gapp.is_mandant 
 | 
system.qualtitycontrol 
 | 
x 
 | 
  
 | 
truern true, if quality mode is active. You can set this in  gapp.ib_qualitycontrol 
beas.ini - CONNECT - qualitycontrol=y   
 | 
system.servermodus 
 | 
x 
 | 
  
 | 
return true, if servermodus is activated. In this mode beas don't display any messages and don't open question or other modal forms. 
  
you can set this with 
app=servermodus=true/false gapp.il_servermode 0/1 
 | 
system.location 
 | 
x 
 | 
x 
 | 
current location (web app - print solution) gapp.is_location beas 9.3 PL 2 
 | 
system.app_id 
 | 
x 
 | 
x 
 | 
current running app id (web app - print solution) gapp.is_app_id beas 9.3 PL 2 
 | 
system.session_id 
 | 
x 
 | 
x 
 | 
web app session id gapp.is_session_id beas 9.3 PL 2 
 | 
system.sessionname 
 | 
x 
 | 
x 
 | 
Current Windows Session Name gapp.is_sessionname 
return the station name, which beas is using for current session gapp.is_stationname 
 | 
system.stationnameinfo 
 | 
x 
 | 
  
 | 
describe, in which way beas defined the stationname 
 | 
system.systemtest 
 | 
x 
 | 
  
 | 
Startparameter requiret a systemtest gapp.is_systemtest "true"/"false" 
 | 
system.store 
 | 
x 
 | 
x 
 | 
  
beas can work with "public variables".  
This are visible in every area, every window, in the complete task. If you close the beas application,  you lose all public variables.  
They are only visible between definition and running time. 
  
write a global variable (store in the system) 
system.store.myvariable=<value> 
  
read a setup variable 
<system.store.myvariable> 
  
you can work with variables on variable name to 
setvar=test=myglobalvariable 
system.store.<test>=<value> 
  
this write your value in the global variable setting "myglobalvariable" 
 | 
 
 
 
 | 
system.setup 
 | 
x 
 | 
x 
 | 
  
beas have a setup table, in which all database related  settings saved. With this methode you can write and read every variable 
  
write a setup variable 
system.setup.myvariable=<value> 
  
read a setup variable 
<system.setup.myvariable> 
  
you can work with variables on variable name to 
setvar=mysetup=mysetting 
system.setup.<mysetup>=<value> 
  
this write your value in the database setting "mysetting" 
  
Use internal cache system 
if the variable is not a counter or setting, which you don't change every hour, then use the variable "<system.msetup>". This use the internal cache and it's really faster. 
 | 
 
 
 
 | 
system.msetup 
 | 
x 
 | 
  
 | 
  
beas have a setup table, in which all database related  settings saved. With this methode you can write and read every variable 
  
read a setup variable from internal cache 
<system.msetup.myvariable> 
  
you can write a setup variable with 
system.setup.myvariable=<value> 
  
if the variable not inside the cache, beas load it from the database 
if you change a variable, the cache in current task is updated too, but not on other stations or other tasks. 
  
beas make a refresh every hour. 
  
use this only if the variable is not a counter or setting, which you don't change every hour. 
 | 
 
 
 
 | 
system.counter=value 
 | 
x 
 | 
  
 | 
  
<system.counter=[value]> 
  
create and read a counter for the defined value 
  
example: 
  
messagebox=<system.counter=mycounter1> 
  
First execute: 1 
Second execute: 2 
Third execute: 3 
  
return -1 in error case, example database error 
  
Powerbuilder: ll_counter=gapp.of_counter(var) 
beas 9.3 PL 2 
 | 
 
 
 
 | 
system.terminalmodus 
 | 
x 
 | 
  
 | 
Return true if beas running as terminal gapp.is_terminalmodus "true"/"false" 
 | 
system.window.[name]... 
 | 
x 
 | 
  
 | 
  
Return ItemCode from current active item master data window 
if not active, system return nothing 
<system.window.artikel_edit.dw_1.item.itemcode.value> 
 | 
 
 
 
 | 
system.windowsuser 
 | 
x 
 | 
  
 | 
Current Name of Windows User gapp.is_widnowuser 
 | 
system.hostname 
 | 
x 
 | 
  
 | 
Return the current host name beas 9.3 PL 3 
 | 
system.ipaddress 
 | 
x 
 | 
  
 | 
Return own ip address beas 9.3 PL 3 
 |