Skip to Content

BOM w/ ECM is recursive

Hi all,

I created a BOM "A" with ECM number (CS01) and set 2 materials with subitem; "B" and "C".

I deleted "B" (CS02) one of those materials (w/ ECM also) because was wrong.

After that I created a BOM with ECM number for the material "B" and try to set the material "A" as a component. The system says that the BOM is recursive.

If I haven't deleted the material "B" from the BOM "A", it will be the perfect scenario of recursiveness. But the detail is that I deleted "B" from BOM "A" before creating the "B" BOM.

In STPO table, the material "B" still is considered as a component.

Does anybody know this issue? Do I have to open a ticket for SAP to treat BOM w/ ECM and recursiveness.

PS.: I've tested the same scenario without ECM and it worked perfectly (without recursiveness).


Caio Gama.

A after: A

---B --C



---A (error: bom is recursive)

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 24, 2012 at 07:39 PM

    Check the dates of your ECN you used.

    If you deleted something with ECN does not physically get deleted from the table, it's just becomes invalid after the "valid from" date of ECN. If you delete a component without ECN then it gets deleted from STPO table and other related tables.

    Add a comment
    10|10000 characters needed characters exceeded

    • Jeevan,

      I understood well what you said. And it makes sense.

      But in that case, that I've already deleted, or turned it invalid with ECM. There's a way that I can go back e make the component disappear from STPO and others?

      I tried to change the BOM without ECM, but the material don't appear again in the BOM.


      Caio Gama.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2012 at 07:52 PM

    Hi Caio,

    Did you use the same ECN to create and delete the BOM items? or different ECNs?

    Are the valid dates of the ECN different?



    Add a comment
    10|10000 characters needed characters exceeded

    • Please check the note 42891 - Recursiveness Check point 2.

      For reasons of performance, the system does not make any fine distinctions during the recursiveness check in the BOM explosion.

      1. BOM items of a bill of material are treated as being assigned to all variants of a variant BOM or as being assigned to all configured materials of a configured bill of material.

      2. The effectivity (date / parameter effectivity) is not taken into account.

      3. The plant is not taken into account.

      4. The usage is not taken into account.

      And I don't think you can make the deleted component B (with ECN) re-appear in the BOM of A, so that you can delete it again without ECN. Even if you add the component with ECN with same item number it's gonna change the STLKN (item ID in CS03) and STLPOZ values in STPO table. Basically system just looks at the table STPO_V01 for any entries.

      I would suggest you to just check the box Recurs. allowed. to overcome this error.


      You can make the deleted item appear again but it's by changing table values.

      1. Go to SE16N in change mode (&sap_edit)

      2. Enter STPO and execute for that bom number and delete the field values AEDAT and AENAM (note down the STLKN for that component)

      3. Go to STAS enter bom number and STLKN for that component, you will see two entries one with LKENZ = X, just delete that line only keep the other one. (Normally STASZ of that line is higher than the one with LKENZ = blank).(When you delete a component with change number, system system will just adds a line to STAS with same STLKN but LKENZ = X)

      4. Now go to CS02 without change number, your item B will appear, just delete the line item, it will get deleted permanently from table STPO and STAS and STPO_V01.

      5. Delete the entry from STPO_V01 for the STLNR and STLKN combination from step 2

      Try this first in your QAS and then do it in production.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.