SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

Negative stock considering in WRP1

Former Member
0 Kudos

Hi Retail Gurus,

We are facing issue in Replenishment in WRP1, negative stock is allowed in
store and article as a result negative stock accumulated (movement 251)and when
replenishment ran its considering negative stock + target stock in wrp1, but as
per my knowledge negative stock will not be considered while running
replenishment WRP1, rather it will deduct stock once stock is added @ store
level.

Target stock in store is 3 and negative stock accumulated is -8,
replenishment happening for 11 quantities, client is telling replenishment
should happen only for 3 quantities not 11 and negative stock should deduct
from inventory and WRP1 should not consider this negative stock.

Kindly help

7 REPLIES 7

former_member182609
Active Contributor
0 Kudos

This is std .Always system checks available qty then based on that it will replenish the qty.As the store activated the negative stock  system will consider negative qty then will replenish it.so in this case the qty is  11 (-8+3 ).If  it replenish  only 3 qty then the available qty is MMBE only -5 as system will consume 3 qty.

May be need to look at complete custom solution or train the user on Replenishment process.

Former Member
0 Kudos

Thanks Sridhar,

They real problem is now, when user has change RP type as RP, STOs are
creating daily through batch job, without considering re-ordering point, target
stock and inventory.

Daily its creating STO for this Article and site combination. Every time its
considering same quantity as 11, and in WR60 its showing stock has -8 and
re-ordering point as 3 and replenishment required as 11,but actual inventory in
site is 11, its considering -8.

Kindly help

0 Kudos

Hi Rajesh,

I would re-consider the way negative stocks are settled in the logistic flow because I am afraid that the system will always consider negative stock as a requirement.

However, to solve your current issue, I'd use user-exit WRPL0001 (FM EXIT_SAPLWRPL_001). There you can amend all important RP parameters including target stock and store stock levels;

PX_ITEMS-SOBST = Target stock at recipient

PX_ITEMS-STOCK = Stock level of recipient

To get over the negative stock hurdle you could set PX_ITEMS-STOCK to zero in case PX_ITEMS-STOCK < 0.

Try to put a breakpoint in include LWRPLF02 after CALL CUSTOMER-FUNCTION '001', line 246 in the system I'm currently working in, and play with the the above values in PX_ITEM.

Hope this helps.

Cheers,

Tomas

0 Kudos

Hi Tomas,

I just checked this FM exit in se37 and its not implemented in our system.

Kindly advice

0 Kudos

Hi Vinay,

first, sorry for the first name mistake in my initial post. I answered to other discussions and I must have got it all mixed up.

As for the missing function module in SE37, are you talking about function module EXIT_SAPLWRPL_001? I don't want to be annoying but I'm (almost) sure you have it in your system!

The enhancement WRPL0001 must be activated via transaction CMOD where you proceed as follows;

1 - create a project in transaction CMOD (or select an existing one)

2 - add enhancement WRPL0001

3 - activate component EXIT_SAPLWRPL_001

4 - save

By the way I searches OSS and the following SAP note describes your issue and proposes the same solution;

189277 - Replenishment planning and negative stock

Cheers,

Tomas

0 Kudos

Hi Tomas,

I opened tcode CMOD and inserted WRPL0001 and click on disply and below is the error I got

"Enhancement project WRPL0001does not exist"

I think this enhancement is not included in our system.

And FM EXIT_SAPLWRPL_001.... I just checked in SE37 when it opened I clicked on INCLUDE "ZXWRPLU01" I double clik on this field and got below message

"Program names ZX...are reserved for includes of exit funcation groups"

I am funcational guy doesn't understand these ABAP program much"

Kindly advice

Regards,

Vinay

0 Kudos

Hi Vinay,

no problem, I will explain in more detail but your response already confirmed that you're not missing anything in your system. So let's go back to CMOD (I had to grey out some existing settings);

1 - create a project in transaction CMOD Z* according to your needs and preferences

2 - enter the project name and click Enhancement Assign.

3 - Assign WRPL0001

4 - Click on Components to view (and later activate) EXIT_SAPLWRPL_001

   You'll see it on the right with red lights as it is not yet activated

However, you'll need somme ABAP assistance to maintain the function module (the message "Program names ZX...are reserved for includes of exit funcation groups" is normal as the FM is not active).

Cheers,

Tomas