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

Doubt in Routine

Former Member
0 Likes
836

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

7 REPLIES 7
Read only

Former Member
0 Likes
803

Hi,

Can you please explain it more about. Where is your customize routine is written and what is the requirement?

Thanks,

Muthu

Read only

0 Likes
803

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

Read only

0 Likes
803

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.

Read only

0 Likes
803

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

Read only

0 Likes
803

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.

Read only

Former Member
0 Likes
803

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
803

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