cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP_outbound_ID in order replication from Commerce to Marketing

Former Member
0 Kudos
306

Hello,

We are trying integrate Hybris Commerce (6.6) with Hybris Marketing (1709SP01).

We are having some issues with CUAN_BUSINESS_DOCUMENT_IMP_SRV service for order replication.

When a customer clicks on an email from Hybris Marketing, the sap-outbound-id from link is storing in client's cookie. Then all the data from clickstream go to Marketing with this Id:

 "SourceObjectType" : "CUAN_MARKETING_ORCHESTRATION",
 "SourceObjectId" : "4647637C5A41605B3DFBC91E15017CAF5E5F9FA0" (unique id for per link).

But when customer has an order, it comes without SourceObjectId and SourceObjectType (because CUAN_BUSINESS_DOCUMENT_IMP_SRV do not support it). In CUAN_BUSINESS_DOCUMENT_IMP_SRV sap-outbound-id is replicating only with ID like this:

 "ContactIdOrigin": "SAP_TRACKING_ID",
 "ContactId": "4647637C5A41605B3DFBC91E15017CAF5E5F9FA0",

In this case we are having problems with connection tracking id and campaign content. We can see what the customer bought from email campaign, but don't see from which message or link he bought, because there can be many messages or links in one campaign.

So we have this questions: 1. Is this standart logic or bug? 2. Is CUAN_BUSINESS_DOCUMENT_IMP_SRV support the campaign content tracking or should we use CUAN_IMPORT_SRV? 2. What should we do and which side from: Commerce (add something in import) or Marketing?

Would be grateful for any advice.

PS

Full json to CUAN_BUSINESS_DOCUMENT_IMP_SRV:

 {
   "Id": "5AA0016072F4A646BB0000000000008",
   "SourceSystemType": "COM",
   "SourceSystemId": "SAP_MERCH_SHOP",
   "BusinessDocuments": [
     {
       "Id": "testDudeOrder",
       "ContactIdOrigin": "SAP_TRACKING_ID",
       "ContactId": "4647637C5A41605B3DFBC91E15017CAF5E5F9FA0",
       "InternalObjectType": "SALES_ORDER",
       "ExternalObjectType": "SAP_HYBRIS_ORDER",
       "ExternalId": "testDudeOrder",
       "ExternalTimeStamp": "/Date(1513864830000)/",
       "Currency": "RUB",
       "ActionCode": "04",
       "Amount": "1410.14",
       "StatusCode": "03",
       "ProductItems": [
         {
           "Id": "testDudeOrder|0",
           "ObjectType": "SAP_HYBRIS_PRODUCT",
           "ObjectId": "110561",
           "Amount": "1402.04",
           "Quantity": "2",
           "UnitOfMeasure": "pie"
         }
       ]
     }
   ]
 }

And well-working json to IMPORT_SRV from old site (not Hybris).

 {
 "Id" : "",
    "Timestamp" : "/Date(1513069639000)/",
    "SourceSystemType" : "WEBSHOP",
    "SourceSystemId" : "ONLINE_SHOP_OLD",
    "Interactions" : [
       {
          "Key" : "",
          "CommunicationMedium" : "BUSINESS_DOCUMENT",
          "ContactId" : "456789",
          "ContactIdOrigin" : "SAP_HYBRIS_CONSUMER",
          "InteractionType" : "SALES_ORDER",
          "Timestamp" : "2017-12-12T12:12:00",
          "SourceObjectId" : "4647637C5A41605B3DFBC91E15017CAF5E5F9FA0",
          "SourceObjectType" : "CUAN_MARKETING_ORCHESTRATION",
          "SourceObjectAdditionalId" : "11223345",
          "SourceSystemId" : "ONLINE_SHOP_OLD",
          "SourceSystemType" : "WEBSHOP",
          "Currency" : "RUB",
          "Amount" : "9000.00"
          }
          ]
          }







Accepted Solutions (0)

Answers (1)

Answers (1)

KunalBansal
SAP Champion
SAP Champion

Hi,

Standard Access Link https://<Server>:<Port>/sap/opu/odata/SAP/CUAN_BUSINESS_DOCUMENT_IMP_SRV;v=0002/$metadata?sap-documentation=all

Br,

Kunal