cancel
Showing results for 
Search instead for 
Did you mean: 

OPJ2 Stock/Batch determination question

scm_09
Contributor
0 Kudos

In OPJ2 I have stock determination (based on stock type) active with business operation 3 (stock determination at backflush). I also have Auto batch determination active at the time of backflush (261 movement type)

That means for a material I am doing batch determination and also stock determination both at the time of backflush.

so how does system pick batches? will it first determine the stock type based on the stock determination rule and then go for batch determination strategy in that stock type or will it first go for batch determination and based on the determined batch it will determine the stock type?

In other words, which happens first? batch determination or stock determination?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

the stock detrmination is carried out first. It determins storage location and - if any - special stock indicator.

The following automatic batch determination is carried out with these fields predefined.

Regards, Andreas

scm_09
Contributor
0 Kudos

Andreas, Thats what I thought initially and I feel thats more logical.

But when I test in my system, I see batch determination is happening first followed by stock deter

scm_09
Contributor
0 Kudos

Based on my testing, I found that system is giving batch determination preference than stock determination if we do them both at once (at the time of backflush). So now the real issue i am facing is

I have a batch manged component that is handled using vendor consignment stock k. we also have the same material in unrestricted use too.

un restricted has 2 batches, batch 1 sled is nov 2011, batch 2 sled is jan 2012

vendor consignment has 2 batches batch 1 sled is dec 2011, batch 2 sled is jan 2012

our requirement is to consume early sled batch from consignment first. That means i need to consume sled dec 2011 batch from consignment first. But as system is giving preference to batch determination first, its selecting sled nov 2011 of unrestricted.

any suggestions??

former_member184701
Active Contributor
0 Kudos

dear,

i would add that you are able to control the results of batch determination - run SPRO, go to

Logistics-General, Batch management, Batch Determination and Batch Check, Strategy Types, Define Production order Strategy Types, select your strategy and hit Details: look at "Dialog batch determin". Tick it ON

good luck.

scm_09
Contributor
0 Kudos

PPIO

Thanks for the reply. But I do not want to select batch/stock in foreground. I want everything to happen at the time of confirmation/backflush in background without any user intervention.

Any other ideas?

former_member184701
Active Contributor
0 Kudos

sorry if i missed your idea again...if you run OMJ5 and set '2' (which is 'month') against 261 movement?

scm_09
Contributor
0 Kudos

PPIO, sorry to say but I am not looking for any expiration date checks.. please have a look at my initial two postings in this thread.

Experts, any help is greatly appreciated. Thnx

former_member184701
Active Contributor
0 Kudos

dear SCM,

for this particular scenario which item has the highest priority in OSPX ?

I mean ...did you try to set 'K' with priority indicator '1' ? And 'F' will have '2'

returning to your initial question ' what is frist - stock or batch determination' i understand that it

probably depends on 'BD' checkbox. Is it ticked in your system?

And if SDR is blank batch must be higher. If you set both...stock to be higher...

what are the settings in your test?

say, the OPJ2 entry may have the various combinations (Op. is 3 or 5, SDR set or not (and which item is on top), BD ticked or not..

regards,

scm_09
Contributor
0 Kudos

PPIO,

OSPX item table settings

1st priority K

2nd priority F

OPJ2 settings,

Stock determination yes, BD check box yes, operation is 3

but system is picking unrestricted stock because, the oldest batch I have is in unrestricted use.

I want system to pick K stock first and then the oldest batch in K stock.

former_member184701
Active Contributor
0 Kudos

i would check out the following settings combinations:

1. what if you tick off BD checkbox? (OPJ2)

2. do you have SLoc values in OSPX (ITEMS)? what if add/remove SLocs there?

3. do you have stock det.rule against 261 in inv. management settings?

4. also have a look at material master "Plant data / stor. 2" view : 'Stock determ.group' field - make sure it is not blank

good luck!

scm_09
Contributor
0 Kudos

1. If I take off BD check box, batch determination is not happening and just stock determination is happening and it is picking K stock

2. I have one sloc in ospx item table because thats where I have my K and F stock for that material

3. yes

4. yes

former_member184701
Active Contributor
0 Kudos

dear SCM,

i think you can try other things:

1. remove 'F' with 2 from items (OSPX) - just leave the 'K' with 1 there;

2. make sure the SDR is specified in repetitive manuf. profile of the assembly;

3. if you set the operation 5 (other settings leave 'as is') - what is happening (OPJ2)?

if doesn't help...well..the last thing ...let's break it - tick the 'User exit for item table' and adjust the EXIT_ SAPLMDBF_002 of enhancement XMBF0001 (OSPX)

regards,

scm_09
Contributor
0 Kudos

Sure, i will have to try those today and update the thread..

But let me ask you one question,

what is difference between operation 3 (check during backflush) and 5 (check during batch determination) in opj2?

when I do batch determination at the time of backflush, then op 3 and op 5 should do the same thing to me right?

when you op 5 used exclusively??