<?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 with TECHNICALCOMPLETE work order using BAPI_ALM_ORDER_MAINTAIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338611#M1397162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. In the end it was system customization that was causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 14:43:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-28T14:43:29Z</dc:date>
    <item>
      <title>Problem with TECHNICALCOMPLETE work order using BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338609#M1397160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm novice in ABAP and trying to implement RFC function that will technically complete work order with provided order id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've implemented functionality using &lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt; rfc, but when calling my RFC I get following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
E IW                   177 Order cannot be completed; account assignment not maintained
E IWO_BAPI             166 Order 000004000431 could not be technically completed
E IWO_BAPI2            113 Error  during processing of BAPI methods
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In same time I can 'technicaly complete' same work order using transaction IW32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC complete code listing is below. Any ideas were is the problem?&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;PRE&gt;&lt;CODE&gt;
FUNCTION Z_ORDER_COMPLETE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(ORDERID) TYPE  AUFNR
*"  TABLES
*"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
*"----------------------------------------------------------------------

  data:
       it_methods like BAPI_ALM_ORDER_METHOD occurs 0 with header line,
       it_header like  BAPI_ALM_ORDER_HEADERS_I occurs 0 with header line.


    it_methods-refnumber = 1.
    it_methods-method = 'TECHNICALCOMPLETE'.
    it_methods-objectkey = ORDERID.
    it_methods-objecttype = 'HEADER'.
    append it_methods.
    it_methods-method = 'SAVE'.
    it_methods-objecttype = '   '.
    append it_methods.

    it_header-orderid = ORDERID.
    append it_header.

  CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
      IT_METHODS              = IT_METHODS
      IT_HEADER               = IT_HEADER
        RETURN                  = RETURN

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
.
ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 14:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338609#M1397160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with TECHNICALCOMPLETE work order using BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338610#M1397161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try BAPI 'BAPI_ISUSMORDER_SETSTATUSTECHN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 17:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338610#M1397161</guid>
      <dc:creator>chaiphon</dc:creator>
      <dc:date>2009-10-21T17:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with TECHNICALCOMPLETE work order using BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338611#M1397162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. In the end it was system customization that was causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338611#M1397162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with TECHNICALCOMPLETE work order using BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338612#M1397163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tel me what&amp;nbsp; customization issue caused this problem...I too facing the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-technicalcomplete-work-order-using-bapi-alm-order-maintain/m-p/6338612#M1397163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T13:18:39Z</dc:date>
    </item>
  </channel>
</rss>

