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

Variable from one subroutine to another subroutine

Former Member
0 Likes
783

Hi Experts,

In substitution routines i need to pass on the value of one variable to aother without declaring the variable as global.

Can anyone please tell me?

Thanks

Dany

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
491

You could export/import from memory to do this.

Export in the first routine:

export lv_value to memory id 'YOURVARIABLE'.

Import in the next routine:

import lv_value from memory id 'YOURVARIABLE'.

Hi Experts,

In substitution routines i need to pass on the value of one variable to aother without declaring the variable as global.

Can anyone please tell me?

Thanks

Dany

1 REPLY 1
Read only

Former Member
0 Likes
492

You could export/import from memory to do this.

Export in the first routine:

export lv_value to memory id 'YOURVARIABLE'.

Import in the next routine:

import lv_value from memory id 'YOURVARIABLE'.