on 10-18-2014 9:31 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
If you will open the activity the activity should show: Dealer visit: 181/test
Thanks & Regards,
Madan
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.
Hi Srinivas,
Thanks a lot for ur valuable contribution and support..It is really helped your inputs.
Thanks & Regards,
Madan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.