cancel
Showing results for 
Search instead for 
Did you mean: 

Create interaction record in SAP CRM programmatically

Former Member

Our SAP Hybris Marketing is integrated with the SAP CRM. Right now we are facing the following problem:

We send emails with qr codes in Hybris Marketing. It encodes the ID of the executing campaign and the interaction contact key of the recipient. The code represents a ticket to an event. In the next step we use a UI5 application with barcode scanner to decode the code. This information should now be used to create an interaction record in the SAP CRM. How can this be achieved?

I'm trying to find out what options are available for creating this interaction record. Is there, for example, an OData service or badi that can help? Or can the functionality for link tracking be used (put together link and call directly to generate interaction)?

Thank you for any hint!

__________________________________________

UPDATE: Just found this (not yet checked)

"To create CRM business transactions from SAP Hybris Marketing, you use the enhancement spot CUAN_CRM_CREATE_1O (Trigger Creation of CRM Activity) to implement the BAdI CUAN_CRM_CREATE_ONEORDER_ACT (Create Business Transactions). This BAdI includes a standard implementation."

Accepted Solutions (0)

Answers (1)

Answers (1)

vineet_kaul
Contributor

Hi Ubkcah,

Firstly, i am happy to see that you managed to get the qr codes into emails(expecting that you did post the solution to your other problem).

also for creating these business interactions in CRM i think the trigger is required when you read/scan the qr codes. As you will send the email to the customer prior to even and the customer may open and also click on any of the links supplied in the email prior to the even or without turning up at the event so link tracking may not be the best solution. You require something at the QR code scanner end to some how either trigger a response in ymkt as an interaction which can be further used to create CRM transactions or Thank You emails as a trigger based campaigns, but the trigger point in my view has to reside at the UI5 application scanning and reading the bar codes. you could simply call one of the api's for posting an interaction into ymkt.

Thanks

Vineet

Former Member
0 Kudos

Hi Vineet, thank you for the ideas. I added the solution to my question about sending customer-specific qr codes with yMarketing. I understand your concern about the link tracking. The customer should definitly not be able to call the link himself. However, the link could maybe be put together when scanning the qr code. The new idea was about APIs which post an interaction to yMarketing. Can you give me more information about these APIs? Thank you!

vineet_kaul
Contributor
0 Kudos

Hi Ubkcah,

You can use the standard odata call of CUAN_IMPORT_SRV to push interactions into ymkt from your UI5 application.

All you need to do is consume the odata service in your app and generate a payload with required details and push it to ymkt via odata. This should be more or less the same as how you are doing the data import today in your system if via Odata calls. You can see the sample payload and odata calls for pushing interactions into Ymkt here sample.

Once the interaction is created you can then create a trigger based campaign which will have action as Create Transaction in CRM and other alternate actions, this would ensure that you have data in sync between both CRM and Ymkt.

On the contrary you can directly scan and read the data and then using an RFC/webservice call create a business transaction in CRM without touching the Ymkt system and later push data into Ymkt from CRM if required.

Thanks

Vineet

Former Member
0 Kudos

Hi Vineet.

I guess creating interactions with OData is the best way. Trigger based campaigns are created in yMarketing UI, right? Is there a way to sync the interactions with the CRM without trigger based campaigns so that no more work has to be done except scanning the qr code? Everything - which means the creation of the yMarketing interaction as well as the CRM business transaction - should be done in the UI5 app at best. By creating a trigger based campaign, the effort for the employee will be increased. I try to reduce that manual work as far as possible. Is it possible to use OData for the creation of the interaction in yMarketing together with an RFC/webservice call which creates the business transaction in the CRM? To be honest, I'm not used to RFC/webservice calls. Can you provide any samples to that topic?

Thank you!

vineet_kaul
Contributor
0 Kudos

Hi Ubkcah,

Yes, you can create trigger based campaigns from yMKT UI itself and is a very easy plus it will be a one time activity of creating the campaign and need not to be done for every customer QR code which is scanned, the system will take care of it itself. You can directly call your CRM system from scanning app and create transactions there but the reason why I suggested trigger based campaign was, just in case you want to send a thank you email to the customer for visiting the event or a gift voucher or so, which can be done very easily by trigger campaigns with minimal effort.

As for RFC, you can follow this example.

It shows how to connect two SAP systems, your basis team should help with the connection, as a matter of fact you can use RFC for Hybris as well and not use Odata to create interaction FM CUAN_INTERACTION_POST can be used.

once your system hosting the UI5 app is connected to Hybris & CRM systems you can then embedded the RFC calls to Hybris and CRM in your scanning program to decode and send the information to both systems in real time.

This would not require you any odata work and can be done via RFC's. Your basis team should help in setting up the RFC connections and a simple development is required for making these RFC calls to post data in relevant systems.

Hope this helps 🙂

Thanks

Vineet

Former Member

Thank you so far... that sounds like a plan! I will try to implement our use case and give an update as soon as the work is done.