In customization we developer may came across the situation where there is need to filter the left list of the X3 screen. We can achieve this with the simple code.
CLEGAUCHE is the action which called before loading the left list so we can use this action to modify the characteristics of the sort key.
The following variables can be entered:
- SNSLIS 1 = ascending, 2 = descending
- LENLIS indicates the number of elements in the key
- CLELISTE string of 250 characters containing the list of component fields for the key separated by the character “;”.
Filtsup is the variable which we can use for filtering the left browser. This filter is expressed in the form of a character string containing a logical condition on one or more several fields in the principal table. For example suppose I want to display only active customer in customer screen. To do this I have assigned the sort key “BPCSTA=2” to FILTSUP variable. Now whenever the customer screen is opened only the active customers will get displayed. Refer to the below screen shot for more clarification.
Hope this helps.