AVSWITCH Function

RAMP-TS

AVSWITCH Function

Requests a switch to another business object and optionally the execution of a nominated command.

 

Syntax

AVSAVEVALUE(sTo, sNamed, sExecute, sTargetWindow)

 

Parameters

sTo

Specify as FRAMEWORK, APPLICATION or BUSINESSOBJECT indicating the object to which control is to be switched.

sNamed

Specifies the User Object Name/Type of the APPLICATION or BUSINESSOBJECT that control is to switch to.

sExecute

Specify the User Object Name/Type of any command that is to be executed in the target FRAMEWORK, APPLICATION or BUSINESSOBJECT.

sTargetWindow

Specifies the target window in which the switch operation should be performed. Allowable values are CURRENT (the current window), MAIN (the main window) or specific window name. The default value is MAIN.

 

 

Return Value

None.

Remarks

  • It is the function callers responsibility to ensure the RAMP-TS session is not busy when the call to AVSWITCH is made. In development mode this will result in the RAMP Session Busy message.

 

Examples

 

/* Switch to the Combobox Fast Part examples and run Example 1 */

   AVSWITCH("BUSINESSOBJECT","C0846821929747C295C29FF1E518CCAD","EXAMPLE_1");

 

/* Switch to a business object in the same additional window and */

/* run the details command.                                      */

 

AVSWITCH("BUSINESSOBJECT","EMPLOYEES","DETAILS","CURRENT");