Add Value Help to Web Dynpro Select Options
Search Help or Value Help screens in ABAP screens are very useful for SAP users to filter data using Select Options. In this SAP Web Dynpro tutorial, I'ld like to show how I added missing Value Help for Web Dynpro Select Options.
If you look at the below Web Dynpro application screen, you will notice that there is no Value Help button for Sales Document Type, Sales Document and Delivery Block select options.
But I want to enhance my SAP Web Dynpro applications into the following form where Select Options are provided with Search Help functions, or Value Help options.
The original Web Dynpro application is created as follows.
I created the Select Options displayed on the WebDynpro screen in the WDDOINIT Controller Initialization Method of the MAIN View.
Here is the ABAP code in Web Dynpro application that I use in INIT method in order to create the SAP Sales Document Type, AUART field Select Option.
What I changed in this ADD_SELECTION_FIELD method to add Value Help for the Selection screen is using the I_VALUE_HELP_STRUCTURE and I_VALUE_HELP_STRUCTURE_FIELD input parameters which are optional.
Here is the modified ABAP code that calls add_selection_field method with i_value_help_structure is read from VBAK Sales Order table and i_value_help_structure_field is AUART field in VBAK table.
You can see which search help will be used by calling SAP transaction code SE11 and checking AUART Sales Document Type field of VBAK table as seen below.
I've also altered my ABAP codes to provide search help or value help for SAP Web Dynpro application users for Sales Document number, Delivery Block using the following code.