cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Activity title in crm web ui

Former Member
0 Kudos

Hi All,

We have a requirement to change the Activity  title in web ui.

For example : In WEBUI Salespro->activities->search activities then open any activity like customer visit etc. the standard title is Customer visit: Description.

we would like to change the title like Customer viist: Transaction Id/description .

component : BT126H_CALL

Window : BT126H_CALL/MainWindow

Method: IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION

Can any one guide me or provide sample code regarding the same .

Note: The title should be opportunity title in web ui

Your Inputs are highly appreciated.

Thanks & Regards,

Madan

Accepted Solutions (1)

Accepted Solutions (1)

former_member210661
Active Contributor
0 Kudos

Hi Madan,

Have you resolve your issue. if you solved then close the thread otherwise let me know do you have any queries.

Thanks & Regards,

Srinivas.

Former Member
0 Kudos

Hi Srinivas,

Thanks for your prompt reply and support.

The answer is helpful but in my scenario If you will open the activity(Dealer visit) and the activity
description shoud be Dealer visit: Transaction id / descritption ( Dealer Visit: 181/test ).
 

1.How can I identify the component.

2. how can i read the transaction Id.

If you have code please send me.

  1. 1. Login w ith ZSALESPRO user role
  2. 2. Click on "Activities" in
    the navigation bar
  3. 3. Click on "Activities"
    under SEARCH in the Work Area
  4. 4. Click on 'Result List’

  If you will open the activity the activity should show: Dealer visit: 181/test

Thanks & Regards,

Madan


former_member210661
Active Contributor
0 Kudos

Hi Madan,

in your activity view place the cursor on any one of the field and click on alt+shift+f2 then you will get hierarchy list like this..

in that click on overview page identify the component name.

go to that component and GET_STATE_DESCRIPTION there is already predefined code exists that code will display the selected text so you have to manipulate that code and display accordingly.

In my previous link i have pasted some code to display transaction no and text.

DATA:

       lr_entity            TYPE REF TO if_bol_bo_property_access,

       lv_tran.no         type CRMT_OBJECT_ID.

   lr_entity = me->typed_context->btadminh->collection_wrapper->get_current( ).

   CHECK lr_entity IS BOUND.

   description = cl_crm_uiu_bt_tools=>get_title_header( lr_entity ).

lv_tran.no = lr_entity->get_property_as_string( iv_attr_name = 'transaction.no' ).

you have to get that transaction no.

CONCATENATE lv_tran.no '/' description  INTO description SEPARATED BY space.


this is the way based on that you have to manipulate according to your requirement.


Thanks & Regards,

Srinivas.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Srinivas,

Thanks a lot for ur valuable contribution and support..It is really helped your inputs.

Thanks & Regards,

Madan

RaviTejaGuptha
Active Participant
0 Kudos

Hi Madan,

Sample code:

method if_bsp_wd_history_state_descr~get_state_description.

  data: lr_comp_controller type ref to cl_bt111s_o_bspwdcomponen_impl.

  •   here the name of the button and the event is determine

  lr_comp_controller ?= comp_controller.

  if lr_comp_controller->gv_archive = abap_false.

    description = cl_wd_utilities=>get_otr_text_by_alias( 'ZCRM/SEARCH_OPPORTUNITY' ).

  else.

    description = text-003.

  endif.

endmethod.

former_member210661
Active Contributor
0 Kudos

Hi Madan,

go through this link here i had faced same problem last 7 months back. let me know if you have any issues regarding this..

Thanks & Regards,

Srinivas.