<?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: Error when calling bapi (order_maintain) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667620#M1098059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't have comments in the xml!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 12:26:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T12:26:43Z</dc:date>
    <item>
      <title>Error when calling bapi (order_maintain)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667617#M1098056</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;I have a problem with updating an order with BAPI_ALM_ORDER_MAINTAIN.&lt;/P&gt;&lt;P&gt;I have a simple example where I want to update the short_text to a new value for an existing order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I send this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;n:BAPI_ALM_ORDER_MAINTAIN xmlns:n="urn:sap-com:document:sap:rfc:functions"&amp;gt;
	&amp;lt;IT_HEADER&amp;gt;
		&amp;lt;item&amp;gt;
			&amp;lt;ORDERID&amp;gt;000000815966&amp;lt;/ORDERID&amp;gt;
			&amp;lt;SHORT_TEXT&amp;gt;test&amp;lt;/SHORT_TEXT&amp;gt;
		&amp;lt;/item&amp;gt;
	&amp;lt;/IT_HEADER&amp;gt;
	&amp;lt;IT_HEADER_UP&amp;gt;
		&amp;lt;item&amp;gt;
			&amp;lt;ORDERID&amp;gt;000000815966&amp;lt;/ORDERID&amp;gt;
			&amp;lt;SHORT_TEXT&amp;gt;X&amp;lt;/SHORT_TEXT&amp;gt;
		&amp;lt;/item&amp;gt;
	&amp;lt;/IT_HEADER_UP&amp;gt;
	&amp;lt;IT_METHODS&amp;gt;
		&amp;lt;item&amp;gt;
			&amp;lt;REFNUMBER&amp;gt;1&amp;lt;/REFNUMBER&amp;gt;
			&amp;lt;OBJECTTYPE&amp;gt;HEADER&amp;lt;/OBJECTTYPE&amp;gt;
			&amp;lt;METHOD&amp;gt;CHANGE&amp;lt;/METHOD&amp;gt;
			&amp;lt;OBJECTKEY&amp;gt;000000815966&amp;lt;/OBJECTKEY&amp;gt;
		&amp;lt;/item&amp;gt;
		&amp;lt;item&amp;gt;
			&amp;lt;OBJECTTYPE&amp;gt; &amp;lt;/OBJECTTYPE&amp;gt;
			&amp;lt;METHOD&amp;gt;SAVE&amp;lt;/METHOD&amp;gt;
		&amp;lt;/item&amp;gt;
	&amp;lt;/IT_METHODS&amp;gt;
&amp;lt;/n:BAPI_ALM_ORDER_MAINTAIN&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And receive this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;rfc:BAPI_ALM_ORDER_MAINTAIN.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions"&amp;gt;
	&amp;lt;ET_NUMBERS/&amp;gt;
	&amp;lt;EXTENSION_IN/&amp;gt;
	&amp;lt;IT_COMPONENT/&amp;gt;
	&amp;lt;IT_COMPONENT_UP/&amp;gt;
	&amp;lt;IT_HEADER/&amp;gt;
	&amp;lt;IT_HEADER_SRV/&amp;gt;
	&amp;lt;IT_HEADER_SRV_UP/&amp;gt;
	&amp;lt;IT_HEADER_UP/&amp;gt;
	&amp;lt;IT_METHODS/&amp;gt;
	&amp;lt;IT_OBJECTLIST/&amp;gt;
	&amp;lt;IT_OBJECTLIST_UP/&amp;gt;
	&amp;lt;IT_OLIST_RELATION/&amp;gt;
	&amp;lt;IT_OPERATION/&amp;gt;
	&amp;lt;IT_OPERATION_UP/&amp;gt;
	&amp;lt;IT_PARTNER/&amp;gt;
	&amp;lt;IT_PARTNER_UP/&amp;gt;
	&amp;lt;IT_RELATION/&amp;gt;
	&amp;lt;IT_RELATION_UP/&amp;gt;
	&amp;lt;IT_SRULE/&amp;gt;
	&amp;lt;IT_SRULE_UP/&amp;gt;
	&amp;lt;IT_TASKLISTS/&amp;gt;
	&amp;lt;IT_TEXT/&amp;gt;
	&amp;lt;IT_TEXT_LINES/&amp;gt;
	&amp;lt;IT_USERSTATUS/&amp;gt;
	&amp;lt;RETURN&amp;gt;
		&amp;lt;item&amp;gt;
			&amp;lt;TYPE&amp;gt;E&amp;lt;/TYPE&amp;gt;
			&amp;lt;ID&amp;gt;IWO_BAPI2&amp;lt;/ID&amp;gt;
			&amp;lt;NUMBER&amp;gt;119&amp;lt;/NUMBER&amp;gt;
			&amp;lt;MESSAGE&amp;gt;BAPI call must have a SAVE or DIALOG method&amp;lt;/MESSAGE&amp;gt;
			&amp;lt;LOG_NO/&amp;gt;
			&amp;lt;LOG_MSG_NO&amp;gt;000000&amp;lt;/LOG_MSG_NO&amp;gt;
			&amp;lt;MESSAGE_V1/&amp;gt;
			&amp;lt;MESSAGE_V2/&amp;gt;
			&amp;lt;MESSAGE_V3/&amp;gt;
			&amp;lt;MESSAGE_V4/&amp;gt;
			&amp;lt;PARAMETER/&amp;gt;
			&amp;lt;ROW&amp;gt;0&amp;lt;/ROW&amp;gt;
			&amp;lt;FIELD/&amp;gt;
			&amp;lt;SYSTEM&amp;gt;CF5CLNT800&amp;lt;/SYSTEM&amp;gt;
		&amp;lt;/item&amp;gt;
	&amp;lt;/RETURN&amp;gt;
&amp;lt;/rfc:BAPI_ALM_ORDER_MAINTAIN.Response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? I have a SAVE method in the message...?&lt;/P&gt;&lt;P&gt;I have also checked the checkbox in XI to automatically do a closing BAPI_TRANSACTION_COMMIT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good reward will be given for a good answer. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 09:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667617#M1098056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling bapi (order_maintain)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667618#M1098057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anders, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to skip the ' &amp;lt;OBJECTTYPE&amp;gt; &amp;lt;/OBJECTTYPE&amp;gt;' in the SAVE-method line. Guess that in this line&lt;/P&gt;&lt;P&gt;there has to be only the SAVE in method field, nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 12:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667618#M1098057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling bapi (order_maintain)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667619#M1098058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip but unfortunately it didn't help, still same error back. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 12:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667619#M1098058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T12:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling bapi (order_maintain)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667620#M1098059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't have comments in the xml!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667620#M1098059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling bapi (order_maintain)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667621#M1098060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have field IT_METHODS-REFNUMBER filled with 1 also for the SAVE method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;/Elisabet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 15:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-bapi-order-maintain/m-p/4667621#M1098060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T15:28:10Z</dc:date>
    </item>
  </channel>
</rss>

