cancel
Showing results for 
Search instead for 
Did you mean: 

RFC / method in SAP reading the Activity Category from the WebUI

Chris_Schutz
Active Participant
0 Kudos

Hi ,

In CRM 7.0 What is the RFC / method in SAP reading the Activity Category from the WebUI, we want to sort the result differently . Thank you .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

is your question how to sort the activity result list in the search for activities of webclient UI?

The component / View is BT126S_APPT/ApptSR.

Open this in transaction BSP_WD_CMPWB.

In our system i did the sorting not on the result view but in method EH_ONSEARCH of the view BT126S_APPT/ApptSQ.

Kind regards

Manfred

Chris_Schutz
Active Participant
0 Kudos

Thank you ,

The question is to sort the value in the drop-down for 'Activity Category' . SAP default is alphabetical , we have a long list, and want the value used the most be on the top of the list .

Former Member
0 Kudos

Hi,

redefine the GET_V* Method for the relevant attribute.

Here just an example for another attribute where i filtert out some values from the dropdownlist respons_area. In the same way you could do it for your activity category and sort the list.

METHOD get_v_respons_area.

* Aufruf Super
  CALL METHOD super->get_v_respons_area
    CHANGING
      cs_result = cs_result.


* Herausfiltern der nicht benötigten Schlüssel 2, 4, 5

  DATA: ls_ddlb_filtered TYPE crms_thtmlb_search_ddlb_nvp,
        rt_ddlb_filtered TYPE crmt_thtmlb_search_ddlb_nvp.

  LOOP AT gt_ddlb_respons_area INTO ls_ddlb_filtered.
    CASE ls_ddlb_filtered-key.
      WHEN 2 OR 4 OR 5.
        "do nothing
      WHEN OTHERS.
        APPEND ls_ddlb_filtered TO rt_ddlb_filtered.
    ENDCASE.
  ENDLOOP.

 gt_ddlb_respons_area = rt_ddlb_filtered.
 cs_result-ddlb_options = gt_ddlb_respons_area.

ENDMETHOD.

Kind regards

Manfred

Answers (1)

Answers (1)

robert_kunstelj
Active Contributor
0 Kudos

Try function CRM_ACTIVITY_H_READ_OW which reads activity data. If this field is missing you can try CRM_ORDER_READ.

Regards.