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

assign value in sap script

Former Member
0 Likes
1,257

Hello All,

I want to assign a value to a variable in the script.

I am using the following code. but its not wokring.

/: define &land1& := 'SG'.

Please help me solve the problem.

Thanks,

Anju

4 REPLIES 4
Read only

arul_murugan
Active Participant
0 Likes
734

Hi,

Use the below code

/: DEFINE &land1& = 'SU'

Thanks

Arul

Read only

Former Member
0 Likes
734

Hi Anju,

Use the below code and write define in Caps:

/: DEFINE &land1& = 'SU'

Hope that helps!!!!

Read only

Former Member
0 Likes
734

/: define &land1& := 'SG'. -


> dot not required

Also, have you checked the value of LAND1 in debugging mode of script. Is the problem with the DEFINE statement or printing the the variable...

Read only

Former Member
0 Likes
734

done