Human Capital Management Blogs by Members
Gain valuable knowledge and tips on SAP SuccessFactors and human capital management from member blog posts. Share your HCM insights with a post of your own.
cancel
Showing results for 
Search instead for 
Did you mean: 
yesrajkumar
Active Participant
0 Kudos

In the Latest SAP EHP4 E-recruiting Solution which are developed using Abap Webdynpro components, when you select any of the created requisition (for example) from the POWL list, it is displaying  only the Requisition title in the application toolbar entered during requisition creation and it would be better to display the requisition number along with the title as well as this solution was provided in the earlier versions of E-recruiting applications which are build using Business Server pages (BSP).


Similarly the same approach would be used to display the Application, Candidate, and Candidacy Titles also.


By using the Enhancement framework, I made a small code change in the post exit of the method ‘BUILD_HEADER’ in the component controller.


DATA: lo_nd_shared_context TYPE REF TO if_wd_context_node,
lv_req_status        TYPE
 rcf_requisition_status,
lv_req_reason_code   TYPE
 rcf_reason_code,
lo_api_controller    TYPE REF TO
 if_wd_controller,
lo_idr               TYPE REF TO
 if_fpm_idr,
lo_fpm               TYPE REF TO
 if_fpm,
lv_header            TYPE wd_this->element_basic_data-header
,
lv_title             TYPE
 string,
ls_hrobject          TYPE
 hrobject,
lv_reason_code_text  TYPE
 string,
lt_message           TYPE
 bapirettab.

lo_api_controller ?= wd_this->wd_get_api( ).
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).

lo_nd_shared_context = wd_context->get_child_node( name = wd_this->wdctx_shared_context ).
lo_nd_shared_context->get_attribute(
EXPORTING
      name =  `HROBJECT`
    IMPORTING
      value = ls_hrobject ).

CALL METHOD lo_idr->get_application_title
IMPORTING

      ev_title = lv_title.

IF ls_hrobject IS NOT INITIAL.

CONCATENATE lv_title ' ( ' ls_hrobject-otype ls_hrobject-objid ' ) ' INTO lv_title.

CALL METHOD lo_idr->set_application_title
EXPORTING

        iv_title         = lv_title
iv_title_tooltip = lv_title.


ENDIF.


"



After the implementation of the above piece of code, the following appears with the Requisition number along with the Requisition Title.


"



Thanks,


Rajkumar.S



Labels in this area