‎2013 Nov 13 9:09 PM
Need help in finding the appropriate exit or badi or program .. to determine the batch.
- i need to pick the batch from VEPO for Delivery#Material#. - it may contain multiple batches for one item in one delivery.
i research couple of user exits like
1. MV50AFZ1, MV50AFZ2
2. MV50AFZZ
3. Enhancement: V50Q0001 - include: Include ZXV50QU01 -- not triggering
This is need to do in only delivery change mode, i do not have Handling unit and batch details while creating delivery.
- I am exactly looking when we click on batch split button and -> refresh batch determination-> then it shows up list of batches and quantity-- here i need to populate select only the appropriate batches which i get from vepo table.
Thanks,
Mahesh.
‎2013 Nov 14 4:23 AM
hiiii,
check the include MV50AFZ1
USE routine
form userexit_save_document_prepare.
endform.
in that routine u create the enhancement it works at vl02n
Regards,
Mahadeo...
‎2013 Nov 13 9:45 PM
‎2013 Nov 13 9:55 PM
‎2013 Nov 13 9:57 PM
my functional guy says the batch split should be done automatic not sure at what point of time it should get trigger.. i am guessing when user click on batch split button i have to populate the all batches.
‎2013 Nov 13 10:20 PM
Can you check from your Functional if there are any standard Routine in VOFM he has assigned for the Batch Determination (tCODE VCH1) .If so i am trying to see if there's a possibility of achieving this throught THE VOFM routines
‎2013 Nov 14 4:23 AM
hiiii,
check the include MV50AFZ1
USE routine
form userexit_save_document_prepare.
endform.
in that routine u create the enhancement it works at vl02n
Regards,
Mahadeo...
‎2013 Nov 14 3:48 PM
Yes this is the one i am using now.. but not sure like is this is the good practice/place to write the code at this user exit or there any other ways we can achieve in better way..
Thanks,
Mahesh
‎2013 Nov 14 4:30 AM
Use this include : MV50AFZ1.
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
ENDFORM.
You will get data in XLIPS, XVBAP.
In this you can implement implicit enhancement. It will work.
Regards
Vivek
‎2013 Nov 14 6:05 AM
Hi
In your case the user-exit can suffice your requirements. Because you want to split the batch for HU maangement. May be you can de bug the below code and try to implement enhancement. I think it will suffice your requirement for display and update the batch from HU.
Program : SAPMV50A
Include : MV50AI0F
* Update packing control in case of batch splits and HU management
perform hu_batchsplit_chhpv_update(sapfv50p) using likp-vbeln
ilips-tabix
space
changing gf_subrc.
Thanks,
Kiran