Ansicht
Dokumentation

CRM_MKT_PVC_CONVERT - BAdI: Convert Voucher Code to Alphanumeric Form

CRM_MKT_PVC_CONVERT - BAdI: Convert Voucher Code to Alphanumeric Form

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Marketing Vouchers(CRM-MKT-MPL-ST-VOC) component.

You can use this Business Add-In (BAdI) to shorten large numbers taken from the number range interval and convert them to a more user-friendly format, such as alphanumeric form. You use this for voucher codes.

You implement this BAdI as a part of voucher handling. The BAdI is called by the APIs to generate voucher codes.

Voucher codes can also be created based on the voucher code variants defined in the IMG activity Define Voucher Code Variants.

The input to the BAdI method is a unique number from standard number range function and is in numeric form (base10). You define the number range interval in the IMG activity Define Number Range Interval for Voucher Codes. You can implement your own conversion logic to convert the voucher code.

The following are important voucher code attributes:

  • Maximum possible length of voucher code: 20 digits
  • Highest possible value of voucher code that can be generated: 99999999999999999999
  • Maximum possible length of voucher code when converted to alphanumeric form: 30 alphanumeric characters

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

SAP provides the default BAdI implementation CRM_MKT_PVC_CONVERT.

The default implementation is designed to work with the Customizing activity Define Voucher Code Variants. This can be found under Customer Relationship Management→Marketing→Marketing Planning and Campaign Management→Coupons.

You must not deactivate the default implementation unless you provide an alternative implementation, which is active.

If you deactivate the default implementation, then the numbers picked up from the standard number range function will not be converted to alphanumeric form. They will be directly displayed as voucher codes.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

BAdI method documentation:






RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3451 Date: 20240523 Time: 180650     sap01-206 ( 106 ms )