cancel
Showing results for 
Search instead for 
Did you mean: 

API Supplier Invoice – Create (A2X) park invoice with PO ref.

former_member766076
Discoverer
0 Kudos

Hi all,

I'm trying to create a parked incoming invoice with API Supplier Invoice – Create (A2X) with item with Purchase Order reference.

The item structure is tested as follow:

<Item>
               <ID>00010</ID>
               <ReceivingPlantID>2310</ReceivingPlantID>                                "Plant for PO item
           <TypeCode>002</TypeCode>                                                            "Invoice item
           <ProcessingTypeCode>B</ProcessingTypeCode>                            "Invoice with PO reference
           <Quantity unitCode="PZ">1</Quantity>
           <AlternativeQuantity unitCode="PZ">1</AlternativeQuantity>
           <PriceCalculation>
                  <NetAmount currencyCode="EUR">10</NetAmount>
               </PriceCalculation>
               <PurchaseOrderReference>
                  <ID>4500000161</ID>                                                                 "PO number"
                  <ItemID>10</ItemID>                                                                   "PO item"
               </PurchaseOrderReference>
         </Item>

Although the content of the item structure seems correct, the Incoming Invoice is created without any item and only with header data.

Could you please give me support to signale where I'm doing wrong?

Thanks.

Andrea Lillo

Accepted Solutions (1)

Accepted Solutions (1)

Batista
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Andrea

thanks, it clear now that you are using. Suggest to go for ticket in MM-IV-LIV. My colleagues will have better means to check the payload, ok?

Thanks a lot!

former_member766076
Discoverer
0 Kudos

Perfect!

Thanks Sandra

Answers (2)

Answers (2)

Amith_Nair
Advisor
Advisor
0 Kudos

Hello,

This payload doesn't seem to look good. The fields from your payload doesn't seem to be compliant with the API characteristics. Can you please review the business documentation pertaining to the purchase order reference type for the supplier invoice item. Hopefully this should give you some direction.

https://help.sap.com/viewer/b2405fab3b314f4ab5021b57231d553f/1908.500/en-US/b77e565e67a6480fa010c750...

Good Luck!

Amith Nair

Batista
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

I could collect information that under SAP_COM_0057 the Odata API API_SUPPLIERINVOICE_PROCESS_SRV doesn't support parking or change. instead the SOAP service II_IVE_SUPLRINVCERPCRTRC allows that.

So, I suggest to open a ticket under logistics MM-IV-LIV. My colleagues will guide you better with the most update infor and please provide a bit more details on what you are using and trying to achieve.

former_member766076
Discoverer
0 Kudos

Hi Sandra,

thanks for the support.

The issue is not about the parking of the invoice, which is properly made, but is about the creation of the parked incoming invoice with item with PO reference.

Although the item seems properly edited, the invoice was created without any item reference.

Thanks