<?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: Problem adding components to production order using CO_XT_COMPONENT_ADD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854185#M1958487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody know how to solve my issue ?&lt;/P&gt;&lt;P&gt;The consultant told me to try module function&amp;nbsp; CLOI_CHANGES_UPL_31 but I think it's not suitable for my requirement..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2016 11:54:30 GMT</pubDate>
    <dc:creator>maria_merino</dc:creator>
    <dc:date>2016-09-07T11:54:30Z</dc:date>
    <item>
      <title>Problem adding components to production order using CO_XT_COMPONENT_ADD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854184#M1958486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add components to production order. Before doing that I delete an existing component using: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CO_XT_COMPONENTS_DELETE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CO_IT_SET_FLG_ITAB_NEW'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CO_XT_ORDER_PREPARE_COMMIT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WAIT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if I have deleted position 0020, I need to add a new component in that 0020 position with function CO_XT_COMPONENT_ADD I get error X4017 (Component &amp;amp;1: Operation not found in order &amp;amp;2). Is there any posibility to add component in the same position I have previously deleted ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 10:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854184#M1958486</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-09-06T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding components to production order using CO_XT_COMPONENT_ADD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854185#M1958487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody know how to solve my issue ?&lt;/P&gt;&lt;P&gt;The consultant told me to try module function&amp;nbsp; CLOI_CHANGES_UPL_31 but I think it's not suitable for my requirement..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 11:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854185#M1958487</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-09-07T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding components to production order using CO_XT_COMPONENT_ADD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854186#M1958488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria&lt;/P&gt;&lt;P&gt;Can you share us a code snippet in order to replicate the error please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with Production orders but I faced a similar issue several months ago with maintenance orders, since they also use operation numbers. In order to execute the function you need to concatenate the operations number with the ORDERID in order to create a object key that the function identifies the operation. like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;CONCATENATE ORDERID CONST_OPERATION INTO IT_METHOD-OBJECTKEY.&lt;/P&gt;
&lt;P&gt;IT_METHOD-REFNUMBER = REFNO.&lt;BR /&gt;IT_METHOD-OBJECTTYPE = 'COMPONENT'.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;IT_METHOD-METHOD = 'CREATE'.&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OrderID is the Maintenance order number generated by SAP&lt;/P&gt;&lt;P&gt;CONST_OPERATION is the operations number (in my case is always 0010)&lt;/P&gt;&lt;P&gt;REFNO is always 0001&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And to add the new component use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;IT_COMPONENTS-ACTIVITY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = CONST_OPERATION.&lt;/P&gt;
&lt;P&gt;IT_COMPONENTS-MATERIAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = COMPONENTS_LIST-MATERIAL.&lt;/P&gt;
&lt;P&gt;IT_COMPONENTS-PLANT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PLANT.&lt;/P&gt;
&lt;P&gt;IT_COMPONENTS-ITEM_CAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'L'.&lt;/P&gt;
&lt;P&gt;IT_COMPONENTS-STGE_LOC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = COMPONENTS_LIST-STGE_LOC.&lt;/P&gt;
&lt;P&gt;IT_COMPONENTS-REQUIREMENT_QUANTITY&amp;nbsp; = COMPONENTS_LIST-REQUIREMENT_QUANTITY. ...&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In my case the operations number is a number that in the transactions always fills with 0010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopes this helps to solve your issue.&lt;/P&gt;&lt;P&gt;Warm regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorenzo Martín Olmos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-adding-components-to-production-order-using-co-xt-component-add/m-p/11854186#M1958488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-16T17:49:20Z</dc:date>
    </item>
  </channel>
</rss>

