Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI call must have a SAVE or DIALOG method for BAPI_ALM_ORDER_MAINTAIN

Hi,

I have a problem with updating an order with BAPI_ALM_ORDER_MAINTAIN.

I have a simple example where I want to update the short_text to a new value for an existing order.

I send this:

<n:BAPI_ALM_ORDER_MAINTAIN xmlns:n="urn:sap-com:document:sap:rfc:functions">
	<IT_HEADER>
		<item>
			<ORDERID>000000815966</ORDERID>
			<SHORT_TEXT>test</SHORT_TEXT>
		</item>
	</IT_HEADER>
	<IT_HEADER_UP>
		<item>
			<ORDERID>000000815966</ORDERID>
			<SHORT_TEXT>X</SHORT_TEXT>
		</item>
	</IT_HEADER_UP>
	<IT_METHODS>
		<item>
			<REFNUMBER>1</REFNUMBER>
			<OBJECTTYPE>HEADER</OBJECTTYPE>
			<METHOD>CHANGE</METHOD>
			<OBJECTKEY>000000815966</OBJECTKEY>
		</item>
		<item>
			<OBJECTTYPE> </OBJECTTYPE>
			<METHOD>SAVE</METHOD>
		</item>
	</IT_METHODS>
</n:BAPI_ALM_ORDER_MAINTAIN>

And receive this:

<rfc:BAPI_ALM_ORDER_MAINTAIN.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
	<ET_NUMBERS/>
	<EXTENSION_IN/>
	<IT_COMPONENT/>
	<IT_COMPONENT_UP/>
	<IT_HEADER/>
	<IT_HEADER_SRV/>
	<IT_HEADER_SRV_UP/>
	<IT_HEADER_UP/>
	<IT_METHODS/>
	<IT_OBJECTLIST/>
	<IT_OBJECTLIST_UP/>
	<IT_OLIST_RELATION/>
	<IT_OPERATION/>
	<IT_OPERATION_UP/>
	<IT_PARTNER/>
	<IT_PARTNER_UP/>
	<IT_RELATION/>
	<IT_RELATION_UP/>
	<IT_SRULE/>
	<IT_SRULE_UP/>
	<IT_TASKLISTS/>
	<IT_TEXT/>
	<IT_TEXT_LINES/>
	<IT_USERSTATUS/>
	<RETURN>
		<item>
			<TYPE>E</TYPE>
			<ID>IWO_BAPI2</ID>
			<NUMBER>119</NUMBER>
			<MESSAGE>BAPI call must have a SAVE or DIALOG method</MESSAGE>
			<LOG_NO/>
			<LOG_MSG_NO>000000</LOG_MSG_NO>
			<MESSAGE_V1/>
			<MESSAGE_V2/>
			<MESSAGE_V3/>
			<MESSAGE_V4/>
			<PARAMETER/>
			<ROW>0</ROW>
			<FIELD/>
			<SYSTEM>CF5CLNT800</SYSTEM>
		</item>
	</RETURN>
</rfc:BAPI_ALM_ORDER_MAINTAIN.Response>

What am I doing wrong? I have a SAVE method in the message...?

Good reward will be given for a good answer.

Thanks

Anders

Edited by: Anders Berglund on Oct 9, 2008 5:18 PM

Not what you were looking for? View more on this topic or Ask a question