cancel
Showing results for 
Search instead for 
Did you mean: 

Adding attribute to email form in CRM marketing

Former Member
0 Kudos

Hi,

I am currently creating an email form in CRM and would like to add the business partner email address to the email form. This is not available in the 'Objects/Attributes' area in the 'Maintain Mail Form' transaction in CRM under the BP_STRUCTURES.

I have already configured the scenarios for the mail form in the IMG via the path below:

CRM -> Marketing -> Marketing Planning and Campaign Management -> Personalized Mail -> Maintain Scenario for Mail Forms

I created a new scenario and assigned a structure but I cannot find the right structures. I assigned the following structures which do contain an email address but when I tested the email no data is being populated. Structures I tested:

/SAPSLL/API1006_ADDRESS_SPI_S

BAPI_PARTNER_COMADR

I was wondering does anyone know which structure i should use to include the e-mail address attribute in the mail form?

I have already checked posting

but i cannot see which structure i should use to populate the email address.

In addition to this I wondered whether anyone knows how I can include new fields which i have extended on the business partner master using EEW. Can these be only included using the BADI CRM_IM_ADD_DATA_BADI ?

Any tips would be much appreciated.

Regards

JoJo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use any structure you want in the customer scenario. You can create your own Z structure with the fields that you want to use in the email forms.

You need to implement badi CRM_IM_ADD_DATA_BADI to fill values for these fields.

if you want to use any attribute that does not come in standard (ex. extended using EEWB), you can use the BADI to fill your structure that you configured in the customer scenario.

regards

Prakash

gurkan_altiner
Discoverer
0 Kudos

Does anybody have a sample code for this BADI? how can you debug this BADI (CRM_IM_ADD_DATA_BADI), in theory this is only triggered from the FM CRM_IM_EMAIL_CREATE_AND_SEND and this Fm is called in the background program (Target group to channel)-thanks

Answers (0)