cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MD_ADD_ELEMENTS - MRP Classic

Miguel_Monteiro1
Explorer
0 Likes
845

Hello,

We have a request to include Dependent Requirements (SB), in materials that have a MRP type V2 (reorder point planning). By using the BADI, MD_ADD_ELEMENTS, we can see the requirements in MD04, but when we run the MRP Classic, the SB are ignored in the net calculation.

In include LM61YF0F, form add_sub_mdpsx it checks the type of segments and if it's SB it changes the quantity to 0. It there's any way of including the SB in the new requirement calculations?

lus_miguelmonteiro2_0-1735896794086.png

Thanks

 

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion

Hello @Miguel_Monteiro1 

Reorder point planning with external requirements is pretty much the same as MRP planning. Thus, I would strongly recommend switching to PD MRP type.

If you have to stick to reorder point, then you have two options:

  1. Either add dependent requirements with MD_ADD_ELEMENTS as MRP element type MR "reservation". This way they won't be ignored by the piece of code indicated. As you are adding MRP elements with a custom logic, it doesn't really make any difference if you add them as MR or SB.
  2. Modify the LM61YF0F include and add SB there. That is the most intrusive approach, but it implements the requirement directly. 

 

      IF af61y-verfr EQ bstplan.
        IF  cm61m-icbed NE char1
        AND cm61m-icbed NE char2.
          af61y-mng01 = 0.
        ELSE.
          IF mdpsx-delkz EQ mrbed
          OR mdpsx-delkz EQ skbed   "<-- added SB MRP element type 
          OR mdpsx-delkz EQ ulres      "RE 4.6B
          OR mdpsx-delkz EQ vbeda
          OR mdpsx-delkz EQ vbedb      "TF 3.1G
          OR mdpsx-delkz EQ vbedc
          OR mdpsx-delkz EQ vbede
          OR mdpsx-delkz EQ vbedf      "TF 3.1G
          OR mdpsx-delkz EQ vbedg
          OR mdpsx-delkz EQ vbedi
          OR mdpsx-delkz EQ vbedj
          OR mdpsx-delkz EQ vbedz       " -AIP-
          OR mdpsx-delkz EQ vbedw
          OR mdpsx-delkz EQ vbedt
          OR ( mdpsx-delkz EQ retpo AND cm61m-u1bed NE space ) "HW 501895
          OR ( mdpsx-delkz EQ brbed AND cm61m-bbbed NE space ) "RE 4.0A
          OR ( mdpsx-delkz EQ ubabr AND cm61m-u1bed NE space ) "RE 4.0A
          OR ( mdpsx-delkz EQ uaabr AND cm61m-u2bed NE space ) "RE 4.0A
          OR ( mdpsx-delkz EQ ulabr AND cm61m-u4bed NE space ) "RE 4.0A
          OR ( mdpsx-delkz EQ arbed AND mdpsx-baugr NE space
                                    AND cm61m-a1bed NE space ) "RE 4.0A
          OR ( mdpsx-delkz EQ arbed AND mdpsx-baugr EQ space
                                    AND cm61m-a2bed NE space )."RE 4.0A
            IF  cm61m-icbed EQ char2
            AND mdpsx-dat00 GT cm61m-wzter.
              af61y-mng01 = 0.
            ENDIF.
          ELSE.
            af61y-mng01 = 0.
          ENDIF.
        ENDIF.
      ENDIF.​

 

Best regards

Dominik Tylczynski

 

Miguel_Monteiro1
Explorer
0 Likes
Thanks Dominik, we will go by the option 1, we will force the MR and like that it works. Already tested and it's OK

Answers (0)