on 2022 Feb 10 10:59 AM
Hi,
we are using API_SUPPLIERINVOICE_PROCESS_SRV to create supplier invoices referenced to Purchase Orders, and we were wandering if credit memos could be created via api as well. In such case, how would it be?
We are in an S4Hana Cloud environement.
KR,
Jose
Hi Jose
It is possible to create a credit memo with the API.
The key is the header field -> "SupplierInvoiceIsCreditMemo" : "1".
You can test in your system with this format
Kind regards
Brian
/sap/opu/odata/sap/API_SUPPLIERINVOICE_PROCESS_SRV/A_SupplierInvoice
{
"d" : {
"PaymentTerms" : "",
"DueCalculationBaseDate" : "2022-02-10T00:00",
"NetPaymentDays" : "0",
"FiscalYear" : "2022",
"AccountingDocumentType" : "ER",
"CompanyCode" : "1010",
"TaxDeterminationDate":"2022-02-10T00:00",
"TaxIsCalculatedAutomatically" : true,
"DocumentDate" : "2022-02-10T00:00",
"PostingDate" : "2022-02-10T00:00",
"SupplierInvoiceIDByInvcgParty" : "SAPCRTest1",
"InvoicingParty" : "10300006",
"DocumentCurrency" : "EUR",
"InvoiceGrossAmount" : "12.00",
"SupplierInvoiceIsCreditMemo" : "1",
"to_SuplrInvcItemPurOrdRef" : {
"results" : [
{
"TaxCode" : "V0",
"DocumentCurrency" : "EUR",
"SupplierInvoiceItemAmount" : "12.00",
"PurchaseOrderQuantityUnit" : "PC",
"QuantityInPurchaseOrderUnit" : "1",
"FiscalYear" : "2022",
"IsNotCashDiscountLiable" : false,
"SupplierInvoiceItem" : "1",
"PurchaseOrder" : "4500005670",
"PurchaseOrderItem" : "10"
}
]
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.