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: 

Variable from one subroutine to another subroutine

Former Member
0 Kudos

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

Former Member
0 Kudos

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'.

1 REPLY 1

Former Member
0 Kudos

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'.