Skip to Content

How to create separate planned order / purchase requesition for same date

In an MTS scenario MRP always considers requirements on the same date as one requirement.

In order to force MRP to create a separate planned order for each dependent requirement BAdI MD_ADD_ELEMENT method ADD_CHANGE_ELEMENTS can be used.

This is a basic coding which shows how this can basically be achieved. Please consider performance issues, type of call, type of call, etc.

And adjust according to your business requirements.

data: lf_temp_date type DAT00, ls_MDPS type BADI_MDPSX, lf_planr type PLANR.

CH_CHANGED = ‘X’.

loop at CH_COPY_MDPSX into ls_MDPS where delkz = ‘SR’. ” whatever requirement you have AR, SM, etc.

     if ls_MDPS-dat00 = lf_temp_date.

          ls_mdps-planr = lf_planr + 1.
          lf_planr = ls_mdps-planr.
      else.
            lf_planr = ls_mdps-planr.
      endif.

      lf_temp_date = ls_mdps-date00

endloop.

5 Comments
You must be Logged on to comment or reply to a post.
  • Hi Ulrich,


      Pl check two possibility whether u r using any lot size for material & second what setting u did in MRP4 view in material master whether individual / collective requirement, put individual requirement and check.


    Amit Awasthi.

  • Hi Ulrich

    A solution for this issue has been already asked hundreds of times on this forum. I’ll definitely try your solution in my test system. Thanks for sharing!

    BR

    Caetano

    • Hi Caetano,

      did you try this solution? I’m looking for a method that split purchase requisition for material managed with EX lot size  with same requirement date

      Thanks

      Regards

  • Hi cetano

    Thanks lot

    By chaging H_COPY_MDPSX into ls_MDPS where delkz = ‘PP’

    multiple planned order has got even same date demand or multiple production version.

     

    Rename the BAdi as follows,

    In order to force MRP to create a separate planned order for each dependent requirement BAdI MD_ADD_ELEMENTS method ADD_CHANGE_ELEMENTS can be used