<?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: Modify a process order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139704#M114218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay,&lt;/P&gt;&lt;P&gt;I'm trying this BAPI filling the table it_methods with the method SAVE and filling the table it_component and it_component and returns me the message type S "BAPI control has finished" but there is no change into the order.&lt;/P&gt;&lt;P&gt;Do you have any example of how to use this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2006 11:03:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-20T11:03:00Z</dc:date>
    <item>
      <title>Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139702#M114216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I'm trying to modify the field charg on the materials in a process order, I've tried the function CLOI_CHANGES_UPL_45 to modify other fields for an order, but the field CHARG is not supported, anyone knows how I can modify it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 10:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139702#M114216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T10:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139703#M114217</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 can try with this BAPI..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BAPI_ALM_ORDER_MAINTAIN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 10:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139703#M114217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139704#M114218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay,&lt;/P&gt;&lt;P&gt;I'm trying this BAPI filling the table it_methods with the method SAVE and filling the table it_component and it_component and returns me the message type S "BAPI control has finished" but there is no change into the order.&lt;/P&gt;&lt;P&gt;Do you have any example of how to use this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 11:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139704#M114218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139705#M114219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xavier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE BAPI_TRANSACTION_COMMIT after the BAPI Call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-subrc = 0.

Call function 'BAPI_TRANSACTION_COMMIT'.
...

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 11:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139705#M114219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139706#M114220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done it, but I can't see the changes, maybe I'm not filling correctly the table it_methods because I only fill the field method with value 'SAVE' and I don't fill the other fields. Do you know if I have to fill them and how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 11:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139706#M114220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139707#M114221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Xavier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you show the parameters what are you passing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 11:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139707#M114221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139708#M114222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I've tried:&lt;/P&gt;&lt;P&gt;data: it_methods type table of BAPI_ALM_ORDER_METHOD with header line.&lt;/P&gt;&lt;P&gt;data: it_comp type table of BAPI_ALM_ORDER_COMPONENT with header line,&lt;/P&gt;&lt;P&gt;      it_comp_up type table of BAPI_ALM_ORDER_COMPONENT_UP with header line,&lt;/P&gt;&lt;P&gt;      it_return type table of bapiret2,&lt;/P&gt;&lt;P&gt;      it_header type table of BAPI_ALM_ORDER_HEADERS_I with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_methods-OBJECTTYPE = 'COMPONENT'.&lt;/P&gt;&lt;P&gt;it_methods-method = 'CHANGE'.&lt;/P&gt;&lt;P&gt;append it_methods.&lt;/P&gt;&lt;P&gt;it_comp-RESERV_NO = '1148'.&lt;/P&gt;&lt;P&gt;it_comp-RES_ITEM = '1'.&lt;/P&gt;&lt;P&gt;it_comp-material = '000000000000000004'.&lt;/P&gt;&lt;P&gt;it_comp-plant    = '0101'.&lt;/P&gt;&lt;P&gt;it_comp-stge_loc = '0102'.&lt;/P&gt;&lt;P&gt;it_comp-batch    = '20050719'.&lt;/P&gt;&lt;P&gt;append it_comp.&lt;/P&gt;&lt;P&gt;it_comp_up-batch = 'X'.&lt;/P&gt;&lt;P&gt;append it_comp_up.&lt;/P&gt;&lt;P&gt;refresh it_return.&lt;/P&gt;&lt;P&gt;it_header-orderid = '1000185'.&lt;/P&gt;&lt;P&gt;it_header-ORDER_TYPE = 'Z010'.&lt;/P&gt;&lt;P&gt;append it_header.&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             = it_methods[]&lt;/P&gt;&lt;P&gt;    IT_HEADER              = it_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HEADER_UP           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HEADER_SRV          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HEADER_SRV_UP       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_USERSTATUS          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_PARTNER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_PARTNER_UP          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OPERATION           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OPERATION_UP        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_RELATION            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_RELATION_UP         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IT_COMPONENT           = it_comp[]&lt;/P&gt;&lt;P&gt;    IT_COMPONENT_UP        = it_comp_up[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_TEXT                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_TEXT_LINES          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSION_IN           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RETURN                 = it_return[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ET_NUMBERS             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 11:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139708#M114222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139709#M114223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xavier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you missed &amp;lt;b&amp;gt;IT_HEADER_UP&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass this also with update flag info..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139709#M114223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139710#M114224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have this error: "Error  during processing of BAPI methods" and I don't know how to solve it, I've filled the table as follow:&lt;/P&gt;&lt;P&gt;it_methods-refnumber = '000001'.&lt;/P&gt;&lt;P&gt;it_methods-OBJECTTYPE = 'COMPONENT'.&lt;/P&gt;&lt;P&gt;it_methods-method = 'CHANGE'.&lt;/P&gt;&lt;P&gt;it_methods-objectkey = '000001000185'.&lt;/P&gt;&lt;P&gt;append it_methods.&lt;/P&gt;&lt;P&gt;clear it_methods.&lt;/P&gt;&lt;P&gt;*it_methods-refnumber = '000002'.&lt;/P&gt;&lt;P&gt;it_methods-method = 'SAVE'.&lt;/P&gt;&lt;P&gt;append it_methods.&lt;/P&gt;&lt;P&gt;it_comp-RESERV_NO = '1148'.&lt;/P&gt;&lt;P&gt;it_comp-RES_ITEM = '1'.&lt;/P&gt;&lt;P&gt;it_comp-material = '000000000000000004'.&lt;/P&gt;&lt;P&gt;it_comp-plant = '0101'.&lt;/P&gt;&lt;P&gt;it_comp-stge_loc = '0102'.&lt;/P&gt;&lt;P&gt;it_comp-batch = '20050719'.&lt;/P&gt;&lt;P&gt;append it_comp.&lt;/P&gt;&lt;P&gt;it_comp_up-batch = 'X'.&lt;/P&gt;&lt;P&gt;append it_comp_up.&lt;/P&gt;&lt;P&gt;refresh it_return.&lt;/P&gt;&lt;P&gt;it_header-orderid = '1000185'.&lt;/P&gt;&lt;P&gt;it_header-ORDER_TYPE = 'Z010'.&lt;/P&gt;&lt;P&gt;append it_header.&lt;/P&gt;&lt;P&gt;it_header_up-orderid = '000001000185'.&lt;/P&gt;&lt;P&gt;it_header_up-mrp_relevant = 'X'.&lt;/P&gt;&lt;P&gt;append it_header_up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139710#M114224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139711#M114225</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;here you are passing two methods, one is change and other is save. it can't be handled two at a time , i suppose..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it once FM documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139711#M114225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139712#M114226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vijay, the problem was i forgot the operation in the component table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 15:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139712#M114226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139713#M114227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now are you able to make changes to the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 16:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139713#M114227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a process order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139714#M114228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got the same problem from my function Module. &lt;/P&gt;&lt;P&gt;Could you please help me because I'm quite new to user exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got 2 messages stored in return table 'T_RET' ( TYPE BAPIRET2 ) which are as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  E	IWO_BAPI	123	Error reading the standard sequence from the document tables&lt;/P&gt;&lt;P&gt;2.  E	IWO_BAPI2	113	Error  during processing of BAPI methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION zpm_iw32_pm99_pm0_change_comp.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(AUFNR) TYPE  AUFK-AUFNR&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      COMP_TAB&lt;/P&gt;&lt;P&gt;*"      OPER_TAB&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: t_meth      TYPE TABLE OF bapi_alm_order_method,&lt;/P&gt;&lt;P&gt;        t_oper      TYPE TABLE OF bapi_alm_order_operation,&lt;/P&gt;&lt;P&gt;        t_comp      TYPE TABLE OF bapi_alm_order_component,&lt;/P&gt;&lt;P&gt;        t_comp_up   TYPE TABLE OF bapi_alm_order_component_up,&lt;/P&gt;&lt;P&gt;        t_ret       TYPE TABLE OF bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work areas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: wa_header   TYPE caufvdb,&lt;/P&gt;&lt;P&gt;        wa_meth     TYPE bapi_alm_order_method,&lt;/P&gt;&lt;P&gt;        wa_op       TYPE afvgb,&lt;/P&gt;&lt;P&gt;        wa_oper     TYPE bapi_alm_order_operation,&lt;/P&gt;&lt;P&gt;        wa_comp     TYPE resbb,&lt;/P&gt;&lt;P&gt;        wa_comp1    TYPE bapi_alm_order_component,&lt;/P&gt;&lt;P&gt;        wa_comp_up  TYPE bapi_alm_order_component_up,&lt;/P&gt;&lt;P&gt;        wa_in       TYPE bapi_alm_order_component_e,&lt;/P&gt;&lt;P&gt;        flag        TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Implementations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO 100 TIMES.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CO_ZF_ORDER_LOCK'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          aufnr                = aufnr&lt;/P&gt;&lt;P&gt;          client               = sy-mandt&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          order_already_locked = 1&lt;/P&gt;&lt;P&gt;          system_failure       = 2&lt;/P&gt;&lt;P&gt;          OTHERS               = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If order locked, unlock and continue.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CO_ZF_ORDER_DELOCK'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              aufnr = aufnr.&lt;/P&gt;&lt;P&gt;          flag = 'X'.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Wait 1 second and check one more time if the reservation is now&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;unlocked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          WAIT UP TO 1 SECONDS.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change MRP-relevance of identified components&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: wa_comp, wa_in, flag, t_meth, t_ret,&lt;/P&gt;&lt;P&gt;             wa_meth, wa_comp1, t_comp, t_comp_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Method Internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      wa_meth-method = 'SAVE'.&lt;/P&gt;&lt;P&gt;      APPEND wa_meth TO t_meth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT comp_tab INTO wa_comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: wa_comp-vornr TO wa_in-activity,&lt;/P&gt;&lt;P&gt;              wa_comp-rspos TO wa_in-res_item,&lt;/P&gt;&lt;P&gt;              wa_comp-rsnum TO wa_in-reserv_no,&lt;/P&gt;&lt;P&gt;              wa_comp-posnr TO wa_in-item_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Voor alle componenten&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_meth-refnumber   = sy-tabix.&lt;/P&gt;&lt;P&gt;        wa_meth-objecttype  = 'COMPONENT'.&lt;/P&gt;&lt;P&gt;        wa_meth-method      = 'CHANGE'.&lt;/P&gt;&lt;P&gt;        wa_meth-objectkey(12)   = aufnr.                " ES_HEADER-orderID (order no.)&lt;/P&gt;&lt;P&gt;        wa_meth-objectkey+12(4) = wa_in-activity.       " ET_COMPONENT-activity (operation no.)&lt;/P&gt;&lt;P&gt;        wa_meth-objectkey+16(4) = '0000'.               " ET_COMPONENT-ITEM (suboperation no.)&lt;/P&gt;&lt;P&gt;        APPEND wa_meth TO t_meth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Component Internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_comp1-reserv_no      = wa_in-reserv_no.      " ET_COMPONENT-RESERV_NO&lt;/P&gt;&lt;P&gt;        wa_comp1-res_item       = wa_in-res_item.       " ET_COMPONENT-RES_item&lt;/P&gt;&lt;P&gt;        wa_comp1-activity       = wa_in-activity.       " ET_COMPONENT-activity&lt;/P&gt;&lt;P&gt;        wa_comp1-item_number    = wa_in-item_number.    " ET_COMPONENT-ITEM_NR&lt;/P&gt;&lt;P&gt;        wa_comp1-mrp_relevant   = '3'.                  " Immediately&lt;/P&gt;&lt;P&gt;        APPEND wa_comp1 TO t_comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Component Update Internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_comp_up-requirement_quantity = 'X'.&lt;/P&gt;&lt;P&gt;        wa_comp_up-mrp_relevant         = 'X'.&lt;/P&gt;&lt;P&gt;        APPEND wa_comp_up TO t_comp_up.&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      = t_meth&lt;/P&gt;&lt;P&gt;          it_component    = t_comp&lt;/P&gt;&lt;P&gt;          it_component_up = t_comp_up&lt;/P&gt;&lt;P&gt;          return          = t_ret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BREAK smartsol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0 AND t_ret is INITIAL.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 15:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-process-order/m-p/1139714#M114228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T15:05:12Z</dc:date>
    </item>
  </channel>
</rss>

