cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of Badi /SAPCND/ROLLNAME does not work

Former Member
0 Kudos

Hi everyone,

I added a new field to the field catalog, in order to show the Description of a product selected in the Tab “Discount” in Campaigns (only the id was showed).

This field was created as showed below:

Fiel name: SHORT_TEXT

Virtual: C

Selection class: A

Data element: COMT_PRSHTEXTX

After this, I associated this field to the condition tables that are going to be used in the marketing promotions, so now the new field is displayed in the Tab “Discounts”

The problem is that positioned in that tab, when I select the product, the program throws an error as showed below:

FIELD_CHECK/DEFAULT_VALUE_SUGGESTION del add-in empres./SAPCND/ROLLNAME p.filtro COMT_PRSHTEXTX

This Badi was implemented but we didn´t find any improvement.

Could anybody please help me with this issue?? Is there still something to be done?

Best regards,

Mariana

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Mariana:

This may or maynot be applicable for you becuase you look at text but if it was field on which your pricing was dependentent I would do the following:

create a dataelement ZCOMT_PRSHTEXTX

so it would be something like

Fiel name: SHORT_TEXT

Virtual: C

Selection class: A

Data element: ZCOMT_PRSHTEXTX

after you are done with generating field catalog and all other configuration part you would then implement the BADI for /SAPCND/ROLLNAME and in the filters add ZCOMT_PRSHTEXTX.

Then you have to implement 2 methods in your BADI.

ATTRIBUTE_CONVERSION & DEFAULT_VALUE_SUGGESTION

don't forget to set

e_result = 0.

e_was_executed = ctcus_true. in both methods.

please refer to /SAPCND/CL_EXM_IM_ROLLNAME class for more details.

hope this helps.

Praveen

Cheers,

Praveen.