MFG SAP Event Listener - 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.

ModuleDescription
map-customer-and-contact-points-to-cimSAP HANA Platform Event Business Partner message to CIM Mapping
map-orders-and-contact-points-to-cimSAP HANA Platform Event Order message to CIM Mapping
map-organization-to-cimSAP HANA Platform Event Business Partner message to CIM Mapping

map-customer-and-contact-points-to-cim

SAP HANA Platform Event Business Partner message to CIM Mapping

Source: ./src/main/resources/dwl/map-customer-and-contact-points-to-cim.dwl

Functions

fun getFormattedDateTime (toFormat)

Formats the date-time to the type accepted by CIM

Mapping Tables

Maps event payload from SAP HANA Business Partner Event Listener to CIM Customer format.

CIM - CustomerEvent payload from SAP HANA Business Partner Event ListenerDescription
idbusinessPartner.Common.YY1_SME_MPARTYROLEID_M_busThe Global ID of the customer in MDM system
partyRoleType"Customer"The party role type - Set as "Customer"
party[0].idbusinessPartner.InternalIDThe party identifier - Set as null
party[0].partyType"Individual"The party type - Set as Individual
party[0].personNameperson.Name.GivenName person.Name.GivenNameThe Person Name in SAP HANA
party[0].firstNameperson.Name.GivenNameThe firstname of the customer in SAP HANA
party[0].lastNameperson.Name.FamilyNameThe lastname of the customer in SAP HANA
party[0].contactPoints[0].contactPointType"ContactPointAddress"The contact point type - Set as "ContactPointAddress"
party[0].contactPoints[0].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[0].activeFromDateaddress.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[0].addressLine1address.Address.PostalAddress.StreetNameThe Mailing street of the customer in SAP HANA
party[0].contactPoints[0].cityNameaddress.Address.PostalAddress.CityNameThe Mailing City of the customer in SAP HANA
party[0].contactPoints[0].postalCodeTextaddress.Address.PostalAddress.StreetPostalCodeThe postal code of the customer in SAP HANA
party[0].contactPoints[0].stateProvinceNameaddress.Address.PostalAddress.RegionCodeThe state province of the customer in SAP HANA
party[0].contactPoints[0].countryNameaddress.Address.PostalAddress.CountryCodeThe country of the customer in SAP HANA
primaryFlag"true"Set as true
isUsedForBilling"false"Set as false
contactPoints.geoLatitudeNASet as null
contactPoints.geoLongitudeNASet as null
contactPoints.geoAccuracyNASet as null
party[0].contactPoints[1].contactPointType"ContactPointEmail"The contact point type - Set as "ContactPointEmail"
party[0].contactPoints[1].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[1].activeFromDateaddress.Address.Email.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[1].emailAddressaddress.Address.Email.URIThe Email address of the customer in SAP HANA
primaryFlag"true"Set as true
party[0].contactPoints[2].contactPointType"ContactPointPhone"The contact point type - Set as "ContactPointPhone"
party[0].contactPoints[2].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[2].activeFromDateaddress.Address.Telephone.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[2].telephoneNumberaddress.Address.Telephone.Number.SubscriberIDThe telephone number of the customer in SAP HANA
primaryFlag"true"Set as true
isSMSCapable"false"Set as false
externalIds[0].idnullThe identifier for the externalId entry - Set as null
externalIds[0].externalIdIdThe identifier of the customer in SAP HANA
externalIds[0].externalIdType"SAP_4HANA"The external identifier type - Set as "SAP_4HANA"
externalIds[0].status"VALID"The status of the ExternalId - Set as "VALID"
customerNumberbusinessPartner.InternalIDThe customer number stored in SAP HANA - default as ""
customerStatus"ACTIVE"The customer Status in SAP HANA - Set as Active
auditInfo.createdDatenow()Timestamp of when the customer was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the customer
auditInfo.updatedDatenow()Timestamp of when the customer was last updated
auditInfoupdatedByLastModifiedById__cIdentifies the system or user which last updated the customer
auditInfo.isDeletedIsDeletedIndicates whether or not the customer has been soft-deleted
salesOrganizationcustomer.SalesArrangement.SalesOrganisationIDThe Organization Id in SAP HANA
distributionChannelcustomer.SalesArrangement.DistributionChannelCodeThe DistributionChannelCode Id in SAP HANA
divisioncustomer.SalesArrangement.DivisionCodeThe DivisionCode Id in SAP HANA
customerPricingProcedurecustomer.SalesArrangement.PricingProcedureDeterminationCodeLongThe PricingProcedureDeterminationCodeLong Id in SAP HANA
customerRolebusinessPartner.Role.RoleCodeThe RoleCode Id in SAP HANA
primaryAccountYY1_SME_ParentID_MFGThe Primary Account ID

(back to top)

map-orders-and-contact-points-to-cim

SAP HANA Platform Event Order message to CIM Mapping

Source: ./src/main/resources/dwl/map-orders-and-contact-points-to-cim.dwl

Mapping Tables

Search Orders and Contact cim mapping.

CIM Target FieldSAP source fieldDescription of source field
nameNAset to ""
requestedStartDatepayload.SalesOrderBulkReplication.SalesOrder.SalesOrderDate""
idpayload.SalesOrderBulkReplication.SalesOrder.YY1_SME_MORDERID_MFG_SDH""
orderNumberpayload.SalesOrderBulkReplication.SalesOrder.SalesOrderID""
descriptionNAset to ""
orderCurrencypayload.SalesOrderBulkReplication.SalesOrder.TransactionCurrency""
grandTotalAmountpayload.SalesOrderBulkReplication.SalesOrder.TotalNetAmount""
salesOrderStatus payload.SalesOrderBulkReplication.SalesOrder.OverallDeliveryStatusIf value's "C" -> "DELIVERED" else "CREATED"
salesOrderSystemStatuspayload.SalesOrderBulkReplication.SalesOrder.OverallTotalDeliveryStatus""
orderStartDatepayload.SalesOrderBulkReplication.SalesOrder.SalesOrderDate""
developerStatusCodepayload.SalesOrderBulkReplication.SalesOrder.OverallSDProcessStatus""
externalIds.externalIdType"SAP_4HANA"Hardcoded as SAP_4HANA
externalIds.externalIdpayload.SalesOrderBulkReplication.SalesOrder.SalesOrderID""
externalIds.id""set to ""
externalIds.statusLastChangedDateNA""
externalIds.statusNAset to "VALID"
salesOrderTypeNANAset to "INITIAL"

(back to top)

map-organization-to-cim

SAP HANA Platform Event Business Partner message to CIM Mapping

Source: ./src/main/resources/dwl/map-organization-to-cim.dwl

Functions

fun getFormattedDateTime (toFormat)

Formats the date-time to the type accepted by CIM

Mapping Tables

Maps event payload from SAP HANA Business Partner Event Listener to CIM Customer format.

CIM - CustomerEvent payload from SAP HANA Business Partner Event ListenerDescription
idbusinessPartner.Common.YY1_SME_MPARTYROLEID_M_busThe Global ID of the customer in MDM system
partyRoleType"Customer"The party role type - Set as "Customer"
party[0].idbusinessPartner.InternalIDThe party identifier - Set as null
party[0].partyType"Organization"The party type - Set as Organization
party[0].nameName.FirstLineNameThe Name of the Organization in SAP HANA
party[0].legalNameName.FirstLineNameThe Legal of the Organization in SAP HANA
party[0].contactPoints[0].contactPointType"ContactPointAddress"The contact point type - Set as "ContactPointAddress"
party[0].contactPoints[0].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[0].activeFromDateaddress.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[0].addressLine1address.Address.PostalAddress.StreetNameThe Mailing street of the customer in SAP HANA
party[0].contactPoints[0].cityNameaddress.Address.PostalAddress.CityNameThe Mailing City of the customer in SAP HANA
party[0].contactPoints[0].postalCodeTextaddress.Address.PostalAddress.StreetPostalCodeThe postal code of the customer in SAP HANA
party[0].contactPoints[0].stateProvinceNameaddress.Address.PostalAddress.RegionCodeThe state province of the customer in SAP HANA
party[0].contactPoints[0].countryNameaddress.Address.PostalAddress.CountryCodeThe country of the customer in SAP HANA
primaryFlag"true"Set as true
isUsedForBilling"false"Set as false
contactPoints.geoLatitudeNASet as null
contactPoints.geoLongitudeNASet as null
contactPoints.geoAccuracyNASet as null
party[0].contactPoints[1].contactPointType"ContactPointEmail"The contact point type - Set as "ContactPointEmail"
party[0].contactPoints[1].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[1].activeFromDateaddress.Address.Email.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[1].emailAddressaddress.Address.Email.URIThe Email address of the customer in SAP HANA
primaryFlag"true"Set as true
party[0].contactPoints[2].contactPointType"ContactPointPhone"The contact point type - Set as "ContactPointPhone"
party[0].contactPoints[2].idnullThe contact point type identifier in SAP HANA - Set as null
party[0].contactPoints[2].activeFromDateaddress.Address.Telephone.ValidityPeriod.StartDateThe date from which the contact point is active - Set as Start date
party[0].contactPoints[2].telephoneNumberaddress.Address.Telephone.Number.SubscriberIDThe telephone number of the customer in SAP HANA
primaryFlag"true"Set as true
isSMSCapable"false"Set as false
externalIds[0].idnullThe identifier for the externalId entry - Set as null
externalIds[0].externalIdIdThe identifier of the customer in SAP HANA
externalIds[0].externalIdType"SAP_4HANA"The external identifier type - Set as "SAP_4HANA"
externalIds[0].status"VALID"The status of the ExternalId - Set as "VALID"
customerNumberbusinessPartner.InternalIDThe customer number stored in SAP HANA - default as ""
customerStatus"ACTIVE"The customer Status in SAP HANA - Set as Active
auditInfo.createdDatenow()Timestamp of when the customer was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the customer
auditInfo.updatedDatenow()Timestamp of when the customer was last updated
auditInfoupdatedByLastModifiedById__cIdentifies the system or user which last updated the customer
auditInfo.isDeletedIsDeletedIndicates whether or not the customer has been soft-deleted
salesOrganizationcustomer.SalesArrangement.SalesOrganisationIDThe Organization Id in SAP HANA
distributionChannelcustomer.SalesArrangement.DistributionChannelCodeThe DistributionChannelCode Id in SAP HANA
divisioncustomer.SalesArrangement.DivisionCodeThe DivisionCode Id in SAP HANA
customerPricingProcedurecustomer.SalesArrangement.PricingProcedureDeterminationCodeLongThe PricingProcedureDeterminationCodeLong Id in SAP HANA
customerRolebusinessPartner.Role.RoleCodeThe RoleCode Id in SAP HANA
primaryAccountYY1_SME_ParentID_MFGThe Primary Account ID

(back to top)

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onOct 25, 2023
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.1
1.0.0