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

How to access the internal table from the Called Sub Program

Former Member
0 Likes
558

Hi,

Can anybody help me in accessing the internal table, which is there in one of the includes of the program. This internal table value has to be used in one of the called subprograms along the Call Stack.

It is possible to access the global variable of the Main Calling Program, but I have a requirement to access one of the include variables in the called sub-program along the call stack.

Thanks,

Arshad

Hi,

Can anybody help me in accessing the internal table, which is there in one of the includes of the program. This internal table value has to be used in one of the called subprograms along the Call Stack.

It is possible to access the global variable of the Main Calling Program, but I have a requirement to access one of the include variables in the called sub-program along the call stack.

Thanks,

Arshad

3 REPLIES 3
Read only

raviprakash
Product and Topic Expert
Product and Topic Expert
0 Likes
480

Hi Arshad,

I think you can use the EXPORT and IMPORT keywords for this purpose. For this purpose declare the same variable as in the main program into your sub program. In the main program, export the VARIABLE into a memory id and then in the subprogram, import the same VARIABLE.

Thanks and regards,

Ravi :).

NOTE: Points keep me alive on SDN:).

Read only

Former Member
0 Likes
480

Hi Arshad,

Please use EXPORT and IMPORT keywords for this purpose.

Regards,

Sonu.

Read only

Former Member
0 Likes
480

Actually, this Requirement is for the User Exit.

We don't have access to the include. So cannot export the values from there.

Any other way please?

Thanks,

Arshad