cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an Invoice from XI doesn't work

Former Member
0 Kudos

I have tested in se37. It works but it doesn't in XI RFC Adapter. All paramters are the same. I have got an exception - The system could not determine the "Ordering Party". Could you help me which parameter is incorrect?

I have read notes 206068, 730870. And I added all needed zeros to nummeric values.

My parameters are:

<?xml version="1.0" encoding="UTF-8" ?>

<ns0:BAPI_INVOICEEC_CREATE xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

<I_INP_TYPE>2</I_INP_TYPE>

<I_INV_HEADER>

<PROCESS_TYPE>INV</PROCESS_TYPE>

<CURRENCY>USD</CURRENCY>

<CURRENCY_ISO>USD</CURRENCY_ISO>

<LANGU_ISO>EN</LANGU_ISO>

</I_INV_HEADER>

<I_INV_ITEMS>

<item>

<QUANTITY>1.000</QUANTITY>

<PRICE>100.0000</PRICE>

<PRICE_UNIT>1</PRICE_UNIT>

<VALUE>100.0000</VALUE>

<PO_NUMBER>0200000112</PO_NUMBER>

<PO_ITEM_NUMBER>0000000001</PO_ITEM_NUMBER>

<CONF_NUMBER>0100000111</CONF_NUMBER>

<CONF_ITEM_NUMBER>0000000001</CONF_ITEM_NUMBER>

</item>

</I_INV_ITEMS>

</ns0:BAPI_INVOICEEC_CREATE>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sergey,

It sounds like the issue you had with BAPI_CONFEC_CREATE.

The same logic apply to complete the GR or IV data before creating it in SRM.

You did not reply to my previous answer:

"Execute BBP_GET_PURCHASING_PARTY in SE37 with your PO GUID to check if the system can determine the ordering/purchasing party.

This BAPI is designed for standalone PO, but not for extended POs.... so the result is not guaranteed."

Is your PO 0200000112 a standalone PO ?

If yes, what is the result of BBP_GET_PURCHASING_PARTY ?

Rgds

Christophe

Former Member
0 Kudos

BBP_GET_PURCHASING_PARTY doesn't return values for PO GUID.

But BAPI_INVOICEEC_CREATER does work locally (in se37) and BAPI_CONFEC_CREATE doesn't.

I'm confused...