openform

Open a Beas window, SAP window or create new Beas Window:

 

[parent].openform (string windowname,Parameter1,Parameter2...); // open window with parameter defined in object

[parent].openform (object); // Create new window
[parent].openform (string windowname,object); // open window with parameter defined in object
 

Without parent:

openform (string windowname,object/parameter);

 

With openform you can open a new window:

openform ("beas_id",ParameterList)  // Open Beas Form by Beas-Id. See Beas window names
openform ("fo_id",ParameterList)  // Open SAP Form or third AddOns by SAP-Form-Uid

window.openform ("psr-filename",{object})  // Open Beas Form from current window as parent window
 

Create own window

window.openform(object)

 

Example:

window.openform("beas_ItemMasterData_Edit","RM"}); // Open Beas Item Frrm for item "RM" as modal form
openform("fo_2050",1025); // Open SAP Form "Sales Order" DocEntry=1025

window.openform("artikel_edit.psr",{s_parm1:"RM",modal:true}); // Open Beas Item Frrm for item "RM" as modal form
 

Related to parent window:

Type

Description

window.openform(x)

macro.openform(x)

application.openform(x)
openform(x)

 

Open existing window

First parameter is the Window-psr-file, the fo_[SAPFormID] or beas_[beasFormId]

If the psr-file name defined, the system search for this file in the project folder and then in standard folder.

 

Second parameter define additional properties by object or parameter list. SAP Forms support only 1 parameter.

openform (string windowname,Parameter1,Parameter2...); // open window with parameter defined in object

openform (string windowname,object); // open window with parameter defined in object
 

hmtoggle_plus1Parameter by Parameter List
hmtoggle_plus1Parameter by Object

 

Return value

openform return
SAP-Forms: nothing

hmtoggle_plus1Beas-Forms: the window instance
hmtoggle_plus1Modal Beas-Forms: return object

 

 

Create new Beas window

if first parameter is an object, the system opens a completely new window: See new Form.

Create new SAP Window: Use SAP UI-API objects: sbo_forms.Add