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:

  1. We create two Text Symbols, 001 and 002, that are to be used in the subsequent steps.
  2. First, we define a selection screen 100 as the subscreen. ...

Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.