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

Automatic Batch determination in Delivery

Former Member
0 Likes
8,372

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.

1 ACCEPTED SOLUTION
Read only

former_member196157
Active Participant
0 Likes
4,649

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...

8 REPLIES 8
Read only

Former Member
0 Likes
4,649

Hi Mahesh

Did the Badi VB_BD_SELECTION trigger ?

Regards

Ram

Read only

0 Likes
4,649

It triggers only while creation, not in change

Read only

Former Member
0 Likes
4,649

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.

Read only

0 Likes
4,649

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

Read only

former_member196157
Active Participant
0 Likes
4,650

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...

Read only

0 Likes
4,649

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

Read only

Former Member
0 Likes
4,649

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

Read only

Former Member
0 Likes
4,649

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