Skip to Content

Inbox Result List

Hi All,

I want to add a custom attribute in the result list for the Agent Inbox search result list structure. I have added that attribute by enhancing the table_line_sample method of the result context node class as of now.

Is there any better approach to do this??

Thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 14, 2010 at 11:49 AM


    is your CRM release 6.0 or 7.0?

    If yes just add a attribute to context node items.

    Afterwards you have to fill your attribute in method GET_* like this:

    DATA: current TYPE REF TO if_bol_bo_property_access.
      DATA: current_bo TYPE REF TO cl_crm_aui_oneorder.
      DATA: dref    TYPE REF TO data.
      DATA: entity  TYPE REF TO cl_crm_bol_entity.
      DATA: lv_bp_number TYPE string.
      value =
    'BTAUIView not bound'.                                      "#EC NOTEXT
      if iterator is bound.
        current = iterator->get_current( ).
        current = collection_wrapper->get_current( ).
    * it is necessary to cast current to get the entity of BTOrder
          current_bo ?= current.
          entity ?= current_bo->get_bol_entity( ).
    * get the relations
          entity ?= entity->get_related_entity( iv_relation_name = 'BTOrderHeader' ).
          entity ?= entity->get_related_entity( iv_relation_name = 'BTHeaderCustExt' ).
    * get the contract info
          dref = entity->get_property( 'ZZCUSTOMER_H0101' ).    "#EC NOTEXT
        CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
      IF dref IS NOT BOUND.
          value = if_bsp_model_util~convert_to_string( data_ref = dref
                                      attribute_path = attribute_path ).
        CATCH cx_bsp_conv_illegal_ref.
          FIELD-SYMBOLS: <l_data> TYPE data.
          ASSIGN dref->* TO <l_data>.
    *       please implement here some BO specific handler coding
    *       conversion of currency/quantity field failed caused by missing
    *       unit relation
    *       Coding sample:
    *       provide currency, decimals, and reference type
    *       value = cl_bsp_utility=>make_string(
    *                          value = <l_data>
    *                          reference_value = c_currency
    *                          num_decimals = decimals
    *                          reference_type = reference_type
    *                          ).
          CONCATENATE <l_data> '-CURR/QUANT CONV FAILED-' INTO value
                      SEPARATED BY space.                       "#EC NOTEXT
        CATCH cx_root.

    You do not need SET_* if it is a display only attribute - just comment here the generated coding.

    Kind regards


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2012 at 09:53 PM

    Vishal Phaji..Please check my problem below...i have already added the field but now i need to update that ITEMS context node with value of new attribute....Call me or message me on my gtalk or FB 😊


    I need to add custom attribute in ITEMS Context node for component ICCMP_INBOX view ICCMP_INBOX/InboxItems

    i have already added attribute by enhancing this component and i can see that field in UI scren after UI config.

    Now i need to update some value in that attribute during do_prepare_method in first time and need to display that value in ITEMS tree structure.

    But i am not able to see that ITEMS Context node value in run time. I cant do the coding in getter method of my attribute as that 'll call multiple times we click on screen..So anybody has added field and updated value in that context node.

    I even checked the CL_ICCMP_IN_INBOXITEMS_CN01=> Refresh method also.

    Please share you solution and thoughts.


    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.