SAP S4HANA Setup Guide for Sales Rebate Management | MuleSoft Documentation
# SAP S4HANA Setup Guide for Sales Rebate Management
## Communication Arrangements
Below are the configuration arrangements required for this use case:
Communication Arrangement | Service Name | Protocol  
---|---|---  
SAP_COM_0002 | Journal Entry - Post (Synchronous)  
## Custom Fields
Salesforce Object | SAP Field Name | Data Type | Length | Unique | ExternalID  
---|---|---|---|---|---  
Rebate Payment | YY1_SME_ExtPaymID_MFG  
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:


Alias | Path | Type | Key  
---|---|---|---  
SourceLedger | I_JournalEntryItem.SourceLedger | CHAR (2)  
CompanyCode | I_JournalEntryItem.CompanyCode | CHAR (4)  
FiscalYear | I_JournalEntryItem.FiscalYear | NUMC (4)  
AccountingDocument | I_JournalEntryItem.AccountingDocument | CHAR (10)  
LedgerGLLineItem | I_JournalEntryItem.LedgerGLLineItem  
I_JournalEntryItem.Ledger  
AccountingDocumentType | I_JournalEntryItem.AccountingDocumentType  
Customer | I_JournalEntryItem.Customer | CHAR(10)  
YY1_SME_ExtPaymID_MFG_JEI | I_JournalEntryItem.YY1_SME_ExtPaymID_MFG_JEI | CHAR(20)  
CreationDate | I_JournalEntryItem._JournalEntry.AccountingDocumentCreationDate | DATS (8)  
LastChangeDate | I_JournalEntryItem._JournalEntry.LastChangeDate | DATS (8)  
IsReversed | I_JournalEntryItem._JournalEntry.IsReversed  
ReversalReason | I_JournalEntryItem._JournalEntry.ReversalReason  
ReverseDocument | I_JournalEntryItem._JournalEntry.ReverseDocument | CHAR(10)  
ClearingDate | I_JournalEntryItem.ClearingDate | DATS (8)  
ClearingAccountingDocument | I_JournalEntryItem.ClearingAccountingDocument | CHAR(10)  
ClearingDocumentLastChangeDate | I_JournalEntryItem._ClearingAccountingDocument.LastChangeDate | DATS (8)  
ClearingDocumentCreationDate | I_JournalEntryItem._ClearingAccountingDocument.AccountingDocumentCreationDate | DATS (8)  
ClearingDocumentCreationTime | I_JournalEntryItem._ClearingAccountingDocument.CreationTime | TIMS (6)  
AmountInCompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInCompanyCodeCurrency | CURR (23,2)  
AmountInTransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInTransactionCurrency | CURR (23,2)  
TransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.TransactionCurrency | CUKY (5)  
CompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.CompanyCodeCurrency | CUKY (5)  
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
  *   * MuleSoft Accelerator for Manufacturing