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

Accessing variable across User Exit (i.e. across function pools)

balaji_viswanath
Participant
0 Likes
739

Hi,

I have writen a user exit for MB31 transaction. Which uses following function modules...

EXIT_SAPLIPW1_001

EXIT_SAPLIPW1_004

EXIT_SAPLIE01_005

EXIT_SAPMM07M_001

First three functions belongs to XQSM function group and last function fuction belong to XMBC function group.

I have two top includes, ZXQSMTOP for first 3 and

ZXMBCTOP for the last one.

I am not able to access the variables declared in ZXMBCTOP in the first 3 functions...

(I am using EXIT_SAPMM07M_001 only to get the posting date.)

How to do it?

Advance thanks.

Regards,

Balaji Viswanath.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
656

Hi,

there are several ways to achieve this.

a) export the variables to a parameter using set/get parameter

b) export the variables to a memory using export/import to/from memory

c) create your own fm and pass the values to the fm, post it to the global memory of your fm and in the other exits, get from the global memory of your fm.

Hope this helps

regards

Siggi

3 REPLIES 3
Read only

Former Member
0 Likes
657

Hi,

there are several ways to achieve this.

a) export the variables to a parameter using set/get parameter

b) export the variables to a memory using export/import to/from memory

c) create your own fm and pass the values to the fm, post it to the global memory of your fm and in the other exits, get from the global memory of your fm.

Hope this helps

regards

Siggi

Read only

Former Member
0 Likes
654

Sorry accidentally entered.

Message was edited by: Srinivas Adavi

Read only

balaji_viswanath
Participant
0 Likes
654

Thanks Siegfried Szameitat. Using GET & SET Parameter I was able to do it. I have awarded you the points.

Regards,

Balaji Viswanath.