cancel
Showing results for 
Search instead for 
Did you mean: 

PR'S generated by the system are too late in the future and huge lot size in week

shailesh_mishra5
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Experts,

Can you please help why system generate PR so far in the future. Attached file is the file..

What parameters needs to be checked for this late PR creation?

They are touching week 35 for BE04 location.

Also,  system creates requisition huge one in week 35. Why system  cannot create smaller requisitions in week 30-34?

Need your help on this to understand this behaviour.

Appreciate your reply.

Best regards

Shailesh Mishra

Accepted Solutions (1)

Accepted Solutions (1)

former_member187488
Active Contributor
0 Kudos

Hi,

The huge PR covers supply shortage and safety stock which is OK.
Why no PR is generated in previous weeks, most possible reason is no source of supply found for it.
The logic behind is a little bit complicated.
If you're interested in looking into the coding, I can give you some hint.

BR,
Ada

shailesh_mishra5
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ada,

Thanks for your reply. Yes i will be interested to know it.

Business is more interested in knowing why PR is getting created so late in future

Appreciate if you can help

Best regards

Shailesh Mishra

former_member187488
Active Contributor
0 Kudos

Hi Shailesh,

Please first go to FM /SAPAPO/MSDP_SNPHEU_DRP_MATLOC, set breakpoint at statement "PERFORM heur_locprod".
When you go into this routine, you can first check below parts:

* prepare validity of sources

   perform drp_quota using iv_plobj is_ctrl

                           is_loc is_locmat it_sources

                           lv_stepds

                           lv_ship_date lv_plif_date lv_prod_date

                           iv_planstart                    "P66_45

                  changing lt_quota lv_no_quota.


After DRP_QUOTA is executed, check valid source of supplies in table lt_quota, especially the validity period of these source of supply (sos). Is the validity start of these sos very late?

Heuristic is done in below coding

* calc production or purchasing qtys

   perform drp_replenish_calc

           using is_ctrl iv_plobj

                 is_material is_loc is_locmat

                 lt_quota lv_no_quota

                 lt_repl

        changing lt_poco lt_prod lt_subst.

But there's still quite complicated logic inside ...

Best Regards,
Ada

shailesh_mishra5
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ada,

Thanks for your reply

Best regards

Shailesh Mishra

Answers (0)