Skip to Content
Author's profile photo Michael Sturm

Change the sort order of premises in the hit list

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
      iv_attr_name = ‘VS_HOUSE_NUM2’
      iv_sort_order = ‘A’.

Assigned tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Michael Sturm
      Michael Sturm
      Blog Post Author
      Author's profile photo William Eastman
      William Eastman