‎2012 Jul 31 8:48 PM
I have declared a variable gv_weupd in SAPMV45A (include MV45ATZZ) It's based on rv02p-weupd.
DATA: gv_weupd LIKE rv02p-weupd.
I need to use this variable in USEREXIT_MOVE_FIELD_TO_VBAK and in FV45KFAK_VBAK_FUELLEN.
SAPMV45A does the following: PERFORM VBAK-VBAK_FUELLEN(SAPFV45K)
How do I get gv_weupd to be visible across all this?
Thanks
Dave
‎2012 Aug 01 10:38 AM
Hi,
Declare the variable in the include MV45ATOP.
Thanks & Regards,
Vallamuthu
‎2012 Jul 31 9:08 PM
‎2012 Jul 31 9:13 PM
Yes. That's what I said in the first sentence.
"I have declared a variable gv_weupd in SAPMV45A (include MV45ATZZ)"
‎2012 Jul 31 9:41 PM
Hi Dave,
The definition of the variable in include MV45ATZZ should begin with ZZ.
DATA: zzgv_weupd LIKE rv02p-weupd.
- Puneet
‎2012 Aug 01 9:42 AM
Sorry Dave, my bad
I don't think declaring the variable anywhere in SAPMV45A is gonna help! (I'll rather be surprised if it does )
Anyway can you explain your requirement so that we can explore some workarounds?
BR,
Suhas
‎2012 Aug 01 2:36 PM
I think you're right, but I've only been developing in SAP for 6 months and I was hoping that someone has the best practice method of defining globals like this.
I guess another option would be to export the value to memory and import it.
Would that work?
‎2012 Aug 01 10:38 AM
Hi,
Declare the variable in the include MV45ATOP.
Thanks & Regards,
Vallamuthu
‎2012 Aug 01 2:34 PM
I did try to put the data statement in MV45ATOP, but it still wasn't visible in FV45KFAK_VBAK_FUELLEN.
‎2012 Aug 01 3:25 PM
Hi Dave
These are two different programs not sharing the same variables.
Your best bet would be the SET/GET Parameter id or Export/Import to Memory Id.
Hope this helps
Regards
Vic
‎2012 Aug 01 3:30 PM