You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »

Status

  Approved

OwnerABOLAJI-ext, Luqman 
Stakeholders
Jira Request ID

ERP-208 - Getting issue details... STATUS

Jira Development ID

ERP-1119 - Getting issue details... STATUS

High- Level Specification

Implementing SystemSAP S/4HANA 
Invoked by/InvokesERP-1120 Integration Process - Order Response Interface from S/4HANA to Elemica
Business Process Reference02.04.02.01. Manage Standard Sales Order


Functional Overview

Some of the EDI customers requires an acknowledgement/response when their Sales Order is successfully created in Syensqo's S/4HANA system.

For this, the OrderResponse message is triggered from the Sales Order in Syensqo's S/4HANA system which calls the custom API to send the XML via SAP CPI to Elemica (the EDI service provider system).  

The purpose of this functional specification is to create the custom API for the trigger and generation of the OrderResponse message from a sales order in S/4HANA 

Scope and Objectives

This System Interface, a custom implementation in SAP S/4HANA,

  • sends the OrderResponse data to SAP CPI
  • maps sales order in SAP S/4HANA into a structure to create the OrderResponse XML
  • transform some data in the Sales Order structure to OrderResponse message send to SAP CPI  
  • performs lookup of specified data (as applicable) in S/4HANA

The standard SAP Sales Order API is unable to support the above functions, hence the need for a custom API.

Process Flow Diagram


Step

Description

Comment

1

Sales Order event triggers the custom Sales Order Response API to send Sales Order to SAP CPI based on defined structure. Events that could trigger this are Creation of Sales Order and Specific changes to a Sales Order


2

SAP CPI receives the custom Sales Order ResponseAPI and translates the message to a cXML format

This is covered in Integration Process functional specification

ERP-1120 Integration Process - Order Response Interface from S/4HANA to Elemica

3

Via API management, SAP CPI pushes the xXML format of the sales order to Elemica


Assumptions

  1. The custom Sales Order Response API will be called from SAP CPI and be able to lookup data from SAP S/4HANA to feed the target structure needed by SAP CPI
  2. The S/4HANA Sales Order source fields and SAP CPI/Elemica target field mappings, including custom fields, will be updated based on mapping requirements in SAP CPI/Elemica.
  3. The Custom API should be able to map all source data to their corresponding target fields successfully 

Dependencies

  1. The sales order must have been created successfully
  2. All configurations and sales order fields in S/4HANA from where the custom API should look up values should already be available before the interface is deployed.
  3. Connection between SAP CPI and S/4HANA already set up
  4. Required master data in S/4HANA already loaded

Security, Integrity and Controls

  • Required authorisations to execute the custom API need to be defined.
  • Existing secure connectivity for communication between SAP S/4HANA and SAP CPI will be applied

Configuration Requirements

  1. Text IDs VBBK-Z002, VBBK-Z004, VBBK-Z999, VBBP-Z999
  2. Sales Order Types

Special Requirements

N/A


Design Rationale

API Use

Custom API based on CO_SDSLS_ESR_SALES_ORDER_NOTIF

Data Structure

 The following fields will be used to provide the required data structure of the interface:

ParentCardinalityFieldDescriptionMandatory (Y/N)Data Type
A_SalesOrderHeader1





DocumentIdentifier
NString


DocumentIdentifierDateTime
NDateTime


RequestingDocumentIdentifier
NString


RequestingDocumentDateTime
NDateTime


SenderPartnerName
YString


SenderDUNS
YString


SenderContactName
NString


SenderContactDescription
NString


SenderTelephoneNumberTelecomCountryCode
NString


SenderTelephoneNumberTelecomAreaCode
NString


SenderTelephoneNumberPhoneNumber
NString


SenderFaxNumberTelecomCountryCode
NString


SenderFaxNumberTelecomAreaCode
NString


SenderFaxNumberPhoneNumber
NString


SenderEmailAddress
NString


SenderAlternativeCommunicationMethod
NString


SenderAddressLine
NString


SenderCityName
NString


SenderStateProvince
NString


SenderPostalCode
NString


SenderPostalCountry
NString


SenderLocationCode
NString


SenderTaxIdentifierNumber
NString


SenderJurisdiction
NString


SenderTaxCertificateType
NString


SenderTaxCertificateNumber
Nstring


SenderTaxBasis
Nstring


SenderTaxRate
Nstring


SenderSenderURL
Nstring


ReceiverPartnerName
Ystring


ReceiverDUNS
YString


ReceiverContactName
NString


ReceiverContactDescription
NString


ReceiverTelephoneNumberTelecomCountryCode
NString


ReceiverTelephoneNumberTelecomAreaCode
NString


ReceiverTelephoneNumberPhoneNumber
NString


ReceiverFaxNumberTelecomCountryCode
NString


ReceiverFaxNumberTelecomAreaCode
NString


ReceiverFaxNumberPhoneNumber
NString


ReceiverEmailAddress
NString


ReceiverAlternativeCommunicationMethod
NString


ReceiverAddressLine
NString


ReceiverCityName
NString


ReceiverStateProvince
NString


ReceiverPostalCode
NString


ReceiverPostalCountry
NString


ReceiverLocationCode
NString


ReceiverTaxIdentifierNumber
NString


ReceiverJurisdiction
NString


ReceiverTaxCertificateType
NString


ReceiverTaxCertificateNumber
NString


ReceiverTaxBasis
NString


ReceiverTaxRate
NString


ReceiverSenderURL
NString


PurchaseOrderTypeCode
YString


CustomerPurchaseOrderCustomer reference number that the customer uses to uniquely identify a purchasing document (for example, a sales inquiry or a purchase order)YString


CustomerPurchaseOrderDate
YDateTime


PurchaseOrderReferenceItem
NString


TransactionCurrencyThe currency that applies to the sales orderNString


ContractNumberCustomer reference number that the customer uses to uniquely identify a purchasing document (for example, a sales inquiry or a purchase order)NString


LanguageCode
NString


RevisionNumber
NString


ReleaseNumber
NString


SalesOrderReference
YString


SalesOrderReferenceItem
NString


IncotermsClassificationCommonly used trading terms that comply with the standards established by the International Chamber of Commerce (ICC)NString


IncotermsLocation1Provides additional information for the primary IncotermNString


CustomerPaymentTerms
NString


PaymentTermsBasisDateCode
NDateTime


PaymentTermsBasisDate
NString


DiscountPercentage
NString


DiscountAmount
NString


DiscountDaysDue
NString


DiscountsDueDate
NDateTime


DeferredAmount
NString


DeferedDueDate
NDateTime


PercentDeferredPayable
NString


Penalty
NString


ShipWithPurchaseOrder
NString


CountryOfFinalDestination
NString


MarketPlaceIdentifier
NString


MarketPlaceDocumentIdentifier
NString


MarketPlaceReferenceItem
NString


MarketPlaceSellerIdentifier
NString


InvoiceCommunicationMode
NString


BillingScheduleCode
NString


PurchaseOrderResponseReasonCode
NString


BuyerPartnerNameThe customer who orders the goods or services. The sold-to party is contractually responsible for sales orders.YString


BuyerPartnerCode
YString


BuyerContactName
NString


BuyerContactDescription
NString


SellerPartnerName
NString


SellerPartnerCode
YString


SellerContactName
NString


SellerContactDescription
NString


ShiptoPartnerName
NString


ShipToPartnerCode
YString


PayerPartnerName
NString


PayerPartnerCode
NString


BilltoPartnerName
NString


BillToPartnerCode
NString


ShipperPartnerName
NString


ShipperPartnerCode
NString


ShipFromPartnerName
NString


ShipFromPartnerCode
NString


CarrierPartnerName
NString


CarrierPartnerCode
NString


BuyerTelephoneNumberTelecomCountryCode
NString


BuyerTelephoneNumberTelecomAreaCode
NString


BuyerTelephoneNumberPhoneNumber
NString


BuyerFaxNumberTelecomCountryCode
NString


BuyerFaxNumberTelecomAreaCode
NString


BuyerFaxNumberPhoneNumber
NString


BuyerEmailAddress
NString


BuyerAlternativeCommunicationMethod
NString


BuyerAddressLine
NString


BuyerCityName
NString


BuyerStateProvince
NString


BuyerPostalCode
NString


BuyerPostalCountry
NString


BuyerLocationCode
NString


BuyerExternalReference
NString


BuyerTaxIdentifierNumber
NString


BuyerJurisdiction
NString


BuyerTaxCertificateType
NString


BuyerTaxCertificateNumber
NString


BuyerTaxBasis
NString


BuyerTaxRate
NString


BuyerSenderURL
NString


ShipToTelephoneNumberTelecomCountryCode
NString


ShipToTelephoneNumberTelecomAreaCode
NString


ShipToTelephoneNumberPhoneNumber
NString


ShipToFaxNumberTelecomCountryCode
NString


ShipToFaxNumberTelecomAreaCode
NString


ShipToFaxNumberPhoneNumber
NString


ShipToEmailAddress
NString


ShipToAlternativeCommunicationMethod
NString


ShipToAddressLine
NString


ShipToCityName
NString


ShipToStateProvince
NString


ShipToPostalCode
NString


ShipToPostalCountry
NString


ShipToLocationCode
NString


ShipToExternalReference
NString


ShipToTaxIdentifierNumber
NString


ShipToJurisdiction
NString


ShipToTaxCertificateType
NString


ShipToTaxCertificateNumber
NString


ShipToTaxBasis
NString


ShipToTaxRate
NString


ShipToSenderURL
NString


PayerTelephoneNumberTelecomCountryCode
NString


PayerTelephoneNumberTelecomAreaCode
NString


PayerTelephoneNumberPhoneNumber
NString


PayerFaxNumberTelecomCountryCode
NString


PayerFaxNumberTelecomAreaCode
NString


PayerFaxNumberPhoneNumber
NString


PayerEmailAddress
NString


PayerAlternativeCommunicationMethod
NString


PayerAddressLine
NString


PayerCityName
NString


PayerStateProvince
NString


PayerPostalCode
NString


PayerPostalCountry
NString


PayerLocationCode
NString


PayerExternalReference
NString


PayerTaxIdentifierNumber
NString


PayerJurisdiction
NString


PayerToTaxCertificateType
NString


PayerTaxCertificateNumber
NString


PayerTaxBasis
NString


PayerTaxRate
NString


PayerSenderURL
NString


AccountHolderName
NString


AccountNumber
NString


FinancialInstitution
NString


FinancialInstitutionDFINumber
NString


CreditCardNumber
NString


CreditCardType
NString


CreditCardExpirationDate
NDateTime


BillToTelephoneNumberTelecomCountryCode
NString


BillToTelephoneNumberTelecomAreaCode
NString


BillToTelephoneNumberPhoneNumber
NString


BillToFaxNumberTelecomCountryCode
NString


BillToFaxNumberTelecomAreaCode
NString


BillToFaxNumberPhoneNumber
NString


BillToEmailAddress
NString


BillToAlternativeCommunicationMethod
NString


BillToAddressLine
NString


BillToCityName
NString


BillToStateProvince
NString


BillToPostalCode
NString


BillToPostalCountry
NString


BillToLocationCode
NString


BillToExternalReference
NString


BillToTaxIdentifierNumber
NString


BillToJurisdiction
NString


BillToTaxCertificateType
NString


BillToTaxCertificateNumber
NString


BillToTaxBasis
NString


BillToTaxRate
NString


BillToSenderURL
NString


ShipFromTelephoneNumberTelecomCountryCode
NString


ShipFromTelephoneNumberTelecomAreaCode
NString


ShipFromTelephoneNumberPhoneNumber
NString


ShipFromFaxNumberTelecomCountryCode
NString


ShipFromFaxNumberTelecomAreaCode
NString


ShipFromFaxNumberPhoneNumber
NString


ShipFromEmailAddress
NString


ShipFromAlternativeCommunicationMethod
NString


ShipFromAddressLine
NString


ShipFromCityName
NString


ShipFromStateProvince
NString


ShipFromPostalCode
NString


ShipFromPostalCountry
NString


ShipFromLocationCode
NString


ShipFromExternalReference
NString


ShipFromTaxIdentifierNumber
NString


ShipFromJurisdiction
NString


ShipFromTaxCertificateType
NString


ShipFromTaxCertificateNumber
NString


ShipFromTaxBasis
NString


ShipFromTaxRate
NString


ShipFromSenderURL
NString


CarrierTelephoneNumberTelecomCountryCode
NString


CarrierTelephoneNumberTelecomAreaCode
NString


CarrierTelephoneNumberPhoneNumber
NString


CarrierFaxNumberTelecomCountryCode
NString


CarrierFaxNumberTelecomAreaCode
NString


CarrierFaxNumberPhoneNumber
NString


CarrierEmailAddress
NString


CarrierAlternativeCommunicationMethod
NString


CarrierAddressLine
NString


CarrierCityName
NString


CarrierStateProvince
NString


CarrierPostalCode
NString


CarrierPostalCountry
NString


CarrierLocationCode
NString


CarrierExternalReference
NString


CarrierTaxIdentifierNumber
NString


CarrierJurisdiction
NString


CarrierTaxCertificateType
NString


CarrierTaxCertificateNumber
NString


CarrierTaxBasis
NString


CarrierTaxRate
NString


CarrierSenderURL
NString


ShipperTelephoneNumberTelecomCountryCode
NString


ShipperTelephoneNumberTelecomAreaCode
NString


ShipperTelephoneNumberPhoneNumber
NString


ShipperFaxNumberTelecomCountryCode
NString


ShipperFaxNumberTelecomAreaCode
NString


ShipperFaxNumberPhoneNumber
NString


ShipperEmailAddress
NString


ShipperAlternativeCommunicationMethod
NString


ShipperAddressLine
NString


ShipperCityName
NString


ShipperStateProvince
NString


ShipperPostalCode
NString


ShipperPostalCountry
NString


ShipperLocationCode
NString


ShipperExternalReference
NString


ShipperTaxIdentifierNumber
NString


ShipperJurisdiction
NString


ShipperTaxCertificateType
NString


ShipperTaxCertificateNumber
NString


ShipperTaxBasis
NString


ShipperTaxRate
NString


ShipperSenderURL
NString
A_SalesOrderText1 to many





CustomerRequiredInstructions
NString


ShipperInstructions
NString


ConsigneeInstructions
NString


CarrierInstructions
NString


ImportInstruction
NString


CustomerServiceInstructions
NString


RoutingInstruction
NString
A_SalesOrderItem1





LineItemNumber
NString


PurchaseOrderLineItemNumber
NString


LineItemHandlingInstruction
NString


MaterialByCustomer
YString


MaterialByCustomerDescription
NString


ProductDescription
NString


ProductGradeDescription
NString


Material
MString


MaterialDescription
NString


ProductDescription
NString


ProductGradeDescription
NString


SalesOrderReference
NString


SalesOrderItemReferenceItem
NString


SalesOrderItemNumber
NString


RequestedQuantityThe number or volume of materials specified for an itemNString


RequestedQuantityISOUnit
NString


PackagingQuantity
NString


PackagingQuantityISOUnit
NString


EngineeringChangeOrderIdentifier
NString


BatchNumber
NString


CountryOfOriginCode
NString


IncotermsClassification
NString


IncotermsLocation1
NString


TransportMethodCode
NString


LineItemPurposeCode
NString


BalanceItemFlag
NString


DeliveryTolerancesLowerLimit
NString


DeliveryTolerancesUpperLimit
NString


DeliveryTolerancesUnitofMeasure
NString


ChangeAcknowledgementFlag
NString


LineItemStatus
NString


LineStatusCode
NString


LineItemPurposeCode
NString


ItemShiptoPartnerName
NString


ItemShipToPartnerCode
YString


ItemBilltoPartnerName
NString


ItemBillToPartnerCode
NString


ItemShipperPartnerName
NString


ItemShipperPartnerCode
NString


ItemShipFromPartnerName
NString


ItemShipFromPartnerCode
NString


ItemCarrierPartnerName
NString


ItemCarrierPartnerCode
NString


ItemShipToTelephoneNumberTelecomCountryCode
NString


ItemShipToTelephoneNumberTelecomAreaCode
NString


ItemShipToTelephoneNumberPhoneNumber
NString


ItemShipToFaxNumberTelecomCountryCode
NString


ItemShipToFaxNumberTelecomAreaCode
NString


ItemShipToFaxNumberPhoneNumber
NString


ItemShipToEmailAddress
NString


ItemShipToAlternativeCommunicationMethod
NString


ItemShipToAddressLine
NString


ItemShipToCityName
NString


ItemShipToStateProvince
NString


ItemShipToPostalCode
NString


ItemShipToPostalCountry
NString


ItemShipToLocationCode
NString


ItemShipToExternalReference
NString


ItemShipToTaxIdentifierNumber
NString


ItemShipToJurisdiction
NString


ItemShipToTaxCertificateType
NString


ItemShipToTaxCertificateNumber
NString


ItemShipToTaxBasis
NString


ItemShipToTaxRate
NString


ItemShipToSenderURL
NString


ItemBillToTelephoneNumberTelecomCountryCode
NString


ItemBillToTelephoneNumberTelecomAreaCode
NString


ItemBillToTelephoneNumberPhoneNumber
NString


ItemBillToFaxNumberTelecomCountryCode
NString


ItemBillToFaxNumberTelecomAreaCode
NString


ItemBillToFaxNumberPhoneNumber
NString


ItemBillToEmailAddress
NString


ItemBillToAlternativeCommunicationMethod
NString


ItemBillToAddressLine
NString


ItemBillToCityName
NString


ItemBillToStateProvince
NString


ItemBillToPostalCode
NString


ItemBillToPostalCountry
NString


ItemBillToLocationCode
NString


ItemBillToExternalReference
NString


ItemBillToTaxIdentifierNumber
NString


ItemBillToJurisdiction
NString


ItemBillToTaxCertificateType
NString


ItemBillToTaxCertificateNumber
NString


ItemBillToTaxBasis
NString


ItemBillToTaxRate
NString


ItemBillToSenderURL
NString


ItemShipFromTelephoneNumberTelecomCountryCodeNString


ItemShipFromTelephoneNumberTelecomAreaCode
NString


ItemShipFromTelephoneNumberPhoneNumber
NString


ItemShipFromFaxNumberTelecomCountryCode
NString


ItemShipFromFaxNumberTelecomAreaCode
NString


ItemShipFromFaxNumberPhoneNumber
NString


ItemShipFromEmailAddress
NString


ItemShipFromAlternativeCommunicationMethod
NString


ItemShipFromAddressLine
NString


ItemShipFromCityName
NString


ItemShipFromStateProvince
NString


ItemShipFromPostalCode
NString


ItemShipFromPostalCountry
NString


ItemShipFromLocationCode
NString


ItemShipFromExternalReference
NString


ItemShipFromTaxIdentifierNumber
NString


ItemShipFromJurisdiction
NString


ItemShipFromTaxCertificateType
NString


ItemShipFromTaxCertificateNumber
NString


ItemShipFromTaxBasis
NString


ItemShipFromTaxRate
NString


ItemShipFromSenderURL
NString


ItemCarrierTelephoneNumberTelecomCountryCode
NString


ItemCarrierTelephoneNumberTelecomAreaCode
NString


ItemCarrierTelephoneNumberPhoneNumber
NString


ItemCarrierFaxNumberTelecomCountryCode
NString


ItemCarrierFaxNumberTelecomAreaCode
NString


ItemCarrierFaxNumberPhoneNumber
NString


ItemCarrierEmailAddress
NString


ItemCarrierAlternativeCommunicationMethod
NString


ItemCarrierAddressLine
NString


ItemCarrierCityName
NString


ItemCarrierStateProvince
NString


ItemCarrierPostalCode
NString


ItemCarrierPostalCountry
NString


ItemCarrierLocationCode
NString


ItemCarrierExternalReference
NString


ItemCarrierTaxIdentifierNumber
NString


ItemCarrierJurisdiction
NString


ItemCarrierTaxCertificateType
NString


ItemCarrierTaxCertificateNumber
NString


ItemCarrierTaxBasis
NString


ItemCarrierTaxRate
NString


ItemCarrierSenderURL
NString


ItemShipperTelephoneNumberTelecomCountryCodeNString


ItemShipperTelephoneNumberTelecomAreaCode
NString


ItemShipperTelephoneNumberPhoneNumber
NString


ItemShipperFaxNumberTelecomCountryCode
NString


ItemShipperFaxNumberTelecomAreaCode
NString


ItemShipperFaxNumberPhoneNumber
NString


ItemShipperEmailAddress
NString


ItemShipperAlternativeCommunicationMethod
NString


ItemShipperAddressLine
NString


ItemShipperCityName
NString


ItemShipperStateProvince
NString


ItemShipperPostalCode
NString


ItemShipperPostalCountry
NString


ItemShipperLocationCode
NString


ItemShipperExternalReference
NString


ItemShipperTaxIdentifierNumber
NString


ItemShipperJurisdiction
NString


ItemShipperTaxCertificateType
NString


ItemShipperTaxCertificateNumber
NString


ItemShipperTaxBasis
NString


ItemShipperTaxRate
NString


ItemShipperSenderURL
NString
A_SalesOrderItemText1 to many





CustomerRequiredInstructions
NString


ShipperInstructions
NString


ConsigneeInstructions
NString


CarrierInstructions
NString


ImportInstruction
NString


CustomerServiceInstructions
NString


RoutingInstruction
NString
A_SalesOrderItemPrElement1





PricePerUnit
NString


PriceCurrencyCode
NString
A_SalesOrderScheduleLine1





ScheduleDateConfirmedDeliveryOn
NDateTime


ScheduleDateConfirmedShipOn
NDateTime


ScheduleDateConfirmedShipBy
NDateTime


ScheduleDateConfirmedPickUpby
NDateTime

Calculation and Mapping


ParentFieldRule TypeRule Instruction
(Field/TextID to map from)
A_SalesOrderHeaderHeaderDocumentIdentifiermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

DocumentIdentifierDateTimemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

RequestingDocumentIdentifiermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

RequestingDocumentDateTimemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

SenderPartnerNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverPartnerName> 

SenderDUNSmap from ZL2C_DUNS cusfrom tableReceiverDUNS 

SenderContactNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverContactName> 

SenderContactDescriptionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverContactDescriptione> 

SenderTelephoneNumberTelecomCountryCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTelephoneNumberTelecomCountryCode> 

SenderTelephoneNumberTelecomAreaCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTelephoneNumberTelecomAreaCode> 

SenderTelephoneNumberPhoneNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTelephoneNumberPhoneNumber> 

SenderFaxNumberTelecomCountryCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverFaxNumberTelecomCountryCode> 

SenderFaxNumberTelecomAreaCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverFaxNumberTelecomAreaCode> 

SenderFaxNumberPhoneNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverFaxNumberPhoneNumber> 

SenderEmailAddressmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverEmailAddress> 

SenderAlternativeCommunicationMethodmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverAlternativeCommunicationMethod> 

SenderAddressLinemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverAddressLine> 

SenderCityNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverCityName> 

SenderStateProvincemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverStateProvince> 

SenderPostalCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverPostalCode> 

SenderPostalCountrymap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverPostalCountry> 

SenderLocationCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverLocationCode> 

SenderTaxIdentifierNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTaxIdentifierNumber> 

SenderJurisdictionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverJurisdiction> 

SenderTaxCertificateTypemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTaxCertificateType> 

SenderTaxCertificateNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTaxCertificateNumber> 

SenderTaxBasismap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTaxBasis> 

SenderTaxRatemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverTaxRate> 

SenderSenderURLmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <ReceiverReceiverURL> 

ReceiverPartnerNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderPartnerName> 

ReceiverDUNSmap from ZL2C_DUNS cusfrom tableSenderDUNS 

ReceiverContactNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderContactName> 

ReceiverContactDescriptionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderContactDescription> 

ReceiverTelephoneNumberTelecomCountryCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTelephoneNumberTelecomCountryCode> 

ReceiverTelephoneNumberTelecomAreaCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTelephoneNumberTelecomAreaCode> 

ReceiverTelephoneNumberPhoneNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTelephoneNumberPhoneNumber> 

ReceiverFaxNumberTelecomCountryCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderFaxNumberTelecomCountryCode> 

ReceiverFaxNumberTelecomAreaCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderFaxNumberTelecomAreaCode> 

ReceiverFaxNumberPhoneNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderFaxNumberPhoneNumber> 

ReceiverEmailAddressmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderEmailAddress> 

ReceiverAlternativeCommunicationMethodmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderAlternativeCommunicationMethod> 

ReceiverAddressLinemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderAddressLine> 

ReceiverCityNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderCityName> 

ReceiverStateProvincemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderStateProvince> 

ReceiverPostalCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderPostalCode> 

ReceiverPostalCountrymap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderPostalCountry> 

ReceiverLocationCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderLocationCode> 

ReceiverTaxIdentifierNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTaxIdentifierNumber> 

ReceiverJurisdictionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderJurisdiction> 

ReceiverTaxCertificateTypemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTaxCertificateType> 

ReceiverTaxCertificateNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTaxCertificateNumber> 

ReceiverTaxBasismap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTaxBasis> 

ReceiverTaxRatemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderTaxRate 

ReceiverSenderURLmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <SenderSenderURL> 

PurchaseOrderTypeCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field>

CustomerPurchaseOrdermap from sales order fieldVBAK-BSTNK

CustomerPurchaseOrderDatemap from sales order fieldVBAK-BSTDK

PurchaseOrderReferenceItem


TransactionCurrencymap from sales order fieldVBAK-WAERK

ContractNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

LanguageCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

RevisionNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

ReleaseNumbermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

SalesOrderReferencemap from sales order fieldVBAK-VBELN

SalesOrderItemReferenceItem


IncotermsClassificationmap from sales order fieldVBKD-INCO1

IncotermsLocation1map from sales order fieldVBKD-INCO2_L

CustomerPaymentTermsmap from sales order fieldVBKD-ZTERM

PaymentTermsBasisDateCodenot mapped

PaymentTermsBasisDatenot mapped

DiscountPercentagenot mapped

DiscountAmountnot mapped

DiscountDaysDuenot mapped

DiscountsDueDatenot mapped

DeferredAmountnot mapped

DeferedDueDatenot mapped

PercentDeferredPayablenot mapped

Penaltynot mapped

ShipWithPurchaseOrdermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

CountryOfFinalDestinationmap from text + logicFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field>

If text does not exist,  use country of the shipto Party

Country of ShiptoParty: KNA1-LAND1

where KNA1-KUNNR =
VBPA-KUNNR where:
VBPA-VBELN = VBAK-VBELN
VBPA-PARVW = SH

MarketPlaceIdentifiermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

MarketPlaceDocumentIdentifiermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

MarketPlaceReferenceItemmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

MarketPlaceSellerIdentifiermap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

InvoiceCommunicationModemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

BillingScheduleCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

PurchaseOrderResponseReasonCode


BuyerPartnerNamemap from sales orderKNA1-NAME1 where KNA1-KUNNR = SoldtoParty (see Processing Logic section)

BuyerPartnerCodeSee Partner Look Up Logic in Processing Logic section

BuyerContactNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

BuyerContactDescriptionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

SellerPartnerNamemap from sales orderTVKO-VTEXT where TVKO-VKORG = VBAK-VKORG

SellerPartnerCodesee SellerPartnerCode Logic Section

SellerContactNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

SellerContactDescriptionmap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

ShiptoPartnerNamemap from sales order

KNA1-NAME1 where KNA1-KUNNR = ShipToParty (see Processing Logic section)


ShipToPartnerCodeSee Partner Look Up Logic in Processing Logic section

PayerPartnerNamemap from sales order

KNA1-NAME1 where KNA1-KUNNR = Payer (see Processing Logic section)


PayerPartnerCodeSee Partner Look Up Logic in Processing Logic section

BilltoPartnerNamemap from sales order

KNA1-NAME1 where KNA1-KUNNR = BillToParty (see Processing Logic section)


BillToPartnerCodeSee Partner Look Up Logic in Processing Logic section

ShipperPartnerNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

ShipperPartnerCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

ShipFromPartnerNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

ShipFromPartnerCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

CarrierPartnerNamemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

CarrierPartnerCodemap from textFrom text VBBK-Z999: 
Fetch <value>  where 'Label> = <Field> 

BuyerTelephoneNumberTelecomCountryCodenot mapped



BuyerTelephoneNumberTelecomAreaCodenot mapped

BuyerTelephoneNumberPhoneNumbermap from sales orderADR2-TEL_NUMBER where ADRC-ADDRNUMBER = SoldToAddressNumber

BuyerFaxNumberTelecomCountryCodenot mapped

BuyerFaxNumberTelecomAreaCodenot mapped

BuyerFaxNumberPhoneNumbermap from sales orderADR3-FAXNR_LONG where ADRC-ADDRNUMBER= SoldToAddressNumber

BuyerEmailAddressmap from sales orderADR6-SMTP_ADDR where ADRC-ADDRNUMBER= SoldToAddressNumber

BuyerAlternativeCommunicationMethodnot mapped





BuyerAddressLinemap from sales order

ADRC-HOUSE_NUM1 where ADRC-ADDRNUMBER= SoldToAddressNumber 

"    "

ADRC-STREET where ADRC-ADDRNUMBER= SoldToAddressNumber 


BuyerCityNamemap from sales orderADRC-CITY1 where ADRC-ADDRNUMBER= SoldToAddressNumber 

BuyerStateProvincemap from sales orderADRC-REGION where ADRC-ADDRNUMBER= SoldToAddressNumber 

BuyerPostalCodemap from sales orderADRC-POST_CODE1 where ADRC-ADDRNUMBER= SoldToAddressNumber 

BuyerPostalCountrymap from sales orderADRC-COUNTRY where ADRC-ADDRNUMBER= SoldToAddressNumber 

BuyerLocationCodemap from sales orderKNA1-LOCCO where KNA1-KUNNR = SoldToParty

BuyerExternalReferencenot mapped

BuyerTaxIdentifierNumbermap from sales order

DFKKBPTAXNUM_TAXNUM where DFKKBPTAXNUM_PARTNER = BUT000_PARTNER


BUT000_PARTNER:

BUT000_PARTNER where BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID


BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID

where CVI_CUST_LINK_CUSTOMER = SoldToParty


BuyerJurisdictionmap from sales orderADRC-TAXJURCODE where ADRC-ADDRNUMBER= SoldToAddressNumber 

BuyerTaxCertificateTypenot mapped

BuyerTaxCertificateNumbernot mapped

BuyerTaxBasisnot mapped

BuyerTaxRatenot mapped

BuyerSenderURLmap from textADR12-URI_ADDR where ADR12-ADDRNUMBER= SoldToAddressNumber 

ShipToTelephoneNumberTelecomCountryCodenot mapped

ShipToTelephoneNumberTelecomAreaCodenot mapped

ShipToTelephoneNumberPhoneNumbermap from sales orderADR2-TEL_NUMBER where ADRC-ADDRNUMBER = SToAddressNumber 

ShipToFaxNumberTelecomCountryCodenot mapped

ShipToFaxNumberTelecomAreaCodenot mapped

ShipToFaxNumberPhoneNumbermap from sales orderADR3-FAXNR_LONG where ADRC-ADDRNUMBER= ShipToAddressNumber

ShipToEmailAddressmap from sales orderADR6-SMTP_ADDR where ADRC-ADDRNUMBER= ShipToAddressNumber

ShipToAlternativeCommunicationMethodnot mapped

ShipToAddressLinemap from sales order

ADRC-HOUSE_NUM1 where ADRC-ADDRNUMBER= ShipToAddressNumber 

"    "

ADRC-STREET where ADRC-ADDRNUMBER= ShipToAddressNumber 


ShipToCityNamemap from sales orderADRC-CITY1 where ADRC-ADDRNUMBER= ShipToAddressNumber 

ShipToStateProvincemap from sales orderADRC-REGION where ADRC-ADDRNUMBER= ShipToAddressNumber 

ShipToPostalCodemap from sales orderADRC-POST_CODE1 where ADRC-ADDRNUMBER= ShipToAddressNumber 

ShipToPostalCountrymap from sales orderADRC-COUNTRY where ADRC-ADDRNUMBER= ShipToAddressNumber 

ShipToLocationCodemap from sales orderKNA1-LOCCO where KNA1-KUNNR = ShipToParty

ShipToExternalReferencenot mapped

ShipToTaxIdentifierNumbermap from sales order

DFKKBPTAXNUM_TAXNUM where DFKKBPTAXNUM_PARTNER = BUT000_PARTNER


BUT000_PARTNER:

BUT000_PARTNER where BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID


BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID

where CVI_CUST_LINK_CUSTOMER = ShipToParty


ShipToJurisdictionmap from sales orderADRC-TAXJURCODE where ADRC-ADDRNUMBER= ShipToAddressNumber 

ShipToTaxCertificateTypenot mapped

ShipToTaxCertificateNumbernot mapped

ShipToTaxBasisnot mapped

ShipToTaxRatenot mapped

ShipToSenderURLmap from sales orderADR12-URI_ADDR where ADR12-ADDRNUMBER= SoldToAddressNumber 

PayerTelephoneNumberTelecomCountryCodenot mapped

PayerTelephoneNumberTelecomAreaCodenot mapped

PayerTelephoneNumberPhoneNumbermap from sales orderADR2-TEL_NUMBER where ADRC-ADDRNUMBER = PayerAddressNumber

PayerFaxNumberTelecomCountryCode not mapped

PayerFaxNumberTelecomAreaCodenot mapped

PayerFaxNumberPhoneNumbermap from sales orderADR3-FAXNR_LONG where ADRC-ADDRNUMBER= PayerAddressNumber

PayerEmailAddressmap from sales orderADR6-SMTP_ADDR where ADRC-ADDRNUMBER= PayerAddressNumber

PayerAlternativeCommunicationMethodnot mapped

PayerAddressLinemap from sales order

ADRC-HOUSE_NUM1 where ADRC-ADDRNUMBER= PayerAddressNumber 

"    "

ADRC-STREET where ADRC-ADDRNUMBER= PayerAddressNumber 


PayerCityNamemap from sales orderADRC-CITY1 where ADRC-ADDRNUMBER= PayerAddressNumber 

PayerStateProvincemap from sales orderADRC-REGION where ADRC-ADDRNUMBER= PayerAddressNumber 

PayerPostalCodemap from sales orderADRC-POST_CODE1 where ADRC-ADDRNUMBER= PayerAddressNumber  

PayerPostalCountrymap from sales orderADRC-COUNTRY where ADRC-ADDRNUMBER= PayerAddressNumber 

PayerLocationCodemap from sales orderKNA1-LOCCO where KNA1-KUNNR = Payer

PayerExternalReferencenot mapped

PayerTaxIdentifierNumbermap from sales order

DFKKBPTAXNUM_TAXNUM where DFKKBPTAXNUM_PARTNER = BUT000_PARTNER


BUT000_PARTNER:

BUT000_PARTNER where BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID


BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID

where CVI_CUST_LINK_CUSTOMER = Payer


PayerJurisdictionmap from sales orderADRC-TAXJURCODE where ADRC-ADDRNUMBER= PayerAddressNumber 

PayerToTaxCertificateTypenot mapped

PayerTaxCertificateNumbernot mapped

PayerTaxBasisnot mapped

PayerTaxRatenot mapped

PayerSenderURLmap from sales orderADR12-URI_ADDR where ADR12-ADDRNUMBER= PayerAddressNumber 

AccountHolderNamenot mapped

AccountNumbernot mapped

FinancialInstitutionnot mapped

FinancialInstitutionDFINumbernot mapped

CreditCardNumbernot mapped

CreditCardTypenot mapped

CreditCardExpirationDatenot mapped

BillToTelephoneNumberTelecomCountryCodenot mapped

BillToTelephoneNumberTelecomAreaCodenot mapped

BillToTelephoneNumberPhoneNumbermap from sales orderADR2-TEL_NUMBER where ADRC-ADDRNUMBER = BillToAddressNumber

BillToFaxNumberTelecomCountryCodenot mapped

BillToFaxNumberTelecomAreaCodenot mapped

BillToFaxNumberPhoneNumbermap from sales orderADR3-FAXNR_LONG where ADRC-ADDRNUMBER= BillToAddressNumber

BillToEmailAddressmap from sales orderADR6-SMTP_ADDR where ADRC-ADDRNUMBER= BillToAddressNumber

BillToAlternativeCommunicationMethodnot mapped

BillToAddressLinemap from sales order

ADRC-HOUSE_NUM1 where ADRC-ADDRNUMBER= BillToAddressNumber 

"    "

ADRC-STREET where ADRC-ADDRNUMBER= BillToAddressNumber 


BillToCityNamemap from sales orderADRC-CITY1 where ADRC-ADDRNUMBER= BillToAddressNumber 

BillToStateProvincemap from sales orderADRC-REGION where ADRC-ADDRNUMBER= BillToAddressNumber 

BillToPostalCodemap from sales orderADRC-POST_CODE1 where ADRC-ADDRNUMBER= BillToAddressNumber 

BillToPostalCountrymap from sales orderADRC-COUNTRY where ADRC-ADDRNUMBER= BillToAddressNumber 

BillToLocationCodemap from sales orderKNA1-LOCCO where KNA1-KUNNR = BillToParty

BillToExternalReferencenot mapped

BillToTaxIdentifierNumbermap from sales order

DFKKBPTAXNUM_TAXNUM where DFKKBPTAXNUM_PARTNER = BUT000_PARTNER


BUT000_PARTNER:

BUT000_PARTNER where BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID


BUT000_PARTNER_GUID = CVI_CUST_LINK_PARTNER_GUID

where CVI_CUST_LINK_CUSTOMER = BillToParty


BillToJurisdictionmap from sales orderADRC-TAXJURCODE where ADRC-ADDRNUMBER= BillToAddressNumber 

BillToTaxCertificateTypenot mapped

BillToTaxCertificateNumbernot mapped

BillToTaxBasisnot mapped

BillToTaxRatenot mapped

BillToSenderURLmap from textADR12-URI_ADDR where ADR12-ADDRNUMBER= BillToAddressNumber 

ShipFromTelephoneNumberTelecomCountryCodenot mapped

ShipFromTelephoneNumberTelecomAreaCodenot mapped

ShipFromTelephoneNumberPhoneNumbernot mapped

ShipFromFaxNumberTelecomCountryCodenot mapped

ShipFromFaxNumberTelecomAreaCodenot mapped

ShipFromFaxNumberPhoneNumbernot mapped

ShipFromEmailAddressnot mapped

ShipFromAlternativeCommunicationMethodnot mapped

ShipFromAddressLinenot mapped

ShipFromCityNamenot mapped

ShipFromStateProvincenot mapped

ShipFromPostalCodenot mapped

ShipFromPostalCountrynot mapped

ShipFromLocationCodenot mapped

ShipFromExternalReferencenot mapped

ShipFromTaxIdentifierNumbernot mapped

ShipFromJurisdictionnot mapped

ShipFromTaxCertificateTypenot mapped

ShipFromTaxCertificateNumbernot mapped

ShipFromTaxBasismap from text

ShipFromTaxRatenot mapped

ShipFromSenderURLmap from text

CarrierTelephoneNumberTelecomCountryCodenot mapped

CarrierTelephoneNumberTelecomAreaCodenot mapped

CarrierTelephoneNumberPhoneNumbernot mapped

CarrierFaxNumberTelecomCountryCodemap from text

CarrierFaxNumberTelecomAreaCodenot mapped

CarrierFaxNumberPhoneNumbernot mapped

CarrierEmailAddressnot mapped

CarrierAlternativeCommunicationMethodmap from text

CarrierAddressLinenot mapped

CarrierCityNamenot mapped

CarrierStateProvincenot mapped

CarrierPostalCodenot mapped

CarrierPostalCountrynot mapped

CarrierLocationCodenot mapped

CarrierExternalReferencenot mapped

CarrierTaxIdentifierNumbernot mapped

CarrierJurisdictionnot mapped

CarrierTaxCertificateTypenot mapped

CarrierTaxCertificateNumbernot mapped

CarrierTaxBasisnot mapped

CarrierTaxRatenot mapped

CarrierSenderURLnot mapped

ShipperTelephoneNumberTelecomCountryCodenot mapped

ShipperTelephoneNumberTelecomAreaCodenot mapped

ShipperTelephoneNumberPhoneNumbernot mapped

ShipperFaxNumberTelecomCountryCodenot mapped

ShipperFaxNumberTelecomAreaCodenot mapped

ShipperFaxNumberPhoneNumbernot mapped

ShipperEmailAddressnot mapped

ShipperAlternativeCommunicationMethodnot mapped

ShipperAddressLinenot mapped

ShipperCityNamenot mapped

ShipperStateProvincenot mapped

ShipperPostalCodenot mapped

ShipperPostalCountrynot mapped

ShipperLocationCodenot mapped

ShipperExternalReferencenot mapped

ShipperTaxIdentifierNumbernot mapped

ShipperJurisdictionnot mapped

ShipperTaxCertificateTypenot mapped

ShipperTaxCertificateNumbernot mapped

ShipperTaxBasisnot mapped

ShipperTaxRatenot mapped

ShipperSenderURLnot mapped
A_SalesOrderTextCustomerRequiredInstructionsmap from textVBBK_Z004

ShipperInstructionsmap from textVBBK_Z004

ConsigneeInstructionsmap from textVBBK_Z004

CarrierInstructionsmap from textVBBK_Z004

ImportInstructionmap from textVBBK_Z004

CustomerServiceInstructionsread text read SO10 text section in Processing Logic

RoutingInstructionmap from textVBBK_Z004
A_SalesOrderItemLineItemNumbermap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

PurchaseOrderLineItemNumbermap from sales order fieldVBAP-POSNR

LineItemHandlingInstructionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

MaterialByCustomermap from sales order fieldVBAP-KDMAT

MaterialByCustomerDescriptionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ProductDescriptionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ProductGradeDescriptionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

Materialmap from sales order fieldVBAP-MATNR

MaterialDescriptionmap from sales order fieldVBAP-ARKTX

ProductDescriptionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ProductGradeDescriptionmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

SalesOrderReferencemap from sales order fieldVBAK-VBELN

SalesOrderReferenceItemmap from sales order fieldVBAP-POSNR where VBAP-VBELN = VBAK-VBELN

SalesOrderItemNumbermap from sales order fieldVBAP-POSNR where VBAP-VBELN = VBAK-VBELN

RequestedQuantitymap from sales order fieldVBAP-KWMENG

RequestedQuantityISOUnitmap from sales order fieldVBAP-VRKME

PackagingQuantitymap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

PackagingQuantityISOUnitmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

EngineeringChangeOrderIdentifiermap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

BatchNumbermap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

CountryOfOriginCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

IncotermsClassificationmap from sales orderVBKD-INCO1

IncotermsLocation1map from sales orderVBKD-INCO2_L

TransportMethodCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

LineItemPurposeCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

BalanceItemFlagmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

DeliveryTolerancesLowerLimitmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

DeliveryTolerancesUpperLimitmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

DeliveryTolerancesUnitofMeasuremap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ChangeAcknowledgementFlagfixed valuedefault <N>

LineStatusCodeSee LineStatusCode Mapping in Processing Logic section

LineResponseReasonCodefixed valuedefault <ZZ>

LineItemPurposeCodefixed valuedefault <ZZ>

ItemShiptoPartnerNamemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ItemShipToPartnerCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ItemBilltoPartnerNamemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ItemBillToPartnerCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

ItemShipperPartnerNamenot mapped

ItemShipperPartnerCodenot mapped

ItemShipFromPartnerNamenot mapped

ItemShipFromPartnerCodenot mapped

ItemCarrierPartnerNamenot mapped

ItemCarrierPartnerCodenot mapped

ItemShipToTelephoneNumberTelecomCountryCodenot mapped

ItemShipToTelephoneNumberTelecomAreaCodenot mapped

ItemShipToTelephoneNumberPhoneNumbernot mapped

ItemShipToFaxNumberTelecomCountryCodenot mapped

ItemShipToFaxNumberTelecomAreaCodenot mapped

ItemShipToFaxNumberPhoneNumbernot mapped

ItemShipToEmailAddressnot mapped

ItemShipToAlternativeCommunicationMethodnot mapped

ItemShipToAddressLinenot mapped

ItemShipToCityNamenot mapped

ItemShipToStateProvincenot mapped

ItemShipToPostalCodenot mapped

ItemShipToPostalCountrynot mapped

ItemShipToLocationCodenot mapped

ItemShipToExternalReferencenot mapped

ItemShipToTaxIdentifierNumbernot mapped

ItemShipToJurisdictionnot mapped

ItemShipToTaxCertificateTypenot mapped

ItemShipToTaxCertificateNumbernot mapped

ItemShipToTaxBasisnot mapped

ItemShipToTaxRatenot mapped

ItemShipToSenderURLnot mapped

ItemBillToTelephoneNumberTelecomCountryCodenot mapped

ItemBillToTelephoneNumberTelecomAreaCodenot mapped

ItemBillToTelephoneNumberPhoneNumbernot mapped

ItemBillToFaxNumberTelecomCountryCodenot mapped

ItemBillToFaxNumberTelecomAreaCodenot mapped

ItemBillToFaxNumberPhoneNumbernot mapped

ItemBillToEmailAddressnot mapped

ItemBillToAlternativeCommunicationMethodnot mapped

ItemBillToAddressLinenot mapped

ItemBillToCityNamenot mapped

ItemBillToStateProvincenot mapped

ItemBillToPostalCodenot mapped

ItemBillToPostalCountrynot mapped

ItemBillToLocationCodenot mapped

ItemBillToExternalReferencenot mapped

ItemBillToTaxIdentifierNumbernot mapped

ItemBillToJurisdictionnot mapped

ItemBillToTaxCertificateTypenot mapped

ItemBillToTaxCertificateNumbernot mapped

ItemBillToTaxBasisnot mapped

ItemBillToTaxRatenot mapped

ItemBillToSenderURLnot mapped

ItemShipFromTelephoneNumberTelecomCountryCodenot mapped

ItemShipFromTelephoneNumberTelecomAreaCodenot mapped

ItemShipFromTelephoneNumberPhoneNumbernot mapped

ItemShipFromFaxNumberTelecomCountryCodenot mapped

ItemShipFromFaxNumberTelecomAreaCodenot mapped

ItemShipFromFaxNumberPhoneNumbernot mapped

ItemShipFromEmailAddressnot mapped

ItemShipFromAlternativeCommunicationMethodnot mapped

ItemShipFromAddressLinenot mapped

ItemShipFromCityNamenot mapped

ItemShipFromStateProvincenot mapped

ItemShipFromPostalCodenot mapped

ItemShipFromPostalCountrynot mapped

ItemShipFromLocationCodenot mapped

ItemShipFromExternalReferencenot mapped

ItemShipFromTaxIdentifierNumbernot mapped

ItemShipFromJurisdictionnot mapped

ItemShipFromTaxCertificateTypenot mapped

ItemShipFromTaxCertificateNumbernot mapped

ItemShipFromTaxBasisnot mapped

ItemShipFromTaxRatenot mapped

ItemShipFromSenderURLnot mapped

ItemCarrierTelephoneNumberTelecomCountryCodenot mapped

ItemCarrierTelephoneNumberTelecomAreaCodenot mapped

ItemCarrierTelephoneNumberPhoneNumbernot mapped

ItemCarrierFaxNumberTelecomCountryCodenot mapped

ItemCarrierFaxNumberTelecomAreaCodenot mapped

ItemCarrierFaxNumberPhoneNumbernot mapped

ItemCarrierEmailAddressnot mapped

ItemCarrierAlternativeCommunicationMethodnot mapped

ItemCarrierAddressLinenot mapped

ItemCarrierCityNamenot mapped

ItemCarrierStateProvincenot mapped

ItemCarrierPostalCodenot mapped

ItemCarrierPostalCountrynot mapped

ItemCarrierLocationCodenot mapped

ItemCarrierExternalReferencenot mapped

ItemCarrierTaxIdentifierNumbernot mapped

ItemCarrierJurisdictionnot mapped

ItemCarrierTaxCertificateTypenot mapped

ItemCarrierTaxCertificateNumbernot mapped

ItemCarrierTaxBasisnot mapped

ItemCarrierTaxRatenot mapped

ItemCarrierSenderURLnot mapped

ItemShipperTelephoneNumberTelecomCountryCodenot mapped

ItemShipperTelephoneNumberTelecomAreaCodenot mapped

ItemShipperTelephoneNumberPhoneNumbernot mapped

ItemShipperFaxNumberTelecomCountryCodenot mapped

ItemShipperFaxNumberTelecomAreaCodenot mapped

ItemShipperFaxNumberPhoneNumbernot mapped

ItemShipperEmailAddressnot mapped

ItemShipperAlternativeCommunicationMethodnot mapped

ItemShipperAddressLinenot mapped

ItemShipperCityNamenot mapped

ItemShipperStateProvincenot mapped

ItemShipperPostalCodenot mapped

ItemShipperPostalCountrynot mapped

ItemShipperLocationCodenot mapped

ItemShipperExternalReferencenot mapped

ItemShipperTaxIdentifierNumbernot mapped

ItemShipperJurisdictionnot mapped

ItemShipperTaxCertificateTypenot mapped

ItemShipperTaxCertificateNumbernot mapped

ItemShipperTaxBasisnot mapped

ItemShipperTaxRatenot mapped

ItemShipperSenderURLnot mapped
A_SalesOrderItemTextCustomerRequiredInstructionsmap from textVBBP_Z004

ShipperInstructionsmap from textVBBP_Z004

ConsigneeInstructionsmap from textVBBP_Z004

CarrierInstructionsmap from textVBBP_Z004

ImportInstructionmap from textVBBP_Z004

CustomerServiceInstructionsmap from textVBBP_Z004

RoutingInstructionmap from textVBBP_Z002
A_SalesOrderItemPrElementPricePerUnitmap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 

PriceCurrencyCodemap from textFrom text VBBP-Z999: 
Fetch <value>  where 'Label> = <Field> 
A_SalesOrderScheduleLineScheduleDateConfirmedDeliveryOnmap from sales order fieldVBEP-EDATU
where:
VBEP-VBELN = VBAK-VBELN
VBEP-POSNR = VBAP-POSNR

ScheduleDateConfirmedShipOnmap from sales order fieldVBEP-EDATU
where:
VBEP-VBELN = VBAK-VBELN
VBEP-POSNR = VBAP-POSNR

ScheduleDateConfirmedShipBy


ScheduleDateConfirmedPickUpby

eDocument mapping

GeneralSyensqo XML (Intermediate Target)SAP eDoc Standard Mapping (Source)Custom Mapping (Source)
S-NRFlow (SD/FI/MM/ALL)Target FieldTarget Field DetailsConditionSyensqo XML NodeSyensqo XML FieldSAP eDoc Standard NodeSAP eDoc Standard FieldFixed ValueCustom Logic




















Processing Logic

SellerPartnerCode Determination Logic 

Refer to DUNS Reference Table (ZL2C_DUNS)

Fetch SellerDUNS where:

SenderDUNS = A_SalesOrderHeaderHeader/SenderDUNS

ReceiverDUNS = A_SalesOrderHeaderHeader/ReceiverDUNS

BuyerDUNS = A_SalesOrderHeaderPartner/BuyerPartnerCode


Partner Look Up Logic

Elemica use the DUNS (Partner Codes) for the different business partner roles in a message. To send a sales order response from S/4HANA, the Partner Codes for each of the SAP Customers Partner roles have to be found. As a pre-requisite, the mapping of the Partner Codes, partner role and the SAP Customer numbers will be maintained using the standard SAP table EDPAR. This table will be maintained in each client as part of customer activates via transaction code VOE4. 

Below table is the look up logic of the Partner Code from the SAP Customer partner role from sales order for the Order Response Message

Partner CodeLogic to find Partner Code from SAP Customer
BuyerPartnerCode

EDPAR-EXPNR where:
EDPAR - INPNR = <SoldToParty> and EDPAR-PARVM = SP

ShipToPartnerCode

EDPAR-EXPNR where:
EDPAR - INPNR = <ShipToParty> and EDPAR-PARVM = SH

EDPAR-KUNNR = <SoldToParty>

PayerPartnerCode

EDPAR-INPNR where:
EDPAR - EXPNR = Payer and EDPAR-PARVM = PY

EDPAR-KUNNR = SoldToParty

BillToPartnerCode

EDPAR-INPNR where:
EDPAR - EXPNR = BillToParty and EDPAR-PARVM = BP

EDPAR-KUNNR = SoldToParty>

where:

SAP Customer Code Source of SAP Customer in Sales Order
SoldToPartyVBAK-KUNNR
ShipToPartyVBPA-KUNNR where:
VBPA-VBELN = VBAK-VBELN
VBPA-PARVW = SH
PayerVBPA-KUNNR where:
VBPA-VBELN = VBAK-VBELN
VBPA-PARVW = BP
BillToPartyVBPA-KUNNR where:
VBPA-VBELN = VBAK-VBELN
VBPA-PARVW = PY

Address Number

Customer Address NumberAddress Number (KNA1-ADRNR) logic
SoldToAddressNumberKNA1-ADRNR where KNA1-KUNNR = SoldtoParty
ShipToAddressNumberKNA1-ADRNR where KNA1-KUNNR = ShipToParty
PayerAddressNumberKNA1-ADRNR where KNA1-KUNNR = PayerParty
BillToAddressNumberKNA1-ADRNR where KNA1-KUNNR = BillToParty

SO10 text for CustomerServiceInstruction

Maintain below text in SO10

This order is supplied subject to the General Terms and Conditions of sales of Solvay companies available on the Solvay Internet website: https://www.solvay.com/en/markets-and-products/doing-business-with-solvay/terms-conditions/index.html 


Sales Order Criteria for sending Order Response API

  1. Customer: Only for specific EDI customers as maintained in table ZL2C_ELEMICA_OUTBOUND where Order Response = X for the the sold to in the sales order (VBAK-KUNNR) 
  2. Sales Document Type:  VBAK-AUART = OR / ZOR 
  3. Purchase Order Type: VBAK-BSARK = DFUE (EDI Orders only)
  4. Order is not billed: Billing status VBAK-GBSTK not C

SAP Event Mesh Trigger Conditions

Trigger ConditionSales Order Event
Immediately after sales order is createdSales Order Created
Sales Order ChangesSales Order Changed
Delivery block changeSales Order Overall Delivery Block Status Changed
Credit Status changeSales Order Overall Credit Check Status Changed
Changes to rejection statusSales Order Rejection Status Changed


Custom Table: OUTBOUND EDI CUSTOMER Table (ZL2C_EDI_CUST_OUT)

Outbound EDI messages are only required by specific customers. This table is to maintain the list of customers and the outbound messages they require for use by SAP Event Mesh to trigger the outbound API.

This table should not be transportable and should only be maintained by a technical user (no user transaction or Fiori app required).

This table will be initially populated with known and existing data as part of cutover activities. It will be updated when a new customer is onboarded and required any of the outbound messages.

When a sold to requires an outbound message, an X will be marked against it.

Table Definition

Field Data TypeValidation Rule/Value Help
Sold toString
Order ResponseChar
ShipNoticeChar
InvoiceChar

 Table Example 

Sold toOrder ResponseShipNoticeInvoice
2073976XX
2094097

X


LineStatusCode Mapping

Sales Order EventLineStatusCode
Sales Order CreatedPH
Sales Order Item CreatedIN
Sales Order Item ChangedIN

Sales Order Item Rejection Status Changed

CU


Delta or Full Load Requirements

Interface Alert & Monitoring

Monitoring will be done via AIF

Language Requirements

English

User Interface Requirements

N/A
 

Sequencing

N/A


Volumetrics

circa 800 messages per month


Performance Consideration

Error Handling

Error handling for this interface to align with the error handling process for interfaces as defined for SyWay (exact approach / process yet to be defined and below are indicative only to be refined based on the defined approach)

Integration errors: All errors occurring during mapping rule execution and during posting to be added to the application log and AIF in a readable and user understandable format. These errors should trigger incident creation in SyRa (tbc)

Data errors or errors in S4 during translation, logic execution etc: These should trigger a notification to the end user / or support organisation highlighting the error in an understandable format in addition to logging the error in AIF (to be defined exactly how users will access and reprocess these failed messages)

Testing

How to Test

Test Conditions and Expected Results

IDConditionExpected Results
1OrderResponse API executes defined logics, mapping and lookups in S/4HANA and triggers the XML to SAP CPIAll defined logics, mapping and lookups in S/4HANA executed correctly and AP triggers XML to SAP CPI
2OrderResponse API sends XML to SAP CPI based on Sales Order Criteria and SAP Event Mesh trigger conditionsOrderResponse API successfully sends XML to SAP CPI based on Sales Order Criteria and SAP Event Mesh trigger conditions
3OrderResponse API sends XML to SAP CPI meeting defined structure and mappingOrderResponse API successfully sends XML to SAP CPI meeting defined structure and mapping

Test Considerations/Dependencies

N/A


Other Information


Development Details

Package

Package NameParent Package




Other Development Objects

Object TypeObject NamePurpose/High Level LogicDesign Rationale Reference









Appendix

See also


No files shared here yet.

Change log

Version Published Changed By Comment
CURRENT (v. 27) Apr 27, 2026 07:36 WEINERT-ext, Patrick
v. 45 Apr 26, 2026 17:26 ABOLAJI-ext, Luqman
v. 44 Apr 26, 2026 17:19 ABOLAJI-ext, Luqman
v. 43 Apr 26, 2026 10:04 ABOLAJI-ext, Luqman
v. 42 Apr 17, 2026 15:59 ABOLAJI-ext, Luqman
v. 41 Apr 17, 2026 09:59 ABOLAJI-ext, Luqman
v. 40 Apr 17, 2026 09:59 ABOLAJI-ext, Luqman
v. 39 Apr 17, 2026 08:42 ABOLAJI-ext, Luqman
v. 38 Apr 08, 2026 17:08 ABOLAJI-ext, Luqman
v. 37 Apr 04, 2026 16:48 ABOLAJI-ext, Luqman

Go to Page History

  • No labels