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

pass the variable between FM or classes

Former Member
0 Likes
419

Hello

I am SAP BI consultant

The requirement is to read the value of the variable entered by user during query execution and use it in other FM or classes

I was planning to use IMPORT/EXPORT FROM MEMORY but this approach looks a bit obsolete.

The another way is to write data to transparent table and select from there (but this one sounds even worse)

What is the best way to do it?

Thanks

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
386

I was planning to use IMPORT/EXPORT FROM MEMORY but this approach looks a bit obsolete.

Don't think using ABAP memory is an obsolete approach. If only you execute both in one external session that this is fine.

What is the best way to do it?

You can use [Shared Memory|http://help.sap.com/saphelp_nw70/helpdata/en/c5/85634e53d422409f0975aa9a551297/frameset.htm] to exchange data even within different user sessions.

Regards

Marcin

2 REPLIES 2
Read only

MarcinPciak
Active Contributor
0 Likes
387

I was planning to use IMPORT/EXPORT FROM MEMORY but this approach looks a bit obsolete.

Don't think using ABAP memory is an obsolete approach. If only you execute both in one external session that this is fine.

What is the best way to do it?

You can use [Shared Memory|http://help.sap.com/saphelp_nw70/helpdata/en/c5/85634e53d422409f0975aa9a551297/frameset.htm] to exchange data even within different user sessions.

Regards

Marcin

Read only

Former Member
0 Likes
386

You can implement the enchancement RSR00001BI: Enhancements for Global Variables in Reporting