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

sap-script

Former Member
0 Likes
581

hi to all,

help me in this issue

i have written a subroutine for changing decimal format of the amount as

perform

using &rf140-wrshb

chaging &l_amount

endform

iam calulating this amount in subrouine and getting the value

but this is value is recognized only particular to that text element.

liike

/e 510

when i want to place same l_amount

in

/e 520

it is not displaying l_amount

help me in this issue

thanks & regards

kiran kumar.

7 REPLIES 7
Read only

Former Member
0 Likes
557

Hi Kiran,

Define a global variable and pass the changed value to it and use it anywhere u want.

Right now its local thats why .

Defining a variable

/: DEFINE &I_AMOUNT1&. like

Reward points if this Helps.

Manish

Message was edited by:

Manish Kumar

Read only

Former Member
0 Likes
557

Hi,

Define l_amount as a global variable.

In the starting of the program u can define amount variable.

Regards,

Kumar

Read only

0 Likes
557

hi where should i define it as a global varaible.

should it be declared in script

like

define &l_amount&

thanks in advance

kiran kumar

Message was edited by:

kiran kumar

Read only

Former Member
0 Likes
557

Hi ,

please check the particular text is executed before the perform statement or after the perform statement.

If the text elemet is executed before the perform statement please write the perform before it .

for checking this Use the sap script trace.

If the text element is executed after the perform statement .

check you are declaring the l_amount is in right place or not ( i.e global ( in main window )

thanks

Sekahr

Message was edited by:

Lakshmi Sekhar Reddy

Read only

0 Likes
557

hi how to declare globe variable in main window.

thanks in advance

kiran kumar.

Read only

Former Member
0 Likes
557

HI Kiran,

Define a Variable in your DRIVEr program and assign the value and use it.

Hope it helps.

Manish

Read only

Former Member
0 Likes
557

Hi Kiran,

Do one thing iam not sure with this.u have called this perform in element 510.

<b>perform

using &rf140-wrshb

chaging &l_amount

endform</b>

and also call the same perform in the element 520 also . i think this will work but as i said iam not sure with this.

Thanks

Vikranth Khimavath

Message was edited by:

Khimavath Vikranth