cancel
Showing results for 
Search instead for 
Did you mean: 

sap script variable declaration

Former Member
0 Kudos

hi,

can i get help Plz,

i want to use a new variable in script and assign the value of another variable to it

like new_price = EKPO-NETPR.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can use following command in text elements

/: DEFINE &NEW_PRICE& = &EKPO-NETPR&

Regards

Vijai

alex_m
Active Contributor
0 Kudos

Hi,

You cant declare a variable in SAP Script, but you can change the content of the varuiable in Script by using the somment DEFINE.

Former Member
0 Kudos

but unable to get the value in new variable , any other way , plz help!

Former Member
0 Kudos

Hi,

Can you please tell what is the exact probelm.

Value is not there in new_price or EKPO-NETPR itself.

Regards,

Ranjitha

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Please find below link:

http://help.sap.com/saphelp_40b/helpdata/en/f4/b4a0b3453611d189710000e8322d00/content.htm

Hope this may be useful..

Regards,

Prashant

Former Member
0 Kudos

hi,

use DEFINE command .

EX: DEFINE &new_price & = &EKKO-NETPR&

regards,

Manjula.

Former Member
0 Kudos

Hi ,

What exactly is needed?

As i guess , u need to know how to define a variable in script

Then you can use the syntax

define &new_price&  = ' '

then assign new_price = EKPO-NETPR.

Hope this will help you.

Regards,

Ranjitha