Add programmed/OVS search help to FPM ESS/MSS application via enhancement to CL_HRESS_PER_DETAIL

You can add a Custom / Freely programmed search help to any Web dynpro field, but you can also add it as an enhancement to a standard floor plan manager application such as Employee Self Service. In this example I will add it to the post code field of the add address functionality within the personal information of ESS.

The class that is used to process the personal details for ESS/MSS is CL_HRESS_PER_DETAIL so it is just a case of finding the correct method within here to manipulate the required data at the appropriate point.

In this case I am going to use method GET_DEFINITION and add a post exit to it which updates the contents of the search help field(wd_value_help) for the post code(PSTLZ).


Step 1 - Enhance class with PostExit
With transaction SE24 or SE80 access the class CL_HRESS_PER_DETAIL and press the enhancement button/icon at the top and then create an enhancement implementation when asked.


Now find the GET_DEFINITION method, place your cursor on it and select menu option Edit->Enhancement Operations->Insert Post-Method. A new icon should then appear within the PostExit column.



Step 2 - Add code to post exit enhancement
Now click on the new post exit icon (press save if asked) and enter the following code. If you have not created the custom wdp searech help from SAP Development use the standard SAP one FPM_TEST_VH.

    DATA: wa_fielddesc LIKE LINE OF et_field_description,
          ld_index type i.
    LOOP AT et_field_description  into wa_fielddesc.
      ld_index = sy-tabix.
      CASE wa_fielddesc-name.
        WHEN 'PSTLZ'.
          wa_fielddesc-wd_value_help = 'ZWDP_SEARCH_HELP'. "or use 'FPM_TEST_VH'
          MODIFY et_field_description from wa_fielddesc index ld_index.
        EXIT.
      ENDCASE.
    ENDLOOP.

Your post code field should now include the search help option.


Related Articles

BIND_STRUCTURE method of interface IF_WD_CONTEXT_NODE to assign structure to context
BIND_TABLE method of interface IF_WD_CONTEXT_NODE
Get the name of the button the user has clicked on within the SAP web dynpro action ABAP code
Create field Refering to datatype of webDynpro context element
WebDynpro context for creation of screen field including standard search help
Disable SAP User Personalisation in Web Dynpro app using WDDISABLEUSERPERSONALIZATION and WDENABLEUIELEMENTSHIDE
GET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to retrieve value of context element
GET_SELECTED_ELEMENTS to get selected row of ABAP web dynpro table when not using lead selection
GET_STATIC_ATTRIBUTE_TABLE method to return all rows of a context table node
IF_WD_CONTEXT_NODE interface methods withn ABAP Web Dynpro to enable users to view and change data
ABAP code to manually trigger ABAP web dynpro plug
Popuate SAP WebDynpro field
Freely Programmed search help for your web dynpro application (custom value help/OVS)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
SET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to assign value to individuale context attribute
Clear context attribute using SET_ATTRIBUTE_NULL method of interface IF_WD_CONTEXT_NODE
Add Dropdown by index UI Element to table field within abap web dynpro
Add freely Programmed search help to a web dynpro application field
Retrieve SAP webDynpro field value entered by user
ABAP Web dynpro ALV report table
Hide fields of a web dynpro ALV table
Display web dynpro ALV report select options to resict output results
Assign value to ABAP web dynpro context via table, structure or individual attribute
Get selected ABAP Web dynpro dropdown byindex value (dropdownbyindex UI element)
ABAP web dynpro Dropdown by index UI Element allows a field to display a drop down list of values
ABAP web dynpro Dropdown default value, allow you to set current value of dropdown UI element
Change SAP web dynpro logon screen
Read ABAP Web dynpro table context on action / button click
ABAP Web Dynpro tables to allow users to view and change data
Get selected row of ABAP web dynpro table
Get all selected rows of table within your web dynpro for ABAP applications using GET_SELECTED_ELEMENTS
Get selected row of ABAP web dynpro table
ABAP Web Dynpro tree structure, display HR org structure as example
SAP ABAP Web Dynpro UI elements
View Container UI Element to display a web dynpro view within a wdp view
ALV ABAP Web Dynpro application
ABAP Web dynpro button click / Action
Call URL from SAP Webdynpro for ABAP ACTION
Call URL from SAP Webdynpro for ABAP ACTION
Display popup screen within ABAP Web dynpro
ABAP Web dynpro populate table on action / button click
ABAP code to Print abap web dynpro table
Adding URL parameters to you ABAP webdynpro to change thinks like the CSS