You are on page 1of 11

8/11/2020 Batch determination with object dependencies.

Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like


Community

Ask a Question Write a Blog Post Login

Technical Articles

shailesh mishra
March 18, 2020 4 minute read

Batch determination with object dependencies. Picking


batches with % RSL in EWM
5 Likes 2,206 Views 5 Comments

Sometime it is required to conduct batch determination and calculate SLED dynamically. The dynamic
SLED calculation conducted during batch determination in ERP or in EWM gives a leverage to customer to
pick batches with remaining shelf life in percentage or with Remaining shelf life in days.

Business don’t want to prede ne a certain date as a selection criterion in the strategy record but need a
functionality to make a dynamic SLED calculation on the basis of data taken from the sales order or the
delivery,and a value which is prede ned in the selection criteria (the remaining life as a percentage of the
total shelf life.

Imagine a below case.

A batch managed milk product when shipped from Canada to Brazil, EWM system should pick only those
batches whose remaining shelf life(RSL)>=40%

The same product when shipped to a customer in India, EWM system should be able to pick those
batches which satisfy the RSL>=70%

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 1/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

So, the equation of Shelf life expiration date.

Shelf life expiration date = Delivery date + (Remaining shelf life in % * total shelf life / 100)

Hence, EWM delivery document should be capable enough to pick batches ful lling the above equation.

Physics behind the Dynamic Batch determination


To carry out the above calculation, an object dependency needs to be created and same needs to be linked
to the characteristics which is the in uencing value. Here the in uencing value is LOBM_RLZ_PROZ.

SAP has given a standard characteristics LOBM_RLZ_PROZ.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 2/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

LOBM_RLZ_PROZ is linked to an Object dependency to infer values from characteristics using below code.

Note: In S/4HANA object dependencies,use the dependency type ‘Procedure‘ instead of ‘Action’. The
dependency type ‘Action’ is not supported in S/4HANA.

1. Selection class: Take LOBM_RLZ_PROZ, LOBM_VFDAT and LOBM_LFDATE only


2. Batch class: LOBM_VFDAT
3. Create Condition record for 2 customers and assign the selection class.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 3/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

Create 2 Sales order with delivery date for 2 customers as below.

For customer in India, EWM should pick only those whose RSL>=70% and should have dynamic SLED of
9th may

For Customer in Brazil, EWM should pick batches whose RSL>=40% having dynamic SLED of 4th may.

Delivery in ERP.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 4/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Batch Selection criteria in EWM:


Follow RSS feed Like

Check the warehouse request against the ERP delivery in EWM. EWM system has successfully carried the
dynamic SLED calculation using object dependency of variant con guration.

Shelf life expiration date = Delivery date + (Remaining shelf life in % * total shelf life / 100)

Batch picked against the correct dynamic SLED.

For RSL>=40%, Customer based in brazil, EWM picks only those batches whose SLED >=04.05.2020
For RSL>=70%, Customer based in India, EWM picked only 2 batches which satis ed the condition of
dynamic SLED equation.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 5/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

Monitor stock:

One batch is not picked because it didnt satisfy the any SLED equation.

This dynamic SLED calculation is extremely powerful as it enhances EWM capability to validate SLED/BBD
in Outbound process.

SAP EWM even allows to pick expired batches from Storage bin, there is no check or con guration in
Standard which allows to forbid this action. Though, in Inbound process, SAP EWM has the capability to
check SLED/BBD, but outbound process has no such functionality.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 6/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

Outbound process:

For outbound process, there is no validation process for BBD/SLED and EWM can even pick expired
batches. The con guration to validate SLED/BBD is missing for outbound document category PDO and
item type ODLV.

Note: If you take total SLED in months, then there will be rounding values as Functional module use be
below code . Months is constant as 30. So, for better calculation take SLED in Year.

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 7/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Follow RSS feed Like

Batch status management (LOBM_ZUSTD) can be used to change the expired batches from ” Unrestricted
to Restricted” and enforce con guration in EWM to disallow creation of warehouse task with restricted use
batch. However, this is again a manual operation to change batch status.

There is one program /SCWM/R_STOCK_TYPE_CHANGE which can be scheduled in background to move


the expired batches to block stock types. But, the dynamic batch determination using selection criteria like
LOBM_RLZ and LORB_RLZ_PROZ is much much powerful than above.

References:

SAP note: 1305608 – Overview: Best-before date/expiration date batches

SAP note: 33396 – Batch determination: Selection with remaining shelf life LOBM_RLZ

There are some more powerful functionality given in S/4 HANA 1909 on Batches in EWM. In my next, blog I
would write on Stock Consolidation by Batch consolidation.

https://help.sap.com/viewer/e296651f454c4284ade361292c633d69/1909.000/en-
US/001bcfe3917949f8810a54270f9ced00.html

Best regards

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 8/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Shailesh Mishra
Follow RSS feed Like

Alert Moderator

Assigned tags

SAP Extended Warehouse Management | EWM - Basic Functions | EWM - Basis | EWM - Delivery

Processing | EWM - Goods Movement |

View more...

Related Blog Posts

Interoperability of Batches between ERP and EWM


By shailesh mishra , Sep 10, 2018

Documentary batches and its integration to SAP EWM


By shailesh mishra , Mar 06, 2020

Elasticity of batch management in subcontracting using delivery


By shailesh mishra , Dec 03, 2018

Related Questions

Batch Determination while picking in EWM (Embedded)


By PV S , Dec 06, 2018

Di erences in batch management in IM, WM and EWM


By Chaitanya Naravane , Jan 18, 2016

Automatic batch determination in EWM

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 9/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

By Former Member , Feb 11, 2015


Follow RSS feed Like

5 Comments

You must be Logged on to comment or reply to a post.

Dhaval Chauhan

March 19, 2020 at 9:38 am

Hi,
This RSL functionality is only with 1909 or in earlier version also?

Like(1)

shailesh mishra | Post author

March 19, 2020 at 2:01 pm

Hi,

This functionality is available from ages in ECC.

Like(1)

Mathivanan Vidhyasegaran

March 19, 2020 at 4:58 pm

Excellent information Shailesh..I really appreciate your contribution here 🙂

Like(0)

Mathivanan Vidhyasegaran

March 19, 2020 at 5:01 pm

One quick clari cation

1. What you mean by “Create Condition record for 2 customers and assign the selection class” – Could you
pl. elaborate with T.code
2. Does the dependency procedure get CIFed to EWM along with batch information?

Thanks & Br

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 10/11
8/11/2020 Batch determination with object dependencies. Picking batches with % RSL in EWM | SAP Blogs

Mathi
Follow RSS feed Like
Like(0)

Dominik Tylczynski

March 20, 2020 at 9:23 am

That is one awesome piece of writing.

Especially it’s building on standard SAP ERP functionality that regrettably is not wide known, seldom used
but often reinvented with custom ABAPs.

Kudos!

Dominik Tylczynski

Like(0)

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2020/03/18/batch-determination-with-object-dependencies.-picking-batches-with-rsl-in-ewm/ 11/11

You might also like