---
schema_version: "1"
id: fc38d9088cc5891a1dd568d61897353f866b875590c02c2327e0959938173f61
title: SAP S4HANA Setup Guide for Sales Rebate Management
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/manufacturing/latest/sap-s4hana-setup-guide.md
canonical_url: https://docs.mulesoft.com/manufacturing/latest/sap-s4hana-setup-guide
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ab1ba206b73633e67a8a3ae9fcc2a06b661a197d564941ebd6d9692bd6456220
description: MuleSoft Documentation Site
release: "1.4"
latest: true
---
---
product: Manufacturing
version: 1.4
is-latest-version: true
---

# SAP S4HANA Setup Guide for Sales Rebate Management

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## Communication Arrangements

Below are the configuration arrangements required for this use case:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Communication Arrangement</th><th>Service Name</th><th>Protocol</th></tr></thead><tbody><tr><td><p>SAP_COM_0002</p></td><td><p>Journal Entry - Post (Synchronous)</p></td><td><p>SOAP</p></td></tr></tbody></table>

## Custom Fields

<table><colgroup><col> <col> <col> <col> <col> <col></colgroup><thead><tr><th>Salesforce Object</th><th>SAP Field Name</th><th>Data Type</th><th>Length</th><th>Unique</th><th>ExternalID</th></tr></thead><tbody><tr><td><p>Rebate Payment</p></td><td><p>YY1_SME_ExtPaymID_MFG</p></td><td><p>Text</p></td><td><p>20</p></td><td><p>Y</p></td><td><p>Y</p></td></tr></tbody></table>

This field is also enabled to be used in the SOAP Service mentioned in the previous section. To do
that, use the Fiori app Custom Fields and Logic, section SOAP APIs. Look for the service and enable
it.

## Custom CDS View

- Name: YY1\_JournalEntryItem\_Info

- Representative Key: AccountingDocument

- Scenario: External API

- Data Source: I\_JournalEntryItem

- Elements:

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Alias</th><th>Path</th><th>Type</th><th>Key</th></tr></thead><tbody><tr><td><p>SourceLedger</p></td><td><p>I_JournalEntryItem.SourceLedger</p></td><td><p>CHAR (2)</p></td><td><p>Yes</p></td></tr><tr><td><p>CompanyCode</p></td><td><p>I_JournalEntryItem.CompanyCode</p></td><td><p>CHAR (4)</p></td><td><p>Yes</p></td></tr><tr><td><p>FiscalYear</p></td><td><p>I_JournalEntryItem.FiscalYear</p></td><td><p>NUMC (4)</p></td><td><p>Yes</p></td></tr><tr><td><p>AccountingDocument</p></td><td><p>I_JournalEntryItem.AccountingDocument</p></td><td><p>CHAR (10)</p></td><td><p>Yes</p></td></tr><tr><td><p>LedgerGLLineItem</p></td><td><p>I_JournalEntryItem.LedgerGLLineItem</p></td><td><p>CHAR(6)</p></td><td><p>Yes</p></td></tr><tr><td><p>Ledger</p></td><td><p>I_JournalEntryItem.Ledger</p></td><td><p>CHAR(2)</p></td><td><p>Yes</p></td></tr><tr><td><p>AccountingDocumentType</p></td><td><p>I_JournalEntryItem.AccountingDocumentType</p></td><td><p>CHAR(2)</p></td><td><p>No</p></td></tr><tr><td><p>Customer</p></td><td><p>I_JournalEntryItem.Customer</p></td><td><p>CHAR(10)</p></td><td><p>No</p></td></tr><tr><td><p>YY1_SME_ExtPaymID_MFG_JEI</p></td><td><p>I_JournalEntryItem.YY1_SME_ExtPaymID_MFG_JEI</p></td><td><p>CHAR(20)</p></td><td><p>No</p></td></tr><tr><td><p>CreationDate</p></td><td><p>I_JournalEntryItem._JournalEntry.AccountingDocumentCreationDate</p></td><td><p>DATS (8)</p></td><td><p>No</p></td></tr><tr><td><p>LastChangeDate</p></td><td><p>I_JournalEntryItem._JournalEntry.LastChangeDate</p></td><td><p>DATS (8)</p></td><td><p>No</p></td></tr><tr><td><p>IsReversed</p></td><td><p>I_JournalEntryItem._JournalEntry.IsReversed</p></td><td><p>CHAR(1)</p></td><td><p>No</p></td></tr><tr><td><p>ReversalReason</p></td><td><p>I_JournalEntryItem._JournalEntry.ReversalReason</p></td><td><p>CHAR(2)</p></td><td><p>No</p></td></tr><tr><td><p>ReverseDocument</p></td><td><p>I_JournalEntryItem._JournalEntry.ReverseDocument</p></td><td><p>CHAR(10)</p></td><td><p>No</p></td></tr><tr><td><p>ClearingDate</p></td><td><p>I_JournalEntryItem.ClearingDate</p></td><td><p>DATS (8)</p></td><td><p>No</p></td></tr><tr><td><p>ClearingAccountingDocument</p></td><td><p>I_JournalEntryItem.ClearingAccountingDocument</p></td><td><p>CHAR(10)</p></td><td><p>No</p></td></tr><tr><td><p>ClearingDocumentLastChangeDate</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument.LastChangeDate</p></td><td><p>DATS (8)</p></td><td><p>No</p></td></tr><tr><td><p>ClearingDocumentCreationDate</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument.AccountingDocumentCreationDate</p></td><td><p>DATS (8)</p></td><td><p>No</p></td></tr><tr><td><p>ClearingDocumentCreationTime</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument.CreationTime</p></td><td><p>TIMS (6)</p></td><td><p>No</p></td></tr><tr><td><p>AmountInCompanyCodeCurrency</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInCompanyCodeCurrency</p></td><td><p>CURR (23,2)</p></td><td><p>No</p></td></tr><tr><td><p>AmountInTransactionCurrency</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInTransactionCurrency</p></td><td><p>CURR (23,2)</p></td><td><p>No</p></td></tr><tr><td><p>TransactionCurrency</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.TransactionCurrency</p></td><td><p>CUKY (5)</p></td><td><p>No</p></td></tr><tr><td><p>CompanyCodeCurrency</p></td><td><p>I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.CompanyCodeCurrency</p></td><td><p>CUKY (5)</p></td><td><p>No</p></td></tr></tbody></table>

A custom communication scenario has to be created adding this CDS view as an inbound service. Once
published, create a communication arrangement using that custom communication scenario. That
arrangement will have the service URL to retrieve the Journal Entry Item information.

## See Also

- [Prerequisites](https://docs.mulesoft.com/manufacturing/latest/prerequisites)

- [MuleSoft Accelerator for Manufacturing](https://docs.mulesoft.com/manufacturing/latest/)
