<?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 DELETE order component using BAPI 'BAPI_ALM_ORDER_MAINTAIN' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038964#M1500415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to delete component from work order. my logic below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_method-refnumber = 000001.&lt;/P&gt;&lt;P&gt;wa_method-objecttype = 'COMPONENT'.&lt;/P&gt;&lt;P&gt;wa_method-method = 'DELETE'.&lt;/P&gt;&lt;P&gt;wa_method-objectkey = p_order.&lt;/P&gt;&lt;P&gt;APPEND wa_method TO int_method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_method-refnumber = 000001.&lt;/P&gt;&lt;P&gt;wa_method-objecttype = ''.&lt;/P&gt;&lt;P&gt;wa_method-method = 'SAVE'.&lt;/P&gt;&lt;P&gt;wa_method-objectkey = p_order.&lt;/P&gt;&lt;P&gt;APPEND wa_method TO int_method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;it_methods = int_method&lt;/P&gt;&lt;P&gt;return = int_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this FM call I am getting these messages returned from "return table"&lt;/P&gt;&lt;P&gt;"Entry 1 in table COMPONENT (method DELETE) was not found"&lt;/P&gt;&lt;P&gt;"Error during processing of BAPI methods"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = ''&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = wa_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help is appreciated ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Jun 2010 12:34:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-19T12:34:00Z</dc:date>
    <item>
      <title>DELETE order component using BAPI 'BAPI_ALM_ORDER_MAINTAIN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038964#M1500415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to delete component from work order. my logic below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_method-refnumber = 000001.&lt;/P&gt;&lt;P&gt;wa_method-objecttype = 'COMPONENT'.&lt;/P&gt;&lt;P&gt;wa_method-method = 'DELETE'.&lt;/P&gt;&lt;P&gt;wa_method-objectkey = p_order.&lt;/P&gt;&lt;P&gt;APPEND wa_method TO int_method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_method-refnumber = 000001.&lt;/P&gt;&lt;P&gt;wa_method-objecttype = ''.&lt;/P&gt;&lt;P&gt;wa_method-method = 'SAVE'.&lt;/P&gt;&lt;P&gt;wa_method-objectkey = p_order.&lt;/P&gt;&lt;P&gt;APPEND wa_method TO int_method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;it_methods = int_method&lt;/P&gt;&lt;P&gt;return = int_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this FM call I am getting these messages returned from "return table"&lt;/P&gt;&lt;P&gt;"Entry 1 in table COMPONENT (method DELETE) was not found"&lt;/P&gt;&lt;P&gt;"Error during processing of BAPI methods"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = ''&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = wa_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help is appreciated ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 12:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038964#M1500415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-19T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE order component using BAPI 'BAPI_ALM_ORDER_MAINTAIN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038965#M1500416</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;you have to fill table IT_COMPONENT. Here is a quote from BAPI documentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;However, as this is not the unique component key, you can only access the components to change them, delete them, or add long texts by using the reservation number/item, which is only given after saving. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your record for method DELETE you correctly point to the first component but there is no first component. Try to add a record to table IT_COMPONENT with correct reservation number/item. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jun 2010 23:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038965#M1500416</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-06-20T23:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE order component using BAPI 'BAPI_ALM_ORDER_MAINTAIN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038966#M1500417</link>
      <description>&lt;P&gt;Hello, i'm having the same issue but deleting an operation that already have components assigned.&lt;/P&gt;&lt;P&gt; @MartinVoros, can you please tellme where can i find that documentation you're talking about?&lt;BR /&gt;Have a link?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Mariano&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-order-component-using-bapi-bapi-alm-order-maintain/m-p/7038966#M1500417</guid>
      <dc:creator>mjchiappe</dc:creator>
      <dc:date>2021-10-26T16:29:45Z</dc:date>
    </item>
  </channel>
</rss>

