on 06-05-2013 6:16 AM
Hi all I have a requirment for creating action On fields.
I read in one of the SAP Documents about this new feature in Ehp1. but i did not find any documentation regarding this.
How can i Configure it. ( I also know that this is done through Design layer but was not able to find how)
experts plz help.!
Thanks,
Dhruvin,
Hi Dhruvin,
open BSP component CRM_THTMLB_COMP and TEST it u can see different uses of Action menu in it..as a sample...u can chk the views their .htm files and methods (Build_actions) in IMPL class...hope this helps...i will try to answer ur ques on Design layer as well..
Regards
Himanshu Kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check this line once.
http://help.sap.com/saphelp_crm700_ehp01/helpdata/en/ec/9ae2f19d674e7a804f55571bbd7cef/frameset.htm
you can find more in se80 tag browser under bsp extensions transportable thtmlb action menu. see the below example.
<%
data: ll_action_item type wcfs_thtmlb_action_menu_item,
lt_action_items type wcft_thtmlb_action_menu_items.
ll_action_item-id = 'action_item01'.
ll_action_item-type = if_bsp_wd_action_descriptor=>gc_type_generic_action.
ll_action_item-text = 'send e-mail'.
ll_action_item-icon_src = '/sap/bc/bsp/sap/CRM_thtmlb_comp/email.gif'.
ll_action_item-onselect = 'SELECT_AM'.
insert ll_action_item into table lt_action_items.
clear: ll_action_item.
ll_action_item-id = 'action_item02'.
ll_action_item-type = if_bsp_wd_action_descriptor=>gc_type_generic_action.
ll_action_item-text = 'check address'.
ll_action_item-icon_src = lv_icon.
ll_action_item-onclientselect = 'open_win();'.
insert ll_action_item into table lt_action_items.
%>
<thtmlb:label
id = "label_bp"
text = "Business Partner:"/>
<thtmlb:actionMenu
id = "actionMenuBP"
actionItems = "<%= lt_action_items %>"
for = "textViewBP">
<thtmlb:textView
id = "textViewBP"
text= "John Black" />
</thtmlb:actionMenu>
<%
data: lr_action_provider type ref to cl_bsp_wd_action_provider.
create object lr_action_provider type cl_wcf_action_menu_descr2.
%>
<thtmlb:label
id = "label_bp"
text = "Business Partner:"/>
<thtmlb:actionMenu
id = "actionMenuBP"
actionDescriptor = "<%= lr_action_provider %>"
for = "textViewBP">
<thtmlb:textView
id = "textViewBP"
text= "John Black" />
</thtmlb:actionMenu>
<thtmlb:label
id = "label_bp"
text = "Business Partner:"/>
<thtmlb:actionMenu
id = "actionMenuBP"
actionItems = "<%= lt_action_items %>"
iconSrc = "myIconURL.jpg"
for = "textViewBP">
<thtmlb:textView
id = "textViewBP"
text= "John Black" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen ,
Thanks a lot for info. It helped a lot.
Btw can you tell me step by step or something like that as By chnaging in HTML i need to change every where manually , this can be done by design layer as well. how to achieve that.
And how can i add SKYPE Call to be very specific! again thanks for the info in mean time I am also doing R&D for the same
hi
i am sorry even i am new to this topic. i was just trying to add one action menu in a table view for a particular field by redefing AC getter method. but something is stopping me.
when it comes to SKYPE , i really dont have any idea. i only know for any action item, if you assign any onselect event, that will be triggered. so we need to code in that event handler accordingly. i will let you know if i find anything.
Hi Praveen,
Yes its Ehp1s functionality but I was wondering even no standard Examples are given by SAP!
btw you said you were Redefining AC getter method ( can ypou plz tell in which component you were trying) but in my system there is no as such GETTER i guess i need to go in Class and need to create get_ac-** method by self!
I think we need to check it also... although this is a good functionality need to explore a bit more...
Thanks for info again...!!!
hi
i am not checking it in the sap standard one. i created one z table view and tryting to implement this concept. there is already one sap standard class which i could see this implementation.
do where used list on class CL_BSP_WD_ACTION_PROVIDER. it will show you one AC getter method. you can have look at it.
we need to code in this method if we want show action menu for any field.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.