cancel
Showing results for 
Search instead for 
Did you mean: 

automatic batch determination : expired batch comes in batch

Former Member
0 Kudos

dear sir,

i have create a automatic batch determination at the time of delivery

but the problem is expired batch coming in the batches

so how to avoid these batches .

i m using

class - lobm_rlz

            lobm_lfdat

            lobm_vfdat

sorting rule :  lobm_rlz ---- ascending

                     lobm_vfdat---descending order



VFDAT(DESCENDING)RLZ(ASCENDING)

BATCHMFG DATEEXP DATESHELF EXP DATEDEL DATEQTY
715.04.201330.04.20131020.04.2013999
815.04.201330.04.20131020.04.2013500
1220.04.201322.04.2013220.04.20131000
1015.04.201317.04.2013-320.04.2013100
1114.04.201316.04.2013-420.04.20136

if i m giving 2608 qty

it takes all the batches in above sequence.

plz help me out

how can i stop to come these 10 and 11 batches to come.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Raveendra,

The restriction of the batches from being selected for determination is based on the selection criteria. What you have listed is the sort rule which is just to make LIFO or FIFO out of the selected list.

So you probably require a Characterstic for shelf life  assigned in the Class for the selection criteria which says that the batch with less than  'x' days not be selected.

Hope this clarifies the query.

Regards,

Karthik.

Former Member
0 Kudos

Dear KARTHIK KRISHNAN,

Thanks for reply.

i have given the follwing chr in my class -

LOBM_RLZRemaining Shelf Life for Batch
LOBM_LFDATBatch Determin. Delivery Date
LOBM_VFDATExpiration date, shelf life

now according to you what shoul i have to add .

Thanks .

Ravindra

Former Member
0 Kudos

Dear Ravindra,

For the charateristics LOBM_RLZ you can maintain the value as for e.g. >=1 d   if the value of remaining shelf life is acceptable 1 day before expiry for the delivery. 

generally we use 180 days before expiry as selection criteria for any batches.

Hope this clarifies and helps to solve your issue.

Regards,

Karthik.

Former Member
0 Kudos

Dear KARTHIK KRISHNAN,

i have already applied this condition in vch1 ( cndition record).

in selection criteria

but it not worked .

is there any other option ?

Thanks .


Shiva_Ram
Active Contributor
0 Kudos

Check the routine assigned at the field Qty Proposal at SPRO->Logistics-Genearl->batch management ->batch determination and batch check ->strategy types -> define sales and distribution strategy types. Here select the strategy type used and go to details. Then check the routine assigned here. You may need to copy the routine and create a new  one with additional logic to filter the in-valid batches. Discuss with an ABAP'er on your requirements.

Regards,

Former Member
0 Kudos

Hi,

The characteristics you have maintained are the standard ones, so no additional dependecies code needs to be written ideally.

what is the key combination for the Batch determination?  what is the validity date of the condition record, is it after the delivery creation date?

Regards,

Karthik.

Former Member
0 Kudos

Dear Karthik ,

i have maintained the condition record for a particular period like from 21 apr 2013 to 22 apr 2013

but it picked up the batch which are already expired .

--in msc2n i delete the batch but no effect .

---then i try to block the batch and i transferred it to the blocked stock . 344 mov type

but it is again a manual job  means daily compare the batches and then transfer it to the blocked stock

is there any option to check the schedule line for batches ?

Former Member
0 Kudos

Dear Raveendra,

Probably like Mani had suggested in the earlier post there should be a Inspection type 07 set in the material master which checks for the Expiry date and moves it to the blocked stock. A background job can be scheduled for this which will give the usage decision 'E' expired to the material and also move it to blocked stock.

Secondly you can add characteristics LOBM_UDCODE in the selection criteria to allow the batches only with particular UD like 'A' - approved for the deliveries.

Hope this would help.

Regards,

Karthik.

od_manikandan
Active Contributor
0 Kudos

Hai Raveendra,

Reference our QM consultant, using T CODE   QA07 the expired product will be moved t blocked stock.

The program is scheduled in Background job (Daily).

Remove the Incl of Blocked stock.

Regards,

Mani