Sie sind auf Seite 1von 6

Customer Relationship Management (SAP CRM): ste...

| SCN

Page 1 of 6

Getting Started Newsletters Store

Welcome, Guest

Login

Register

Search the Community

Products Industries Lines of Business

Services & Support Training & Education University Alliances

About SCN Partnership Events & Webinars

Downloads Developer Center Innovation


Activity Browse Communications Actions

Customer Relationship Management (SAP CRM)

step by step to enable your Genil component with AET - Part One
Posted by Jerry Wang in Customer Relationship Management (SAP CRM) on Oct 25, 2013 9:26:33 AM
Share 1 0 Tweet 2 Like 0

Recently we got a requirement from customer that they want a non-extensible UI to be supported by Application extension tool ( AET ). Since I found currently there is no detailed step by step about how to achieve this, I jsut create one. AET is a powerful tool which could allow a user without any technical background to create new extension fields on UI in just a few seconds. Equipped with AET, your application becomes more flexible since it allows your customer to create new fields by themselves which are missing in your standard application. For demonstration usage I just use a component ZCRMSM which is copied from SAP standard genil component CRMSM for example. ( by the way, CRMSM is developed by us in CRM7.0 EHP3 which exposes the functionality to integrate social channel like twitter and facebook into CRM. ) The genil mode is very simple: It just have one Root object, one query object and one query result object.

step1. Create a new structure as below. EEW standards for easy enhancement workbench and SMC for Social media cockpit. This structure acts as a place holder to attach extension fields created by AET. the component EXT_SMC is just a dummy field to circumvent the

restrict that netweaver does not allow you to activate an empty structure.

step2: create a new dependent object SocialPostSetCRM_SMC to represent the extension fields belonging to a social post. Of course a Aggregation must also be created to allow the navigation from SocialPost to this DO.

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Customer Relationship Management (SAP CRM): ste... | SCN

Page 2 of 6

Now we have to create the key structure and attribute structure for DO. step3: create key structure for DO. Post ID is the unique identifier to identify a social post. UUID could also be used. Here I use post id since it is more human readable compared with UUID, which makes my trouble shooting easier.

for attribute structure, just include the key attribute above and the EEW structure created in step1, and that's all. The EEW structure is included so that every time the extension fields are created, they will be attached to EEW structure and then would also automatically appear in this attribute structure as well.

Now the enhancement for Genil component is finished, of course we need to implement the access logic on the DO as well. We will do this later and let's continue with our modelling task. step4: create a database table ZCRM_SOC_FE to store the transaction data of extension fields. Just the same logic in step3 of attribute structure: include key structure and EEW structure.

step5: tcode AXTREG, register your genil component as extensible. Create a new entry in "Extensible BOs". In this example I use ZSOCIALPOST. It is just an indicator, no need to equal with your Genil component name or model node name.

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Customer Relationship Management (SAP CRM): ste... | SCN

Page 3 of 6

Navigate to BO Parts. Create a new entry. Specify "Part of a BO". Here I just use "HEADER", which tells AET framework I want to put my extension fields on "Header" level of the Social Post. Maintain the Field Enhancement Place - the extension fields will be attached to the EEW structure maintained here. So technically speaking, if customer choose HEADER in AET ui, the extension fields will be created on EEW structure ZINCL_EEW_SMC. The remain settings could just be maintained as below:

create a new application group, or you can also reuse existing one if there is any which make senses for your business requirement. Here I just create a new one "SOCIALMEDIA".

click "Places" and register your EEW structure ZINCL_EEW_SMC here. Special the max number of fields you allow to put into this structure. And also the max bytes which are allowed for the total extension fields. The sum of Percentage customer, partner and SAP should be 100, the rule of thumb value would be 60:20:20 ( customer : partner: SAP )

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Customer Relationship Management (SAP CRM): ste... | SCN

Page 4 of 6

double click on the sub folder "BOL objects" and maintain the DO for extension fields and its BOL Path from Root object such as below:

You may observe there are some other folders like Search place and Table place. Those are places where the registration for table and search enhancement are done. This is out of scope of this blog. Now all the necessary parts in AXTREG are done. step6. Tcode SM30, choose view BSPDLCV_OBJ_TYPE and click maintain button. Then create a new entry with object type CCRM_SMC and maintain Genil component name, the root object name, the BOR object type and extension BO name, which is created in step 5.

step7: go to the view where you would like to display the extension fields, redefine method DO_CONFIG_DETERMINATION.

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Customer Relationship Management (SAP CRM): ste... | SCN

Page 5 of 6

Just specify the ui object type created in step6: 01. method DO_CONFIG_DETERMINATION. 02. CHECK iv_first_time = abap_true. 03. me->set_config_keys( iv_object_type = 'CCRM_SMC' 04. iv_propagate_2_children = abap_false ). 05. endmethod. Now launch your UI, click configure icon to reach AET page, you should see "Create Field" button is enabled, which means all registration parts done currently are correct. Now the left task is doing enhancement on Genil implementation, which will be discussed in detail in part2.

194 Views Tags: crm, webclientui, extension, aet

Average User Rating (1 rating)

Share Share

Tweet

Like

1 Comment
Arjun Pawar Oct 25, 2013 10:13 AM

Very good article with latest example.Thanks

Jerry Wang for sharing


Like (0)

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Customer Relationship Management (SAP CRM): ste... | SCN

Page 6 of 6

Site Index Privacy

Contact Us Terms of Use

SAP Help Portal Legal Disclosure

Copyright

Follow SCN

http://scn.sap.com/community/crm/blog/2013/10/25/step-by-step-to-enable-your-genil-co... 10/26/2013

Das könnte Ihnen auch gefallen