SAP – Copy Control of BOM Items

Home / Blog / SAP – Copy Control of BOM Items

I recently came across something that had me stumped for a while, so I didn’t want to forget it.  I had a situation where I wanted to create a return order with reference to a sales order.  Sounded so simple.  The catch was that the sales order had a sales BOM.  Imagine you have a kit of sorts with a random assortment of pieces, and the customer decides to return one of them.  Depending on your business, you might allow for this.  Well, in general, SAP won’t let you do this.  You will get an error:

Item xxxxxx is a component of a bill of material so cannot be copied.
Item XXXXXX contains errors and cannot be copied.

Well, I did a lot of digging, and a lot of trial and error.  I thought the issue was with item portion of the copy control, so I kept trying different combinations.  At the end of the day, what I did was the following:

  1.  Remove the copy control for the main item of the sales BOM.  Since I was only doing components of the sales BOM, didn’t want to even allow the header.
  2. Needed to update the requirement for DataT with a bit of code.  The idea is that in the copy structure you manually remove the BOM data from the line item, allowing you to copy it.

LOOP AT CVBAP.
IF CVBAPSTLNR NE SPACE.
CLEARCVBAPUEPOS,
CVBAPSTLNR,
CVBAPSTLTY,
CVBAPSTLKN,
CVBAPSTPOZ.
MODIFY CVBAP.
ENDIF.
ENDLOOP.

Once I finally found this, everything else fell into place.  I hope I can save you some of the pain it took me to figure this out 🙂

Thanks for reading,

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *