Vous êtes sur la page 1sur 10

Below Information will show us, how to call the form from another form with parameter and

display the values based on given input value. Requirements: 1) 2) 3) 4) 5) 6) 7) 8) Target Form ( We need the form which has the input parameter) Source Form Define the global variable(Source Form) Define Menu (Source Form) Invoke the from Menu (Source Form) Assign the value for Global Variable (Source Form) Define the global variable(Target Form) Pass the value to Forms Parameter(Target Form)

Source Form

Target Form:

Step 1: Defining Global Variable and Menu

Action :

Seq: 1 Type : menu Description : MSC Order Gross Profit- Menu Menu Type : Menu 10 Menu Label: Test_MSC Order Gross Profit Seq: 2 Type: Property Description: Object Type: Global Variable Target Object: XX_ORDER_NO Property Name: INITIAL VALUE

Step 2: Invoke the form from Menu and assign the value to Global Variable

Seq: 1 Type : Property Description : Initiate value for Global variable Object Type: Global Variable Target Object: XX_ORDER_NO Property Name: VALUE Value : =:ORDER.ORDER_NUMBER Change the value based on our requirement

Seq: 2 Type : Builtin Description : Builtin Type : Launch Function Function Code : MSCOEGP (Target form Name) Function Name : MSC Order Gross Profit

Step 3: Define Global Variable in Target Form

Seq: 1 Type: Property Description: Initiate value for Global variable Object Type: Global Variable Target Object: XX_ORDER_NO Property Name: INITIAL VALUE

Step 4:

Seq: 1 Type: Property Description: Object Type: Parameter Target Object: ORDER_NO(Parameter Name in Form) Property Name: INI =:GLOBAL.XX_ORDER_NO Global Variable

Vous aimerez peut-être aussi