Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to generate Voucher Codes in CRM 7 EHP1

Hallo all,

we have currently set up a CRM7 EHP1 system to check out the latest functions. I try to get the new voucher functions working. I customized the voucher stuff as described in the documentation (

I defined the voucher code variants, a number range for my vouchers and I implemented the BAdI.

My question now is: how and when are the voucher codes generated? I created a campaign of my voucher type and assigned a simple segment. Then I changed the status to 'released' but nothing happened. Even after explicitly executing the campaign, nothing happened, the number range interval still starts with 0 so no codes were generated. My BAdI implementation is supposed to write the generated code into some db table but that table is empty.

Does anyone have a clue how I get the codes to be generated?

Thanks and best regards,


Former Member

Have you created the mail form and attached the mail form to the campaign you created?

In the mail form, you have to insert the coupon code attribute in the mail form. you can found that in

mail form-> Text Element section, click on attribute button -> Attribute Category to be selected as Campaigns.

The coupon code will be generated when you execute the campaign and the segment receives email.

Hope this helps.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question