Skip to Content

Action Menu on Fields in CRM7.0 Ehp1 Configuration

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,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 05, 2013 at 10:13 AM

    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.

    • Creating the actionMenu with the items table:

    <%
    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>

    • Creating actionMenu with an action provider instance:

    <%
    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>

    • Setting a custom icon to the 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" />

    </thtmlb:actionMenu>
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2013 at 06:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.