cancel
Showing results for 
Search instead for 
Did you mean: 

Update custom field by ELM

Former Member
0 Kudos

Hi,

in order to create leads by ELM, i've successfully added custom fields into mapping format (these fields belong to CRMD_CUSTOMER_H).

Even if i give values as input for these custom fields, the lead created by CRMD_MKTLIST transaction don't have updated fields.

Can you help me?

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nicola,

In order for you to successfully map customer fields using ELM there are two steps that would need to be done.

1. Create an append to the structure CRMT_MKTLIST_LEA_TAB. This will enable the field to be available in your mapping format under the lead section.

2. You will need to create an implementation of BADI CRM_MKTLIST_BADI and add your code in method CREATE_LEADS to put the data in the placeholder into the transaction.

I hope this helps.

Regards,

David.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi David,

we have already made what you describe in the first point.

While for what concern the second point, what do you mean by CREATE_LEADS? is CREATE_LEADS the CREATE_BUSINESS_TRANSACTIONS method?

1) Could you please show me how update a custom field by adding code to the CREATE_BUSINESS_TRANSACTIONS method?Could you give me any example?

2) If this method was scheduled, how can i achieve any error messages?

Thank you.

Former Member
0 Kudos

Hi Nicola,

If you take a look in the CREATE_BUSINESS_TRANSACTIONS there should be a method called CREATE_LEADS embedded inside it. In response to your further questions below, within the CREATE_LEADS method the function module CRM_ORDER_MAINTAIN is called. It is here that you will need to fill the table for IT_CUSTOMER_H with the data from your CSV file for the customer enhanced fields.

If you look at the signature of the method, there are ways you can enter display error messages in the ET_MESSAGE table.

Please reward with points if helpful.

Regards,

David.