cancel
Showing results for 
Search instead for 
Did you mean: 

how to declare a variable in form

Former Member
0 Kudos

how to declare a variable in form?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

In scripts

there is one control command

/: define see the below link

http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm

In smart forms

click the Global data tab

Regards

Jagadeesh

Former Member
0 Kudos

Hi,

do you want to create variable in script or smartform?

In scripts to define a variable use the following declaration statement.

DEFINE &<VARIABLE_NAME>&

place this statement as command. we can assign initial value for this by adding VALUE ' ' to above statement.

If your requirement is for smartforms go to global declaration, create a variable there that will be applicable only for smartform.

Hope this will help you,

Regards,

Aswini.

Former Member
0 Kudos

Declare in global definitions

ex:

v_var type <any field name>

Former Member
0 Kudos

global definitions--> global data