Application Development 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: 

Availability based on minimum shelf life

Former Member
0 Kudos
164

In 'VL01N ' t code batches are selected based on the parameter value 'LOBM_RLZ(min. shelf life)'.

I have an requirement in which this minimum shelf life is also maintained in LIPS table (LIPS-ZZVSD_MVZ).

If this field is maintained with some value which is different to tha parameter value LOBM_RLZ, then batches

should be selected according to this value. Else needs to be selected as per LOBM_RLZ.

Kindly help me to find out the exit to write the code and how can I overwrite parameter value LOBM_RLZ?

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos
67

Hi

Try with USEREXIT_BATCH_DETERMINATION in include MV50AFZZ.

In the other hand, see SAP Note 619911 - FAQ: Batch determination

I hope this helps you

Regards

Eduardo

3 REPLIES 3

eduardo_hinojosa
Active Contributor
0 Kudos
68

Hi

Try with USEREXIT_BATCH_DETERMINATION in include MV50AFZZ.

In the other hand, see SAP Note 619911 - FAQ: Batch determination

I hope this helps you

Regards

Eduardo

0 Kudos
67

Hi hinojosa,

Thanks for your quick response.

Exit provied by you looks fine to write the code.

But I'm not able to find the exact place where i need to overwrite the value of parameter LOBM value with LIPS z field value.

Can you please help in this?

Regards,

Nikhil

0 Kudos
67

Hi

Maybe I didn't understand you in a beginning. If you want to use a customer field for determination of batch, see the IMG path and consider to add a customer field in the determination of batch. See this IMG path in Logistics - General

After, in V/C1, for strategy types, you can define your own VOFM (maybe this way will be more productive because the userexit is for setting a different batch) and set it (as in other cases, set a break point for understanding how it works)

I hope this helps you

Regards

Eduardo

PD: I forgot it. There is a BADI, but I've never worked with it. See VB_BD_SELECTION method RESTRICT_CONF_CHARS, but I doubt it heps you