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: 

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

balaji_viswanath
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Sorry accidentally entered.

Message was edited by: Srinivas Adavi

balaji_viswanath
Participant
0 Kudos

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

Regards,

Balaji Viswanath.