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: 

How to declare an own field in sapscript,

Former Member
0 Kudos

Hi,

i will use an own field in sapcript, say LAND1_WE.

I use: /: &LAND1_WE& = 'US'.

but i get an error, and the field doesn't fave the value 'US'.

Is there any keyword to do it like this in abap?

DATA: LANG1_WE LIKE T005-LAND1.

LAND1_WE = 'US'.

thanks.

Regards, Dieter

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

/: DEFINE &LAND1_WE& = 'US'.

AS &LAND1_WE&.

Rgds,

Bujji

3 REPLIES 3

Former Member
0 Kudos

hii

declare variable using DEFINE keyword in script..use F1 help for this syntax.

regards

twinkal

Former Member
0 Kudos

Hi,

/: DEFINE &LAND1_WE& = 'US'.

AS &LAND1_WE&.

Rgds,

Bujji

0 Kudos

Hi Bujji,

that's it, thanks.

Regards, Dieter