Adding tabstrips and listboxes to report selection screens
Within selection screens, tabstrips and listboxes may be displayed without the need of knowing or using the screen painter. This may be done using a few ABAP statements. In this recipe, we will see how tabstrips and listboxes may be added to selection screens. We will create a program that will contain a tabstrip containing two tabs, each containing a listbox representing country names. By default, we will have USA displayed on the first tab and Canada on the second.
How to do it...
For creating tabstrips and listboxes, follow the following steps:
We create two Text Symbols, 001 and 002, that are to be used in the subsequent steps.
First, we define a selection screen
100
as the subscreen. Within the subscreen we define a block that contains a listbox. On the subscreen, we will create a listbox for country that will, by default, showUS
(USA) as the country. The subscreen will be shown in the first tab of the tabstrip that we will be...