The concept of a selection screen variant is something that most SAP users have come to expect, yet this feature is unavailable in standard Web Dynpro. Below is the next in a series of posts detailing how to bring this necessary feature back to Web Dynpro. Start here to see the full requirements.
Data Dictionary Changes
First we need a data store. In SE11, create a new table ZES_WDVARI. This table conforms to the specifications of the IMPORT/EXPORT database ABAP command.
We’ll also need a few additional data dictionary objects:
This structure will be used to hold the content of the data stored into ZES_WDVARI-CLUSTD (raw data) field).
This structure includes some additional fields used to display data to the user in the Web Dynpro ALV.
Table type used for class method parameters.
Table of Web Dynpro Select Options will contain a list to all select option screens being considered as part of this variant.
Now that we have the dictionary objects in place, let’s take a look at the development.