cancel
Showing results for 
Search instead for 
Did you mean: 

SAP EWM: staging of Pick Parts with batches and destination is IM managed

chaertl
Explorer
0 Kudos

Hello,

I have a problem with the batch determination in an EWM - PP environment. Here is the inital situation:

  • we have one storage location 1111 which is EWM managed, this is the warehouse
  • we have another storage location 9999 for production, which is IM managed
  • materials are batch managed
  • the EWM-PP interface is set up (we actually use this scenario)
  • control cycle is set up (destination SLOC is 9999, source is 1111), PSA is assigned to operation
  • SLOC for the component in the production order's BOM is 9999 as the material will be consumed here after the stock transfer from 1111 to 9999

I had to change the customizing for the availability check: I deactivated the check on SLOC. So stock is found and I get a committed quantity. I'm not sure if this setting is correct, but it does the job. The real problem is the batch determnination. Due to various reasons, I want the batch to be determined by ERP. Unfortunately, the system findsw batches on storage location 9999 only. It does not take the batches on storage location 1111 into consideration. What can I do to make the batch determination check the storage location which is defined as the source SLOC in the control cycle.

How would you set up such a scenario?

Thanks a lot for a helpful answer.

Accepted Solutions (0)

Answers (3)

Answers (3)

shailesh_mishra5
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Christian,

This is possible in standard SAP. I replicated your scenario in my system and created a test case.

I create 1 Storage location which is EWM managed and Created Another storage location which is IM managed.

Now to fetch batches from 2 location, you need to have 5 things set up in system.

1) Stock determination based on storage location priority. I gave priority to my EWM managed storage location(0015) and then to IM managed storage location (0019). Create stock determination group and rule and assign this in material master.


Give priority to EWM first and then IM.

2) You have to set up Batch determination with stock determination, in OPJ2. There is no button of stock determination in production order creation screen. With batch determination , system calls the stock determination in background.

Assign plant to production order type, stock determination rule. Call stock determination during batch determination.

3) Create a Batch class with characteristics of your requirement. I took LOBM_LWEDT(Last GR date).

4) Create a selection class. ( Selection classes are part of condition record like COB1, VCH1, MBC1)

Take SAP standard characteristics LOBM_MENGE(Batch determination sort qty) and LOBM_LGORT(Storage location)

5) Create a Sorting rule with LOBM_MENGE and LOBM_LGORT.(CU70)


Now, test the whole.

1) Stock in EWM and IM managed location.

0015 is EWM managed sloc and 0019 is IM managed sloc

2) Create Production order.

Most important is to have no predefined storage location for the component. Because ATP is checked at four level, Plant, sloc, batch, and Batch+Sloc. So, dont predefine production sloc for bom component.

Stocks are picked from EWM managed sloc and then from IM storage location.

Hope this helps.

Best regards

Shailesh Mishra

chaertl
Explorer
0 Kudos

Hi Shailesh,

thank you for your very detailed answer! I had a look at your suggestion and did set up my system accordingly. The batch is now determined from the correct storage location - from EWM. It looked very promising at first sight. But it will copy the storage location into the production orders component BOM. The result is, that the staging does not work anymore. To make things easier, I will use the SLocs you used in your example:

- stock and correct batch are on SLoc 0015

- batch is determined on SLoc 0015

- SLoc 0015 is copied into the component BOM

- then I release the order and the staging is done automatically

I get the following error:

Stor. location in PUB (0019) is not the same as prod.stor.location (0015) (LP099)

Is the SLoc 0015 also copied into the BOM in your system?

Thanks a lot for an answer!

JuergenPitz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

"Due to various reasons, I want the batch to be determined by ERP."

OK, but where do you have the batch determination? In the production order or in the outbound delivery?

Brgds

Juergen

---
Want to influence SAP software development decisions for EWM?
https://influence.sap.com/ewm2019

Want to learn EWM?
Check for EWM courses @ https://training.sap.com/trainingpath/Applications-Logistics+Execution+%26+Warehouse+Management-SAP+...
Get a SAP Learning Hub Subscription: https://training.sap.com/shop/learninghub

And it is EWM. NOT eWM - Duh!
And if your question includes the word "transfer order" - do NOT tag the question with Extended Warehouse Management!

chaertl
Explorer
0 Kudos

Hi Jürgen,

thanks for the answer. Right now, the batch determination is done in the production order. I have set the customizing and the material master accordingly.

Would it be better to do the batch determination in the delivery?

Thanks a lot and best regards

Christian

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

You are using PP-EWM-Integration means you use the business function LOG_PP_EWM_MAN ?

As component has assignment of storage location 9999 it will perform the batch determination for 9999 storage location.

If you do the stock transfer from 1111 to 9999 it will solve this issue.

For a production order component materials you may carry out stock determination for storage locations.

Please refer these links.

Stock and Batch Determination

Stock Determination

Best Regards,

R.Brahmankar

chaertl
Explorer

Hi,


the BF is activated. Of course the stock transfer will solve the issue. But in order to do the stock transfer, I need to determine the batch which has to be transferred, first. And for that, I want the batch determination to take the EWM managed SLOC into account.
But the links you provided were helpful!

Best regards

Christian