cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to add an image on the title bar(IDR)?

Former Member
0 Kudos

Hi,

Is it possible to add an image on the title bar(IDR)? Something like a company logo?

Thanks for your help.

Regards,

Pris.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pris,

We can add our own Webdynpro component to IDR Area in method Override event. it will be easy method add images and required fields.

sample code for your reference.

METHOD override_event_oif .

   DATA lo_aca_api      TYPE REF TO if_fpm_aca.

   DATA ls_uibb         TYPE fpm_s_uibb_key.

   DATA ls_config_key   TYPE wdy_config_key.

   DATA lv_index        TYPE i.

   DATA lo_int_hdr TYPE REF TO yiwci_88hrgewdc_header .

   DATA lo_cmp_usage    TYPE REF TO if_wd_component_usage.

   CASE io_oif->mo_event->mv_event_id.

     WHEN cl_fpm_event=>gc_event_start.

*_ Test

       wd_this->app_param = wd_this->lo_fpm->mo_app_parameter.

*_ PERNR Validation

       IF wd_assist->a_pernr IS INITIAL.

         RETURN.

       ENDIF.

* ------------------------------------------------------------------------

* provide the header component to FPM

* ------------------------------------------------------------------------

       lo_aca_api = io_oif->get_aca_api( ).

       ls_uibb-component = 'ZXXXXXX'. " WDA Componet

       ls_uibb-interface_view = 'W_MAIN'.

       ls_uibb-config_key = ls_config_key.

       lo_aca_api->add_uibb( iv_aca_location = if_fpm_constants=>gc_aca_locations-ii3

                             iv_index = lv_index

                             is_uibb_key = ls_uibb ).

       lo_cmp_usage =   wd_this->wd_cpuse_ess_header( ).

       CALL METHOD wd_this->lo_fpm->attach_component_to_usage

         EXPORTING

           iv_component_name  = 'ZXXXXX'  " WDA Component Name

           is_config_key      = ls_config_key

           io_component_usage = lo_cmp_usage.

   ENDCASE.

ENDMETHOD.

Former Member
0 Kudos

Hi Pris,

In IDR we have Items area,after implement the interface IF_FPM_IDR in your component it will provide you Methods for Items Area add_image_item by using this method you can add icon in the item area of IDR.You can refer this component FPM_TEST_IDR.

Try like this:

DATA: lo_idr TYPE REF TO if_fpm_idr,

lo_fpm TYPE REF TO if_fpm.

lo_fpm = cl_fpm_factory=>get_instance( ).

lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).

lo_idr->add_image_item( Exporting iv_source = lv_image_source).

Thanks,

Lavanya.