cancel
Showing results for 
Search instead for 
Did you mean: 

any changes in inbox result list of overview page record should be marked as read

Former Member
0 Kudos

Hi All,

any changes in inbox serch result overview page, record marked as read.

and there is no changes in overview page (just display) record marked as unread.

please tell me how achieve this requirement. .

Regards,

Ravi.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member210661
Active Contributor
0 Kudos

Hi Ravi,

In that case you can use SAP_WAPI_SET_WORKITEM_STATUS for change status accordingly..

based on your requirement you have to implement.

go through this links..

Thanks & Regards,

Srinivas.

Former Member
0 Kudos

Thanks for ur rply srinivas,

my problem solved but different way

I have one more issue how to get latest record first on result list do you have any idea?

Result view in INBOX component and my code in ICCMP_BT_BUTTON SAVE button

Regards

Ravi

Sigrid
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ravi,

Can you share your solution with us and open a new thread for your new question?

Thanks

Sigrid

Former Member
0 Kudos

Hi Sigrid,

component: ICCMP_BT_BUTTON

method:      EH_ONSAVE

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

  lr_id = lr_entity->if_bol_bo_property_access~get_property_as_string( iv_attr_name = 'GUID' ).

  lv_obj = lr_id.

  ls_adminh-guid = lv_obj.

  lr_id = lr_entity->if_bol_bo_property_access~get_property_as_string( iv_attr_name = 'OBJECT_ID' ).

  lv_obj = lr_id.

  ls_adminh-object_id = LV_OBJ.

  CALL FUNCTION 'CRM_CDORDER_DISPLAY'

    EXPORTING

      iv_header_guid = ls_adminh-guid

      iv_object      = ls_adminh-object_id

      iv_bus         = 'BUS2000120'"ls_adminh-object_type

      i_no_dialogue  = abap_true

    IMPORTING

      ausg           = lt_ch.

* show newest entry first

  SORT lt_ch by udate DESCENDING .

  READ TABLE LT_CH INTO LW_CH WITH KEY UDATE = SY-DATUM.

lv_obj1 = lr_id.

  IF SY-SUBRC IS INITIAL.

    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

      EXPORTING

        INPUT         = lv_obj1

     IMPORTING

       OUTPUT        = lv_obj1

              .

    ls_tab-complaint = lv_obj1.

    ls_tab-change    = 'Unread'.

    MODIFY ztable FROM ls_tab.

  else.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

      EXPORTING

        INPUT         = lv_obj1

     IMPORTING

       OUTPUT        = lv_obj1.

    ls_tab-complaint = lv_obj1.

    ls_tab-change    = 'Read'.

  MODIFY ztable FROM ls_tab.

  ENDIF.

Regards,

Ravi.