on 11-27-2014 7:40 AM
HI team,
In complaint screation Two fields available, I want to show these two fields into Complaint search screen and complaint result screen.How to do it..these two fields are standard.
Two fields in component - BTCATEGORIES
Search component -BT120S_CPL.
Please help..
Regards
Kalpana
Hi Kalpana,
You can find many threads about this issue.
First of all you need to enhance the query object bol structure with the new fields you want to add in search and enhance respective result structure with new field.
You need to enhance the BADI with custom implementation ES_CRM_RF_Q1O_READ.
You can refer below links for more better understanding.
Best Regards,
Dharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please help us...below issue..
Hi Kalpana,
These 2 fields are standard fields, you want to add then in search criteria right?
or already these fields available in complaint search criteria?
If you want to add any new fields in search criteria you have to enhance the bol queery structure and then you have to change the logic for search.
check above documents, they have given for adding custom fields but you need to add standard field only instead of custom field.
Best Regards,
Dharmakasi.
Iam getting an exception in i this line ...
lr_cat_first->get_property_as_value( EXPORTING iv_attr_name = 'CAT_GUID'
IMPORTING ev_result = lv_category_selected_guid ). "lv_category_selected_guid
lr_schema_entity = lr_entity.
please find below code..CX_SY_NO_HANDLER error..please update?..
METHOD
GET.
DATA: current TYPE REF TO if_bol_bo_property_access.
DATA: dref TYPE REF TO data.
value = ' '. "#EC NOTEXT
IF iterator IS BOUND.
current = iterator->get_current( ).
ELSE.
current = collection_wrapper->get_current( ).
ENDIF.
DATA : lr_current TYPE REF TO cl_crm_bol_entity,
lr_parent TYPE REF TO cl_crm_bol_entity.
lr_current ?= current.
DATA: lr_cuco TYPE REF TO cl_bt120s_c_cucocomplaint_impl,
lr_cuco_wrp TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_entity TYPE REF TO cl_crm_bol_entity,
lr_cat_first TYPE REF TO cl_crm_bol_entity,
lr_adminh TYPE REF TO cl_crm_bol_entity,
lr_cuwrp TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_wdw TYPE REF TO cl_bsp_wd_window,
lv_guid TYPE crmt_genil_object_guid,
* lv_guid TYPE crmt_object_guid,
lr_core TYPE REF TO cl_crm_bol_core.
DATA : lv_category_selected_guid TYPE crmt_object_guid,
lr_schema_entity TYPE REF TO cl_crm_bol_entity,
lr_schema TYPE REF TO cl_crm_bol_entity,
ls_schema TYPE crmt_cat_il_schema,
lr_catego_inf TYPE REF TO if_crm_erms_catego_aspect,
lr_catego TYPE REF TO cl_crm_erms_catego_as_default,
gt_ddlb_tables TYPE crmt_erms_cat_ddlb_tabs,
gt_ddlb_config TYPE bsp_wd_dropdown_table,
gt_ddlb_flags TYPE crmt_erms_cat_ddlb_flag_tab,
gv_ddlb_level TYPE i.
DATA : ls_ddlb_config TYPE bsp_wd_dropdown_line.
DATA: lv_navigation TYPE REF TO if_crm_ui_navigation_service,
lv_supported TYPE abap_bool.
CALL METHOD current->get_property_as_value
EXPORTING
iv_attr_name = 'GUID'
IMPORTING
ev_result = lv_guid.
lr_core = cl_crm_bol_core=>get_instance( ).
lr_parent = lr_core->get_root_entity( iv_object_name = 'BTOrder' iv_object_guid = lv_guid ).
CHECK lr_parent IS BOUND.
lr_adminh = lr_parent->get_related_entity( 'BTOrderHeader' ).
CHECK lr_adminh IS BOUND.
lr_entity = lr_adminh->get_related_entity( 'BTHeaderCategorySet' ).
CHECK lr_entity IS BOUND.
lr_cat_first = lr_entity->get_related_entity( 'BTCategoryFirst' ).
lr_cat_first->get_property_as_value( EXPORTING iv_attr_name = 'CAT_GUID'
IMPORTING ev_result = lv_category_selected_guid ). "lv_category_selected_guid
lr_schema_entity = lr_entity.
IF lr_schema_entity IS BOUND.
lr_schema = lr_schema_entity->get_related_entity( iv_relation_name = 'BTMCSchema_S' ).
IF lr_schema IS BOUND.
lr_schema->get_properties( IMPORTING es_attributes = ls_schema ).
ENDIF.
CALL METHOD cl_crm_erms_catego_ma_default=>if_crm_erms_catego_manager~get_aspect
EXPORTING
iv_asp_id = ' '
iv_asp_state = ' '
iv_asp_tstamp = ' '
iv_asp_guid = ls_schema-asp_guid
IMPORTING
ev_instance = lr_catego_inf.
lr_catego ?= lr_catego_inf.
ENDIF.
CALL METHOD lr_catego->get_ddlb_coupled
EXPORTING
* iv_max_items = lv_max_items
* iv_resolve_unique = lv_resolve_unique
* ir_cat_checker = lr_cat_checker
iv_cat_guid = lv_category_selected_guid
* iv_levels = lv_levels
* iv_display_mode = lv_display_mode
IMPORTING
et_ddlb_tables = gt_ddlb_tables
et_ddlb_config = gt_ddlb_config
et_ddlb_flags = gt_ddlb_flags
ev_curr_level = gv_ddlb_level.
IF sy-subrc = 0.
READ TABLE gt_ddlb_config INTO ls_ddlb_config INDEX 1.
IF sy-subrc = 0.
value = value.
ENDIF.
ENDIF.
ENDMETHOD
.
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.