Reading and Setting the Lead Selection
The lead selection always falls on the first element of the context node following the automatic initialization of the lead selection (see Context Nodes: Properties). At runtime, the position of the lead selection can be changed by a user action from the first element to, for example, the third element of a table.

To enable work to continue on the basis of the values of the selected element (in this case, for example, to display the available seats for the selected flight), the system simply reads the lead selection element and processes the values accordingly (see Reading the Structure from a Context Element).
When the follow-on table is constructed, the lead selection can now be programmed to fall on a specific element such as the next consecutive element or the least booked flight up to now. This is done using the SET_LEAD_SELECTION method of the IF_WD_CONTEXT_NODE interface.