# mulesoft Manufacturing - Full Documentation --- product: Manufacturing version: 1.4 is-latest-version: true --- # Accelerator Setup Guide > For the full documentation index, see: https://docs.mulesoft.com/llms.txt This page provides guidance on configuring the various systems and products required to implement the use cases provided by this solution. ## Salesforce Manufacturing Cloud The following provides guidance on the custom fields that need to be created for the customer, product, and sales order sync use cases in order to function end-to-end. ## Custom Fields The following fields must be created in the corresponding objects.
| Salesforce Object | Field Name | Data Type | Length | Unique | ExternalId | Description |
|---|---|---|---|---|---|---|
Account | Global_Customer_Id__c | Text | 36 | Y | Y | |
Order | Global_SalesOrder_Id__c | Text | 36 | Y | Y | |
Order | Total_Tax__c | Currency | 10,2 | Y | Y | |
Order | OrderTotalAmount__c | Formula (Currency) | 10,2 | Y | Y | Order Total Amount is sum of Shippingc, Total_Taxc, and TotalAmount |
Product2 | Global_Product_Id__c | Text | 36 | Y | Y |
| Queue Name | Bound to Exchange | Dead Letter Queue Name |
|---|---|---|
mfg-customer-update-queue | accelerator-customer-update-exchange | mfg-customer-update-queue-dlq |
mfg-product-update-queue | accelerator-product-update-exchange | mfg-product-update-queue-dlq |
mfg-order-update-queue | accelerator-order-update-exchange | mfg-order-update-queue-dlq |
mfg-rebatepayout-create-queue | mfg-rebatepayout-create-exchange | mfg-rebatepayout-create-dl-queue |
| Communication Arrangement | Service Name |
|---|---|
SAP_COM_0008 | Business Partner - Replicate from SAP S/4HANA Cloud to Client |
SAP_COM_0009 | Product Catalog - Replicate from SAP S/4HANA Cloud to Client |
SAP_COM_0287 | Sales Order Bulk Replication Integration |
| Salesforce Object | Field Name | Data Type | Length | Unique | ExternalId |
|---|---|---|---|---|---|
BusinessPartner | YY1_SME_MPARTYROLEID_M_bus | Text | 40 | Y | Y |
SalesOrder | YY1_SME_MORDERID_MFG_SDH | Text | 40 | Y | Y |
Product | YY1_SME_UnvProductId_M_PRD | Text | 40 | Y | Y |
| Alias | Path | Type | Key |
|---|---|---|---|
SourceLedger | I_JournalEntryItem.SourceLedger | CHAR (2) | Yes |
CompanyCode | I_JournalEntryItem.CompanyCode | CHAR (4) | Yes |
FiscalYear | I_JournalEntryItem.FiscalYear | NUMC (4) | Yes |
AccountingDocument | I_JournalEntryItem.AccountingDocument | CHAR (10) | Yes |
LedgerGLLineItem | I_JournalEntryItem.LedgerGLLineItem | CHAR(6) | Yes |
Ledger | I_JournalEntryItem.Ledger | CHAR(2) | Yes |
AccountingDocumentType | I_JournalEntryItem.AccountingDocumentType | CHAR(2) | No |
Customer | I_JournalEntryItem.Customer | CHAR(10) | No |
YY1_SME_ExtPaymID_MFG_JEI | I_JournalEntryItem.YY1_SME_ExtPaymID_MFG_JEI | CHAR(20) | No |
CreationDate | I_JournalEntryItem._JournalEntry.AccountingDocumentCreationDate | DATS (8) | No |
LastChangeDate | I_JournalEntryItem._JournalEntry.LastChangeDate | DATS (8) | No |
IsReversed | I_JournalEntryItem._JournalEntry.IsReversed | CHAR(1) | No |
ReversalReason | I_JournalEntryItem._JournalEntry.ReversalReason | CHAR(2) | No |
ReverseDocument | I_JournalEntryItem._JournalEntry.ReverseDocument | CHAR(10) | No |
ClearingDate | I_JournalEntryItem.ClearingDate | DATS (8) | No |
ClearingAccountingDocument | I_JournalEntryItem.ClearingAccountingDocument | CHAR(10) | No |
ClearingDocumentLastChangeDate | I_JournalEntryItem._ClearingAccountingDocument.LastChangeDate | DATS (8) | No |
ClearingDocumentCreationDate | I_JournalEntryItem._ClearingAccountingDocument.AccountingDocumentCreationDate | DATS (8) | No |
ClearingDocumentCreationTime | I_JournalEntryItem._ClearingAccountingDocument.CreationTime | TIMS (6) | No |
AmountInCompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInCompanyCodeCurrency | CURR (23,2) | No |
AmountInTransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInTransactionCurrency | CURR (23,2) | No |
TransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.TransactionCurrency | CUKY (5) | No |
CompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.CompanyCodeCurrency | CUKY (5) | No |
| Item | Details | Comments |
|---|---|---|
Basic Auth config | * Select AuthenticationMethods | Needed to authenticate and connect client to Web API. |
Bulk Request config | * If you see IgnoreCacheControlForBulkRequests make sure it is set to True | Needed for value set URL to get data for multiple points |
POST Request config | * Set EnableCSRFDefense to false | Needed for POST to work to avoid 403 suite access denied error |
| Field | Value | Description |
|---|---|---|
Location1 | ||
Location2 | 10 | If the span is 100, it will allow to change value by 1 in each scan (10*(100/1000)) = 1 |
Location3 | 25 | After 25 random value it will reset to current value |
Location4 | 1 | Scan class of PI point. Look at random.bat or Random interface configuration. This says the PI point will be changed as per line 1, so if that is 30 sec, the PI point value will change every 30 seconds. |
Location5 | 1 | Number from 0 to 5 depending on point data type |
| Description | Web API URL |
|---|---|
PI Web API home page | |
Get attributes of all PI points |
|
Get attributes of multiple specified PI points |
|
Get value of a specific PI point | |
Get values of multiple specified PI points |
|
Get attributes of multiple specified PI points using POST method | POST: |
Get data values of multiple specified PI points using POST method | POST: |
| Attribute | Point1 | Point2 | Point3 | Point4 | Point5 |
|---|---|---|---|---|---|
General Tab | |||||
Name | Vibration Delta | Temperature | Oil Level | Noise Level | Maintenance Status |
Descriptor | Machine1 | Machine1 | Machine1 | Machine1 | Machine1 |
Stored Values | Real-time data | Real-time data | Real-time data | Real-time data | Real-time data |
Point Source | R | R | R | R | R |
Point Class | classic | classic | classic | classic | classic |
Point Type | Int32 | Int32 | Int32 | Int32 | Digital |
Digital Set | MachineStatus | ||||
Eng Units | Hz | F | Percentage | Decibels | |
Display Digits | |||||
Archive Tab | |||||
Typical Value | 500 | 125 | 50 | 115 | 1 |
Span | 1000 | 160 | 100 | 160 | 1 |
Zero | 10 | 90 | 0 | 70 | 0 |
Scan | On | On | On | On | On |
Archiving | On | On | On | On | On |
Classic Tab | |||||
Location1 | |||||
Location2 | |||||
Location3 | 100 | 100 | 100 | 100 | |
Location4 | 1 | 1 | 1 | 1 | 1 |
Location5 | 2 | 2 | 2 | 2 | 1 |
Misc | |||||
Data Type | Station Data | Station Data | Station Data | Station Data | Random Data |
Scale | |||||
| Communication Arrangement | Service Name | Protocol |
|---|---|---|
SAP_COM_0002 | Journal Entry - Post (Synchronous) | SOAP |
| Salesforce Object | SAP Field Name | Data Type | Length | Unique | ExternalID |
|---|---|---|---|---|---|
Rebate Payment | YY1_SME_ExtPaymID_MFG | Text | 20 | Y | Y |
| Alias | Path | Type | Key |
|---|---|---|---|
SourceLedger | I_JournalEntryItem.SourceLedger | CHAR (2) | Yes |
CompanyCode | I_JournalEntryItem.CompanyCode | CHAR (4) | Yes |
FiscalYear | I_JournalEntryItem.FiscalYear | NUMC (4) | Yes |
AccountingDocument | I_JournalEntryItem.AccountingDocument | CHAR (10) | Yes |
LedgerGLLineItem | I_JournalEntryItem.LedgerGLLineItem | CHAR(6) | Yes |
Ledger | I_JournalEntryItem.Ledger | CHAR(2) | Yes |
AccountingDocumentType | I_JournalEntryItem.AccountingDocumentType | CHAR(2) | No |
Customer | I_JournalEntryItem.Customer | CHAR(10) | No |
YY1_SME_ExtPaymID_MFG_JEI | I_JournalEntryItem.YY1_SME_ExtPaymID_MFG_JEI | CHAR(20) | No |
CreationDate | I_JournalEntryItem._JournalEntry.AccountingDocumentCreationDate | DATS (8) | No |
LastChangeDate | I_JournalEntryItem._JournalEntry.LastChangeDate | DATS (8) | No |
IsReversed | I_JournalEntryItem._JournalEntry.IsReversed | CHAR(1) | No |
ReversalReason | I_JournalEntryItem._JournalEntry.ReversalReason | CHAR(2) | No |
ReverseDocument | I_JournalEntryItem._JournalEntry.ReverseDocument | CHAR(10) | No |
ClearingDate | I_JournalEntryItem.ClearingDate | DATS (8) | No |
ClearingAccountingDocument | I_JournalEntryItem.ClearingAccountingDocument | CHAR(10) | No |
ClearingDocumentLastChangeDate | I_JournalEntryItem._ClearingAccountingDocument.LastChangeDate | DATS (8) | No |
ClearingDocumentCreationDate | I_JournalEntryItem._ClearingAccountingDocument.AccountingDocumentCreationDate | DATS (8) | No |
ClearingDocumentCreationTime | I_JournalEntryItem._ClearingAccountingDocument.CreationTime | TIMS (6) | No |
AmountInCompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInCompanyCodeCurrency | CURR (23,2) | No |
AmountInTransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.AmountInTransactionCurrency | CURR (23,2) | No |
TransactionCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.TransactionCurrency | CUKY (5) | No |
CompanyCodeCurrency | I_JournalEntryItem._ClearingAccountingDocument._OperationalAcctgDocItem.CompanyCodeCurrency | CUKY (5) | No |
| Field Name | Field Description | Comments |
|---|---|---|
ExternalId | Customer ID in external system | Required field |
FirstName | The first name of the Party | Required for individual |
MiddleName | The middle initial of the Party | Optional field for individual |
LastName | The last name of the Party | Required for individual |
OrgAccountName | Organization name | Required for an organization |
EmailAddress | Email address | Optional |
EmailType | Email type (examples: Home, Work) | Optional |
PhoneNumber | Phone number | Optional |
InternationalCode | Phone country code | Optional the default is "001" |
PhoneType | Phone Type | Optional the default is "Home" |
PhoneExt | Phone extension | Optional |
AddressLine1 | Address Line | Optional |
AddressLine2 | Address Line | Optional |
City | City name | Optional |
State | State or province name | Optional |
Country | Country name | Optional the default is "USA" |
PostalCode | Postal code | Required |
AddressType | Address type (examples: Home, Work) | Optional the default is "Home" |
| Field Name | Field Description | Comments |
|---|---|---|
Id | Order ID | Optional |
Name | Order name | Required |
OrderNumber | Order number | Required |
Description | Order description | Optional |
TotalPriceAmount | Total order cost | Required |
AccountId | Account id | Required |
TotalDeliveryFeeAmount | Shipping fee | Optional |
EffectiveDate | Order date | Required |
ExternalId | Order id in external system | Optional |
ProductCode | Product sku code of the ordered item | Required |
ProductDescription | Product description of the ordered item | Optional |
OrderedQuantity | Quantity ordered | Required |
UnitPriceAmount | Unit price of the product | Required |
TotalPriceAmount | Total cost of all items | Required |
OrderProductNumber | Total amount including tax | Required |
TotalTaxAmount | Total sales tax | Required |
| Field Name | Field Description | Comments |
|---|---|---|
Id | Product ID | Optional |
Name | Product name | Required |
ProductCode | Product sku code | Required |
ProductCategory | Product category | Optional |
Description | Product description | Required |
ShortDescription | Product short description | |
LongDescription | Product long description | |
Status | Product status (example: Active) | Required |
ExternalId | Product id in the external system | Required |
Type | Product type | Required |
UnitListPrice | Product unit price | Required |