‎2006 Aug 21 7:53 AM
HI ALL,
CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
THANK YOU,
BYE
TAKE CARE.
‎2006 Aug 21 8:00 AM
Hi Ravi,
try this:
/: DEFINE &MYVARIABLE& := 'My content'
and you got the variable &MYVARIABLE& filled with text "My content"
Good luck
Jo
‎2006 Aug 21 8:02 AM
Hi Ravi,
You can delcare a variable in the respective print program of that particular script and you can make use of that variable.
‎2006 Aug 21 8:03 AM
Hi Ravi,
You can use like this
A text in the editor contains the following DEFINE commands:
/: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
&mysymbol&
/: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
/ &mysymbol&
The printed text appears
‎2006 Aug 21 8:04 AM
Hello tehre,
YOu can define ht evariables as follows ::
DEFINE &name& = 'sachin'.
Second option is to define a global variable in print program and use it directly in the FORM.
Please reward points if useful.
cheers,