12-20-2006 10:41 AM
Hi All,
I want to define a global flag field (say my_flag) in Function group VEDA. I need to set/reset it in exit EXIT_SAPLVEDA_003 and check its value in EXIT_SAPLVEDA_002.
Can anyone help me out in this. Where can I define this field?
Thanks.
Regards,
Riyaz
12-20-2006 11:36 AM
u have to take the include top of function group XVED goto include LXVEDTOP
Double click on this include it shows u INCLUDE ZXVEDTOP as global data .
u need to define ur flag over here .
regards,
vijay
12-20-2006 11:13 AM
I have created a customer table zflag1 which has one field z_flag and the correspopndiong data el;ement is 'zflag' and i also ccreated parameter ID in table TPARA and assigned tht parameter ID 'ZFLAG' to my data element.
reward points if helps..
in the Z include of Exit function 3 write -
data :g_global like zflag1-z_flag.
G_GLOBAL = 'X'.
set parameter id 'ZFLAG' field g_global.
and in the Z include of exit function 2 write -
DATA G_GLOBAL LIKE ZFLAG1-Z_FLAG.
GET PARAMETER ID 'ZFLAG' FIELD G_GLOBAL.
12-20-2006 11:22 AM
Function group XVED contains all of the user exit function modules. This was done so long ago in our system so I don't know if all of the empty includes mention exist or whether you will have to create them. But in include program LXVEDTOP, we have another include statement:
Include ZXVEDTOP.
All of our global variables are defined in this include.
Regards,
Chris
12-20-2006 11:36 AM
u have to take the include top of function group XVED goto include LXVEDTOP
Double click on this include it shows u INCLUDE ZXVEDTOP as global data .
u need to define ur flag over here .
regards,
vijay
12-20-2006 12:06 PM
did you try export to memory ID and import from memory ID ?
what I mean is export that value from the first exit and then import it in the second one .. if u do use it, dont forget to delete it afterwards