Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Declaration in SAPScript

Former Member
0 Kudos

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. ?

3 REPLIES 3

Former Member
0 Kudos

DEFINE &VARIABLE& = '1234'

DEFINE &VARIABLE& = &MARA-MATNR&.

For more help check this

http://help.sap.com//saphelp_470/helpdata/EN/d1/8031d0454211d189710000e8322d00/content.htm

Former Member
0 Kudos

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

Former Member
0 Kudos

/: DEFINE &CUST& = '00000021'.

check the site:

http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm