Skip to Content

Customizing "Interaction History" in Account View

Hello Experts

I want to customize "Interaction History" in the Account View. I only want to see Activities. At the moment i also see Opprotunities and other Transaction Types. How can i customize, which Transaction Type is shown in "Interaction History".

I tried Custumizing View CRMV_ACC_1O_CUST. But here i can only customize the time range.

Regards, Sven

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2011 at 01:50 PM

    You can use something like this in DO_PREPARE_OUTPUT method:

    DATA:

    lr_col TYPE REF TO if_bol_bo_col,

    lr_node TYPE REF TO if_bol_bo_property_access,

    lr_core TYPE REF TO cl_crm_bol_core,

    lr_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,

    lr_entity TYPE REF TO cl_crm_bol_entity.

    DATA:

    ls_struct TYPE crmt_bsp_activity2_bp.

    typed_context->builactivity->build_table( ).

    lr_node = me->typed_context->builactivity->collection_wrapper->get_current( ).

    lr_col ?= me->typed_context->builactivity->get_collection_wrapper( ).

    WHILE lr_node IS BOUND.

    CALL METHOD lr_node->get_properties

    IMPORTING

    es_attributes = ls_struct.

    IF ls_struct-process_type = 'Z001' AND

    ls_struct-concatstatuser NE 'Completed'.

    lr_node = lr_col->get_next( ).

    ELSE.

    lr_col->remove( iv_bo = lr_node ).

    lr_node = lr_col->get_current( ).

    ENDIF.

    ENDWHILE.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello

      i changed the coding a little bit, because there was a unicode problem int the method lr_node->get_properties and "builtactivity" do not exist in this class.

      DATA:
      lr_col TYPE REF TO if_bol_bo_col,
      lr_node TYPE REF TO if_bol_bo_property_access,
      lr_core TYPE REF TO cl_crm_bol_core,
      lr_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
      lr_entity TYPE REF TO cl_crm_bol_entity,
      data_string type string.
      
      DATA:
      ls_struct TYPE crmt_bsp_activity2_bp.
      
      typed_context->BuilInteractHist->build_table( ).
      
      lr_node = me->typed_context->BuilInteractHist->collection_wrapper->get_current( ).
      lr_col ?= me->typed_context->BuilInteractHist->get_collection_wrapper( ).
      
      WHILE lr_node IS BOUND.
      
      data_string = lr_node->get_property_as_string( iv_attr_name = 'PROCESS_TYPE' ).
      
      IF data_string NE 'YOPP'.
      *ls_struct-concatstatuser NE 'Completed'.
      lr_node = lr_col->get_next( ).
      ELSE.
      lr_col->remove( iv_bo = lr_node ).
      lr_node = lr_col->get_current( ).
      ENDIF.
      ENDWHILE.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2011 at 05:57 PM

    Glad it is working for you.

    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.