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: 

assign value in sap script

Former Member
0 Kudos

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

arul_murugan
Active Participant
0 Kudos

Hi,

Use the below code

/: DEFINE &land1& = 'SU'

Thanks

Arul

Former Member
0 Kudos

Hi Anju,

Use the below code and write define in Caps:

/: DEFINE &land1& = 'SU'

Hope that helps!!!!

satyajit_mohapatra
Active Contributor
0 Kudos

/: 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...

Former Member
0 Kudos

done