‎2007 Oct 29 9:53 AM
HI all.
I have captured few fields value (Store the Delivery Number, Item, Material and batch) from Routine USEREXIT_SAVE_DOCUMENT in the Inculde: MV50AFZ1 and Store the Delivery Number, Item, Material and batch from SAP Internal table XLIPS to IT_LIPS.
How I can pass Delivery Number, Item, Material and batch from Routine USEREXIT_SAVE_DOCUMENT to my customize Routine ?
TO be Reward All helpfull answers.
Regards.
Jay
‎2007 Oct 29 9:57 AM
Hi,
Can you please explain it more about. Where is your customize routine is written and what is the requirement?
Thanks,
Muthu
‎2007 Oct 29 10:21 AM
HI Muthu.
I need to capture Delivery number,item,material and batch before saving Delivery.so Iam using Routine USEREXIT_SAVE_DOCUMENT in the Inculde:MV50AFZ1 .now all values are available in XLIPS (Delivery number,item,material and batch ).I will pass all values from XLIPS(SAP Internal table) to IT_LIPS(Customize Internal table).I need to pass those value to other Cutomize Routine ZXXXXX.Routine ZXXXXX also i included in Routine USEREXIT_SAVE_DOCUMENT .
help me.
jay
‎2007 Oct 29 10:32 AM
Hi Jay,
You can call the subroutine and pass the values only if it is outside the routine USEREXIT_SAVE_DOCUMENT. Because USEREXIT_SAVE_DOCUMENT is a already routine so you cannot create a routine inside another routine. If you create the custom routine in the include MV50AFZ1 using the enhancement option and then try to call that custom routine and you can able to pass the values to it.
Reward if useful.
Thanks,
Muthu.
‎2007 Oct 29 11:21 AM
HI Muthu.
I will create seprate ZRoutine,i will call Zroutine in USEREXIT_SAVE_DOCUMENT .is it work,if YES, how can i pass values from one routine to other.
Eg:
from USEREXIT_SAVE_DOCUMENT
perform Zrotine (How can pass values here).
end USEREXIT_SAVE_DOCUMENT
help me.
Jay
‎2007 Oct 29 11:27 AM
Hi jay,
It just simple as, If you want to use then perform Zroutine using it_lips. Or else if you want to change the value then perform Zroutine changing it_lips.
In definition,
Form Zroutine using/changing itab type LIPSVB.
Endform.
Thanks,
Muthu.
‎2007 Oct 29 10:00 AM
Hi Jay,
in my system I found this program MV50AFZ1 has not been used any where. From where you are triggering this user exit?
Satish
‎2007 Oct 29 10:03 AM
You can access variables which are out of scope by this method
DATA: field_name type char30 .
FIELD-SYMBOLS: <fs>.
field_name = '(program_name)variable_name'.
ASSIGN (field_name) TO <fs>.e.g.
field_name = '(SAPMV45A)XVBAK'
ASSIGN (field_name) TO <fs>.This may help you in getting the value of variable... try this in debugging mode first to get the value of variable using (SAPMV45A)XVBAK