Quantcast
Channel: SCN : Blog List - SAP for Utilities
Viewing all articles
Browse latest Browse all 476

Change the sort order of premises in the hit list

$
0
0

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.


Viewing all articles
Browse latest Browse all 476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>