‎2005 Sep 27 10:05 AM
I want to process some data which is available to me in a script through a 'Perform' in a prog., but the issue is that i need to declare some local variables in the script, like the one we can declare in Smartforms .How can i declare variables in a script locally and not through my ABAP prog. ?
‎2005 Sep 27 10:16 AM
DEFINE &VARIABLE& = '1234'
DEFINE &VARIABLE& = &MARA-MATNR&.
For more help check this
http://help.sap.com//saphelp_470/helpdata/EN/d1/8031d0454211d189710000e8322d00/content.htm
‎2005 Sep 27 10:19 AM
hi,
for perform you no need to declare additional variable
PERFORM GET_SHIP_TO IN PROGRAM Zxxxxx
USING &VBDKL-ADRNR_WE&
CHANGING &NAME_1&
CHANGING &NAME_2&
CHANGING &NAME_3&
CHANGING &NAME_4&
ENDPERFORM
in the above case no need to define name_1 and name2...
it i will get automatically
cheers,
sasi
‎2005 Sep 27 10:20 AM
/: DEFINE &CUST& = '00000021'.
check the site:
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm