<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overwrite material BOM component in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417444#M1548856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with below steps...&lt;/P&gt;&lt;P&gt; - Take the header and item records in internal tables. &lt;/P&gt;&lt;P&gt; - Delete the BOM with FM CSAP_MAT_BOM_DELETE.&lt;/P&gt;&lt;P&gt; - Now add your new line item and delete the old item and then create the bom again by CSAP_MAT_BOM_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 14:19:58 GMT</pubDate>
    <dc:creator>styrolution_accenture</dc:creator>
    <dc:date>2010-10-14T14:19:58Z</dc:date>
    <item>
      <title>Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417443#M1548855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to over-write the component of a material BOM with another component in the same position. I am using FM CSAP_MAT_BOM_MAINTAIN for this. I am passing values to the the below parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATERIAL                            H.1013.2476&lt;/P&gt;&lt;P&gt;PLANT                                  3000&lt;/P&gt;&lt;P&gt;BOM_USAGE                       1&lt;/P&gt;&lt;P&gt;ALTERNATIVE                     1&lt;/P&gt;&lt;P&gt;VALID_FROM                      01.01.2003&lt;/P&gt;&lt;P&gt;FL_COMMIT_AND_WAIT     X&lt;/P&gt;&lt;P&gt;FL_DEFAULT_VALUES       X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values that I am passing in T_STPO&lt;/P&gt;&lt;P&gt;ITEM_CATEG                        L&lt;/P&gt;&lt;P&gt;ITEM_NO                               0010&lt;/P&gt;&lt;P&gt;COMPONENT                        H.1013.4572&lt;/P&gt;&lt;P&gt;COMP_QTY                          5.0&lt;/P&gt;&lt;P&gt;COMP_UNIT                          EA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here initially the BOM component is H.1013.4570 and I am trying to change it to H.1013.4572. This should be like replacing H.1013.4570 with H.1013.4572 in the same position. This can be done by CS02. However when I am using the above FM and then checking CS03 i see 2 BOM components H.1013.4572 and H.1013.4572. So basically this is not a replacement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried FMs for the same activity but didn't get the desired result.&lt;/P&gt;&lt;P&gt;a. CSAP_MAT_BOM_OPEN&lt;/P&gt;&lt;P&gt;b. CSAP_BOM_ITEM_MAINTAIN&lt;/P&gt;&lt;P&gt;c. CSAP_MAT_BOM_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me how it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 12:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417443#M1548855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T12:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417444#M1548856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with below steps...&lt;/P&gt;&lt;P&gt; - Take the header and item records in internal tables. &lt;/P&gt;&lt;P&gt; - Delete the BOM with FM CSAP_MAT_BOM_DELETE.&lt;/P&gt;&lt;P&gt; - Now add your new line item and delete the old item and then create the bom again by CSAP_MAT_BOM_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 14:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417444#M1548856</guid>
      <dc:creator>styrolution_accenture</dc:creator>
      <dc:date>2010-10-14T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417445#M1548857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the similar requirement, but i dont want to delete the BOM header only BOM components should be deleted.&lt;/P&gt;&lt;P&gt; my BOM header material is assigned to the additional material in tcode CS40. Becasue of this reason i couldn't delete the BOM header. Please advice how can i delete only BOM components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Syed Samdani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 07:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417445#M1548857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T07:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417446#M1548858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking into a possible solution for changing the BOM component. I tried to get the result with some other BAPIs however I found none to achieve the desired results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I found a possible solution with the original BAPI CSAP_MAT_BOM_MAINTAIN. After passing some possible combination of values I came to the conclusion that in table structure T_STPO type STPO_API03 we can use 2 fields u201CITEM_NODEu201D and u201CITEM_COUNTu201D to get the results (I see that these 2 fields have values in SAP Table STPO in fields u201CSTLKNu201D and u201CSTPOZu201D).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are passing the values to the below fields of the structure T_STPO, then the desired results can be achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_STPO (Mandatory Fields to get the result)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM_CATEG                    L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM_NO                           0010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMPONENT                   H.1013.4572 (New BOM component that would be replacing the old one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMP_QTY                       4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMP_UNIT                      EA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM_NODE                      00000016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM_COUNT                   00000032&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the only part that I am not sure of is whether ITEM_NODE and ITEM_COUNT can be passed from the 3rd party system. I believe that these are automatically generated numbers when a BOM component is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 13:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417446#M1548858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417447#M1548859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not set the deletion indicator field FLDELETE as X ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 13:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417447#M1548859</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-24T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite material BOM component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417448#M1548860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this function module i was successful in create BOM's using this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BOM_HEADER     TYPE CAD_BICSK ,"STRUCTURE FOR HEADER DATA&lt;/P&gt;&lt;P&gt;      IT_BOM_ITEM    TYPE TABLE OF CAD_BOM_ITEM,"INTERNAL TABLE FOR ITEM&lt;/P&gt;&lt;P&gt;      WA_BOM_ITEM    TYPE CAD_BOM_ITEM,"WORK AREA FOR ITEM&lt;/P&gt;&lt;P&gt;      IT_BOM_SUB_ITEM  TYPE TABLE OF CSSUBITEM ,"INTERNAL TABLE FOR SUB ITEM&lt;/P&gt;&lt;P&gt;      WA_BOM_SUB_ITEM  TYPE CSSUBITEM ,"WORK AREA FOR SUB ITEM&lt;/P&gt;&lt;P&gt;      IT_DMS TYPE TABLE OF CLS_CHARAC,"INTERNAL TABLE FOR DMS_CLASS_DATA&lt;/P&gt;&lt;P&gt;      WA_DMS TYPE CLS_CHARAC,"WORK AREA FOR DMS_CLASS_DATA&lt;/P&gt;&lt;P&gt;      IT_SAP_FIELD TYPE TABLE OF RFCDMSDATA,"INTERNAL TABLE FOR SAP_FIELD_DATA&lt;/P&gt;&lt;P&gt;      WA_SAP_FIELD TYPE RFCDMSDATA,"WORK AREA FOR SAP_FIELD_DATA&lt;/P&gt;&lt;P&gt;      E_RETURN       TYPE CAD_RETURN-VALUE,"STRUCTURE FOR RETURN&lt;/P&gt;&lt;P&gt;      E_MESSAGE      TYPE MESSAGE-MSGTX,"STRUCTURE FOR MESSAGE&lt;/P&gt;&lt;P&gt;      E_MESSAGE_LEN  TYPE CAD_RETURN-MESSAGE_LEN."STRUCTURE FOR MESSAGE LENGTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CAD_CREATE_BOM_WITH_SUB_ITEMS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_BOM_HEADER   = BOM_HEADER&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        E_RETURN       = E_RETURN&lt;/P&gt;&lt;P&gt;        E_MESSAGE      = E_MESSAGE&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        BOM_ITEM       = IT_BOM_ITEM&lt;/P&gt;&lt;P&gt;        BOM_SUB_ITEM   = IT_BOM_SUB_ITEM&lt;/P&gt;&lt;P&gt;        DMS_CLASS_DATA = IT_DMS&lt;/P&gt;&lt;P&gt;        SAP_FIELD_DATA = IT_SAP_FIELD.&lt;/P&gt;&lt;P&gt;    WA_RET-MATNR = WA_DATA1-MATNR.&lt;/P&gt;&lt;P&gt;    if e_return = 0 .&lt;/P&gt;&lt;P&gt;      wa_ret-status = 'SUCCESS'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      wa_ret-status = 'ERROR'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check it.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Manesh.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 14:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwrite-material-bom-component/m-p/7417448#M1548860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T14:06:15Z</dc:date>
    </item>
  </channel>
</rss>

