Application Development and Automation 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: 
Read only

Data Declaration in SAPScript

Former Member
0 Likes
662

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
Read only

Former Member
0 Likes
506

DEFINE &VARIABLE& = '1234'

DEFINE &VARIABLE& = &MARA-MATNR&.

For more help check this

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

Read only

Former Member
0 Likes
506

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

Read only

Former Member
0 Likes
506

/: DEFINE &CUST& = '00000021'.

check the site:

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