Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Changing Title FPM OVP at runtime

$
0
0

Hi,

 

I want to change the title of my OVP Floorplan. But the correct way for OIF (IF_FPM_IDR) seems not to work:

 

data lo_idr TYPE REF TO if_fpm_idr.

data 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 ).

 

After this step LO_IDR is initial.

 

 

So I try IF_FPM_OVP. There are two methods GET_CURRENT_CONTENT_AREA and CHANGE_CONTENT_AREA. The second method has an attribute to change the title.

data lo_ovp type ref to if_fpm_ovp.

lo_ovp ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_ovp ).

ls = lo_ovp->get_current_area( ).

ls-title = 'TEST'.

lo_ovp->change_content_area( ls ).

This application dumps at runtime, message "Configuration can not changed at this moment" (German "Konfiguration kann zu diesem Zeitpunkt nicht geändert werden").

Reason:

Method IF_FPM_OVP~CHANGE_CONTENT_AREA (CL_FPM_OVP)

Var: me->mv_changeable_by_application = abap_false (Var is initial at runtime)

--> Raise Exception

How can I change this parameter?

Can anyone help?

Best regards


Viewing all articles
Browse latest Browse all 1726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>