Accelerator SAP S/4HANA Invoices System API - Implementation Template
Data mappings
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.
Module | Description |
---|---|
createInvoiceRequest | Create Invoice Soap Request |
createInvoiceResponse | Create Invoice Success Response |
getInvoiceResponse | Retrieve Invoice By ID mapping |
getInvoicesResponse | Retrieve Invoices mapping |
createInvoiceRequest
Create Invoice Soap Request
Source:
./src/main/resources/dwl/createInvoiceRequest.dwl
Mapping Tables
Maps CIM Invoice request to SAP4HANA Invoice SOAP Request
Invoice | InvoiceCIM | Description |
---|---|---|
ID | UUID | Unique Identifier |
CreationDateTime | Current DateTime | Set to Current Date and Time |
SenderBusinessSystemID | senderBusinessSystemId | Sender's Business System Id |
RecipientBusinessSystemID | recipientBusinessSystemID | Recipient's Business System Id |
ReferenceDocument | SubsequentDocument | Outbound Delivery Document Number |
ReferenceDocumentCategory | referenceDocumentCategory | Delivery Document Category |
BillingDocumentType | billingDocumentType | Type of Invoice |
createInvoiceResponse
Create Invoice Success Response
Source:
./src/main/resources/dwl/createInvoiceResponse.dwl
getInvoiceResponse
Retrieve Invoice By ID mapping
Source:
./src/main/resources/dwl/getInvoiceResponse.dwl
Mapping Tables
Get InvoiceId response mapping.
CIM Invoice Field | SAP S4HANA Source field | Description of source field |
---|---|---|
id | BillingDocument | SAP S4HANA Invoice id |
invoiceNumber | BillingDocument | Invoice number |
invoiceStatus | Hard coded to Paid | Invoice Status |
invoiceDate | BillingDocumentDate | Invoice created date |
totalTaxAmount | TaxAmount | Tax amount |
totalAmount | TotalGrossAmount | Invoice gross Amount |
supplier | SoldToParty | Supplier number |
invoiceLines.id | to_Item.BillingDocumentItem | Id of the invoice item |
invoiceLines.name | to_Item.BillingDocumentItemText | Name of the Invoice |
invoiceLines.invoiceLineType | Hard coed to Delivery | Type of the Invoice |
invoiceLines.salesOrderProductId | to_Item.Material | Product involved in the original Sales Order |
invoiceLines.lineQuantity | to_Item.BillingQuantity | Quantity |
invoiceLines.totalAmount | to_Item.NetAmount and item.TaxAmount | Total Amount |
getInvoicesResponse
Retrieve Invoices mapping
Source:
./src/main/resources/dwl/getInvoicesResponse.dwl
Mapping Tables
Get InvoiceId response mapping.
CIM Invoice Field | SAP S4HANA Source field | Description of source field |
---|---|---|
id | BillingDocument | SAP S4HANA Invoice id |
invoiceNumber | BillingDocument | Invoice number |
invoiceStatus | Hard coded to Paid | Invoice Status |
invoiceDate | BillingDocumentDate | Invoice created date |
totalTaxAmount | TaxAmount | Tax amount |
totalAmount | TotalGrossAmount | Invoice gross Amount |
supplier | SoldToParty | Supplier number |
invoiceLines.id | to_Item.BillingDocumentItem | Id of the invoice item |
invoiceLines.name | to_Item.BillingDocumentItemText | Name of the Invoice |
invoiceLines.invoiceLineType | Hard coed to Delivery | Type of the Invoice |
invoiceLines.salesOrderProductId | to_Item.Material | Product involved in the original Sales Order |
invoiceLines.lineQuantity | to_Item.BillingQuantity | Quantity |
invoiceLines.totalAmount | to_Item.NetAmount and item.TaxAmount | Total Amount |