<?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: BAPI_ALM_ORDER_MAINTAIN : Enter another operation error while create Workorder in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361097#M7611</link>
    <description>&lt;P&gt;Can you provide more code?&lt;/P&gt;&lt;P&gt;This could determine a lack of data in the BAPI-Structures for the OrderHeader / OrderOperation / Methods ...&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 07:14:31 GMT</pubDate>
    <dc:creator>NTeunckens</dc:creator>
    <dc:date>2016-11-10T07:14:31Z</dc:date>
    <item>
      <title>BAPI_ALM_ORDER_MAINTAIN : Enter another operation error while create Workorder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361096#M7610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting Error while create Work order Using BAPI BAPI_ALM_ORDER_MAINTAIN for some of standard order types(PM01). This is only for first operation (0010).&lt;/P&gt;&lt;P&gt;Is it any configuration related error??&lt;/P&gt;&lt;P&gt;Error : " Enter another operation "&lt;/P&gt;&lt;P&gt;Here is my logic :&lt;/P&gt;&lt;P&gt;wa_methods-refnumber = lv_refno.&lt;BR /&gt;
 wa_methods-objecttype = 'OPERATION'.&lt;/P&gt;&lt;P&gt;Wa_methods-method = 'CREATE'.&lt;/P&gt;&lt;P&gt;APPEND wa_methods TO it_methods.&lt;/P&gt;&lt;P&gt;Please help to get it resolve.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 06:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361096#M7610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-10T06:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN : Enter another operation error while create Workorder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361097#M7611</link>
      <description>&lt;P&gt;Can you provide more code?&lt;/P&gt;&lt;P&gt;This could determine a lack of data in the BAPI-Structures for the OrderHeader / OrderOperation / Methods ...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 07:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361097#M7611</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2016-11-10T07:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN : Enter another operation error while create Workorder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361098#M7612</link>
      <description>&lt;P&gt;Hi Nic,&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;wa_methods-method = 'CREATE'.&lt;BR /&gt;wa_methods-objectkey = orderid.&lt;BR /&gt;wa_methods-refnumber = '000001'.&lt;BR /&gt;wa_methods-objecttype = 'HEADER'.&lt;BR /&gt;APPEND wa_methods TO it_methods.&lt;/P&gt;&lt;P&gt;***** Heade Data&lt;/P&gt;&lt;P&gt;**** Operation Data&lt;/P&gt;&lt;P&gt;lv_refno1 = '000001'.&lt;/P&gt;&lt;P&gt;LOOP AT wo_operation INTO ls_operation.&lt;BR /&gt;lv_refno = lv_refno + lv_refno1.&lt;BR /&gt;wa_methods-refnumber = lv_refno.&lt;BR /&gt;wa_methods-objecttype = 'OPERATION'.&lt;/P&gt;&lt;P&gt;***************************************** This is working if i put CHANGE, But While create how it is considering CHANGE??&lt;/P&gt;&lt;P&gt;IF ls_operation-activity = '0010'.&lt;/P&gt;&lt;P&gt;IF wo_header-ordertype EQ 'PM01'.&lt;BR /&gt;wa_methods-method = 'CHANGE'.&lt;BR /&gt;ELSE.&lt;BR /&gt;wa_methods-method = 'CREATE'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;ELSE.&lt;BR /&gt;wa_methods-method = 'CREATE'.&lt;BR /&gt;ENDIF.&lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;CONCATENATE orderid wa_operation-activity INTO wa_methods-objectkey.&lt;BR /&gt;APPEND wa_methods TO it_methods.&lt;BR /&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;wa_methods-refnumber = ''.&lt;BR /&gt;wa_methods-objecttype = ''.&lt;BR /&gt;wa_methods-method = 'SAVE'.&lt;BR /&gt;wa_methods-objectkey = orderid.&lt;BR /&gt;APPEND wa_methods TO it_methods. CLEAR wa_methods.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;BR /&gt;TABLES&lt;BR /&gt;it_methods = it_methods&lt;BR /&gt;it_header = it_header&lt;BR /&gt;it_header_up = it_header_up&lt;BR /&gt;it_operation = it_operation&lt;BR /&gt;it_operation_up = it_operation_up&lt;BR /&gt;return = return&lt;BR /&gt;et_numbers = et_numbers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;BR /&gt;EXPORTING&lt;BR /&gt;wait = 'X'.&lt;/P&gt;&lt;P&gt;If I put CHANGE in methods for PM01 it is working. But we don't want the hard coded value in code. It should be configuration based.&lt;/P&gt;&lt;P&gt;What could be the configuration based on order type.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 07:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361098#M7612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-10T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN : Enter another operation error while create Workorder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361099#M7613</link>
      <description>&lt;P&gt;I see in this code-sample the following :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_refno = lv_refno + lv_refno1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I do believe you should keep the same Refnr.? Will this help?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Please try to use the 'CODE'-button to indent your CodeSample ...)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 09:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain-enter-another-operation-error-while-create/m-p/361099#M7613</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2016-11-10T09:44:37Z</dc:date>
    </item>
  </channel>
</rss>

