SAP for Utilities Blogs
Discover insights and practical tips to optimize operations, reduce costs, and deliver reliable energy with SAP technology. Contribute your own blog post!
cancel
Showing results for 
Search instead for 
Did you mean: 
michael_sturm
Employee
Employee

In case you'd like to change the sort order of the premises in the hit list within the identification you have to proceed the following steps:

  1. Apart from the BOL tree profiles IUICMD_TO, IUICMD_TO2, or IUICMD_TO3, also copy the implementation class CL_IUICMD_TO_BOL_TREE to the customer namespace.
  2. Change the copied profiles in such a way that you enter the copied implementation class for the node PREM, and select the checkbox for relation change. As a result, the system runs the method IF_IU_IC_BOL_TREE~GET_CHILDREN of the copied implementation class during runtime.
  3. Change the implementation of the copied class or the method IF_IU_IC_BOL_TREE~GET_CHILDREN in such a way that the list of the premises is sorted by the desired attribute.

For example, the source code could be as follows (in case you'd like to sort the premises by the house number supplement):

IF child_nodes IS BOUND.
  CALL METHOD child_nodes->sort
    EXPORTING
      iv_attr_name = 'VS_HOUSE_NUM2'
      iv_sort_order = 'A'.
ENDIF.

2 Comments
Top kudoed authors