Sei sulla pagina 1di 7

2/10/2014 Almost all about External list management (ELM) | SCN

http://scn.sap.com/docs/DOC-42928 1/7
Getting Started Newsletters Store

Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
1,638 points Welcome, Kavindra Joshi Search the Community
Activity Communications Actions
Browse Create
Your
0
Tweet
created by Dhruvin Mehta on Jun 19, 2013 12:40 PM, last modif ied by Dhruvin Mehta on Sep 19, 2013 11:46 AM
Hi All , I have been working with ELM since past few days. and I would like to share some knowledge about
ELM , Configuration for ELM , Enhancing ELM , Troubleshooting ELM and someother things or tips as well.

ELM :
What is ELM : ELM , External List Management is used to pull data from external sources such as your Flat
files ( text , csv) and upload the same in System for Creation of Business Partnes , Activities , Lead or
Prospect and Target Groups.

So the ELM : 1st gets data from External Source, 2nd it Maps that data as per your requirment and 3rd it
creates Business Partner or Business Transactions ( Activity , Lead ).
You can use this for High Volume data as well.

So before you start using ELM you need to do some configuration.
Goto SPRO->Customer Relationship Management->Marketing->External List Management.

* Define List Type :
In this activity you define types for your lists. The values that you define here will then be available in the
input help for the field Type. It consists of a technical key and a short description. In our Case we have used
standard but you can create your own List type. Just create New List type and select while creating ELM. You
can also check Rented indicator ( If the data in an address list is rented, a category must be assigned to this
list in which in Customizing the indicator is set to Rented.)
For Rented : :
Business partner master records where the indicator Rented is set, are not distributed to CRM Mobile and not
distributed to the connected OLTP Systems. Only when the indicator Rented is removed from the business
partner, can the master record distribution take place.



* Define List Origin :
In this activity you define the possible origins of your lists.
The values that you define here are available in the input help for the field Origin.
For each origin defined you can set the Consumer indicator to determine whether general business partners or
consumers are created when you generate business partners.
You Can assign the the origin of an identification type for the business partner. For detailed
information, see the definition of Origin.
Identification numbers must be mapped to the fields ORG_ID_NUMBER or PERS_ID_NUMBER in ELM's
mapping tool.
in our case we needed to create customer for particular Identification type so above two statement is very
important if you need to create your business partner
Almost all about External list management
(ELM)
Version 4
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 2/7
if you want them to create with Identification number.

* Implement Workflow Customizing :
Before you do this step you need to go to SWU3(tcode) for automatic Workflow customizing and make
proper settings.
You need to goto PFTC and open WS14000029 then goto Workflow builder then goto its Basic Data and in
Agent assignment Task you need to check Genral Task.
Above is the Basic Configuration for ELM and is ready to use.

Creation :
1) For using ELM we need to create Mapping Formats.
2) Creating ELM. Give Mapping format , List type , List origin and your file path while executing ELM.
3) check for errors ( if any ) or see the data.

in Detail : Step 1 : Creating Mapping Formats:
Go To Marketingprofessional Business Role and Create Mapping.( One Time Activity ).
1) you need to Feel ID for Maping Format and Categoty : you can select the Categories of Data which has to
be uploaded.
(In my scenario I am creating Business Partner and Activity Transaction , So i Have Selected Addresses and
Activities)

2) Now You need to MAP. For More Ease you can select a file in which your data will be there. upload it and
make sure it doesnt have
header data and only one row of data. Or else you can directly Map the data. (as i have done below)
Left Side of table ( Field mapping , contains field which will get uploaded ). Select the Value from Left , Select
the number of columns from right and Click on Map.
In below screen shot its been shown.
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 3/7
Note : You can also give your own Mapping Rule. For exmple Constnat which i have shown below.

Step 2 : Creating ELM.

Marketing->External List Management ( Create )
Below Screen is for Creating External List ( uploading file ).
1) General Data
->ID
-> External List Origin ( This we have defined while customization ELM ) : We have assigned 1 Identification
number for our External List origin as External List Management
-> External List Type : Declared in customizing.
( Customizing is shown above )
-> Mapping Format : Give Mapping Format which we have created in above step.

2) Process Steps :

1) Read Data : We have to provide File path by clicking button "Select Client File" or "Select Server File".
Give deliminator as per your requirement.
2) Map Data : this tick will Map Data From File to Mapping Format we have created.
3) Maintain Business Partner : This Will be ticked if one wants to create business Partner From File
( We have to define and wrote logic in Badi : CRM_MKTLIST_BADI)
This Business Add-In (BAdI) is implemented as a part of External List Management (ELM).
For Business Partner Creation : Method : CREATE_BUSINESS_PARTNERS
4) Create Business Transaction : This Will be ticked if one wants to create business transaction From File
( We have to define and write logic in Badi : CRM_MKTLIST_BADI)
This Business Add-In (BAdI) is implemented as a part of External List Management (ELM).
For Business transaction Creation : Method : CREATE_BUSINESS_TRANSACTIONS.

You need to mention in the External list when to run the list. Immediately or on certain time.

Note : You can also look into default implementation class :CL_DEF_IM_CRM_MKTLIST_BADI for
refrence.
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 4/7
after filling all mandatory and required fields you have to press button in upper left corner "Start".
This will start ELM and dpending your process steps functions will trigger.
Below screen shot is of after completion of Process steps.


after Successfull execution of ELM you can see the list recird by clicking on button "Show List Records".

Error Handling in ELM. When your file contains some error ( you can also write your own logic , in this case I
have).
Below is the screen shot.

Click on Error to see further information.
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 5/7
Error Handling in ELM. (CODE)



Note : Remember to pass C_HEAD_GUID while appending the message to exporting table of method.
For more info : http://scn.sap.com/thread/3386674.



Enhancing and Adding fields in ELM for mapping :

There are requirments to add custom fields for elm because may be standard fields are not sufficient enough
for some
customers.

for that purpose we have to use below Structures.

CRMT_MKTLIST_ORG_EXT,
CRMT_MKTLIST_PER_EXT,
CRMT_MKTLIST_ADR_EXT,
CRMT_MKTLIST_CP_EXT,
CRMT_MKTLIST_ACT_EXT,
CRMT_MKTLIST_LEA_EXT,
CRMT_MKTLIST_BCI_EXT.

We have to create an append structure in above structures in case if we want to add aditional field. below is the
screen shot.
As soon as the append structures are created and activated, respective fields would start appearing as
available fields for the mapping formats.
How To : Create BP with Stree2 field ( Which is not available in standard CRMT_MKTLIST_ADR_EXT struct )
Step 1 : We added appenbd structure with 1 field ( stree2 in our case ) in CRMT_MKTLIST_ADR_EXT.
Step 2 : This field now will be available for mapping,. Map the field with your file's field.
Step 3 : Write logic to add street2 in BP. in method
ofIF_EX_CRM_MKTLIST_BADI~CREATE_BUSINESS_PARTNERS. There are two methods
CREATE_PERSON and UPDATE_PERSON ( if you have copied standard classes method which we
described above).
(As its a badi you can write logic easily with your requirment , and even standard logic if you see is very easy
to understand).

Issues and its Resolution :
If you have created the mapping for Addresses and if you have not added
ISO code PERS_COUNTRYISO
it will throw an error. "Address incomplete; enter country". So you have add Country Code in your mapping.
If tour taget file doesnot contain country you can add Constant in mapping rule.
01. ES_ERROR-TYPE = 'E'.
02. ES_ERROR-ID = LV_MSGID.
03. ES_ERROR-NUMBER = LV_MSGNUMBER.
04. ES_ERROR-PARAMETER = LS_MKTLIST_PER-C_HEAD_GUID.
05. ES_ERROR-MESSAGE = LV_MSGTEXT.
06. ES_ERROR-MESSAGE_V1 = LS_MKTLIST_ADR-ID_NUMBER.
07. EV_ERROR = 'X'.
08. APPEND ES_ERROR TO ET_MESSAGE.
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 6/7
Average User Rating
(8 ratings)
My Rating:
Tweet
0
Postal Code PERS_POSTL_COD1
above filed for PO code is also nessacary.

Campaing Element is also nessacary to create business transaction such as activities and leads.
I have read about doing implicit enhancement in method CHECK_RESPONSE of class
CL_CRM_MKTLIST_MR_CHECK_TOOLS and write the logic to remove corresponding error message with
message class CRM_MKTLIST_MR and message id 281.

But in my case I have created a DUMMY campaign Id and
Commented my badis code for creation of docflow (badi code) in this way you dont need to do implicit
enahancement although that is also very good approach.

Debugging

As we have implemented the badi CRM_MKTLIST_BADI. one must need to debug as sometime debugging is
the only option
but when you run ELM these process steps are triggered by workflow user so if you directly put external
breakpoint in badi it wont stop for debugging so below is the way for debugging.

1) Open FM(Se37) CRM_MKTLIST_WORKFLOW_DEBUG put external breakpoint here.
2) Go to your user parameters for which you want to enable debugging (SU3) and insert a Parameter with ID
CRM_DEBUG_CODE and value as
MKTLIST.
3) Now put external breakpoint in badi methods.
4) Run ELM. Debbuging session will open . 1st it will go on FM CRM_MKTLIST_WORKFLOW_DEBUG. press
F8 , you will be in your badi method in which you have put external Breakpoint. so it will stop there and you
can debug...
Thats it.. please share if i am missing any point. Thanks all for reading.
1678 Views Topics: customer_relationship_management Tags: marketing, management, crm, list, external, elm
9 Comments
Like
(0)
SUNIL KUMAR Jul 29, 2013 8:41 AM
Hi,
The Title is misleading. It's not all about ELM. What about maintaining values, values mapping, file
type, upload time, upload process, upload errors etc?

There are a lot of stuff which can be added in basic introduction. Like lead creation, activity creation,
output of ELM upload etc.

Regards,

Sunil
Like
(0)
Dhruvin Mehta Jul 29, 2013 11:17 AM (in response to SUNIL KUMAR)
Hi Sunil Sorry for inconvience. Its still in Draft State by mistake it has been published will
finish asap and will publish it again.
Digant Trivedi Aug 21, 2013 7:46 AM
Hi,
Nice work.keep publishing.

Regards
Digant
2/10/2014 Almost all about External list management (ELM) | SCN
http://scn.sap.com/docs/DOC-42928 7/7
Follow SCN
Site Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Like
(0)
Like
(0)
Dhruvin Mehta Aug 21, 2013 9:10 AM (in response to Digant Trivedi)
Thanx!
Like
(0)
Preeti Singh Aug 22, 2013 11:52 AM
Hi Dhruvin,

This documnet helped me alot in completing my current assignmnet on ELM.

Thanks,
Preeti Singh
Like
(0)
Dhruvin Mehta Aug 22, 2013 11:54 AM (in response to Preeti Singh)
Hi Thanks,

I am glad it helped you!
Like
(0)
Sumeet Gehlot Jan 30, 2014 1:06 PM
Hi,

Can you please tell me what is the program name or id which is getting called when ELM is started.

Regards,
Sumeet
Like
(1)
AMIT SAXENA Jan 31, 2014 7:58 AM
Hi Dhruvin

Nice work..

I would like to add a point here... when system creates the BP through ELM it actualy pics the number
range which is assigned to the Grouping as Internal Standard Grouping for BP/Prospects, you can
access this from the path:

SPRO>Cross application comp>SAP Business Partner>Business Partner>Basic Settings>Number
Range and Groupings>Define Groupings and Assign Number Range.

Now here point should be remeber that you can only map one grouping as Internal Standard
Grouping. So if you want to use your custom number range for Prospect/BP creation from ELM you
should also consider above point.
Like
(1)
Swaraj Sonakul Feb 8, 2014 11:51 AM
Hi,

Nice work. it will be very helpful info...

Thanks
Swaraj

Potrebbero piacerti anche