<?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: CS01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875866#M1594247</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;there may be many reasons for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didi you check the existence of all BOM componentes in the target plant. If you have checked this, maybe some other STPO_API01 data are not valid in the target plant (look at VENDOR, PURCH_GRP, PURCH_ORG, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 09:57:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-26T09:57:00Z</dc:date>
    <item>
      <title>CS01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875865#M1594246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt; I want to copy a BOM material to another plant.&lt;/P&gt;&lt;P&gt; I am using FM CS_BOM_EXPL_MAT_V2, then use the &lt;/P&gt;&lt;P&gt;CSAP_MAT_BOM_READ for source plant,&lt;/P&gt;&lt;P&gt;CSAP_MAT_BOM_CREATE to create bom in target plant.&lt;/P&gt;&lt;P&gt;I am getting sy-subrc as 1 in the FM CSAP_MAT_BOM_CREATE. I am not sure why it is as I am passing the parametzers correctly I suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 Use FM CS_BOM_EXPL_MAT_V2.&lt;/P&gt;&lt;P&gt;step 2: Loop at STB.&lt;/P&gt;&lt;P&gt;step 3: Inside the loop call FM CSAP_MAT_BOM_READ.&lt;/P&gt;&lt;P&gt;Step 4;&lt;/P&gt;&lt;P&gt;    call function 'CALO_INIT_API'&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;               log_object_not_found     = 1&lt;/P&gt;&lt;P&gt;               log_sub_object_not_found = 2&lt;/P&gt;&lt;P&gt;               other_error              = 3&lt;/P&gt;&lt;P&gt;               others                   = 4.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CSAP_MAT_BOM_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    material                 = lv_matnr&lt;/P&gt;&lt;P&gt;   PLANT                    = lv_werks&lt;/P&gt;&lt;P&gt;    bom_usage                = '3'&lt;/P&gt;&lt;P&gt;   VALID_FROM               = lv_date&lt;/P&gt;&lt;P&gt;    i_stko                   = i_stko1&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FL_WARNING               = api_warning&lt;/P&gt;&lt;P&gt;   BOM_NO                   = v_bom_no&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   T_STPO                   = i_stpoi&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR                    = 1&lt;/P&gt;&lt;P&gt;   OTHERS                   = 2     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get sy-subrc as 1.&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong in my assumption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; K.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 08:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875865#M1594246</guid>
      <dc:creator>former_member188724</dc:creator>
      <dc:date>2011-04-26T08:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: CS01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875866#M1594247</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;there may be many reasons for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didi you check the existence of all BOM componentes in the target plant. If you have checked this, maybe some other STPO_API01 data are not valid in the target plant (look at VENDOR, PURCH_GRP, PURCH_ORG, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 09:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875866#M1594247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-26T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: CS01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875867#M1594248</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;Please check the error message after executing the FM 'CSAP_MAT_BOM_CREATE'. For sy-subrc eq 1, there can be lot of errors. So check the standard structure which hold the error messages for the exact error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 10:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cs01/m-p/7875867#M1594248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-26T10:04:27Z</dc:date>
    </item>
  </channel>
</rss>

