SAP Tech Pro

SAP Technical Blog
Topprice Price Comparison

How to Identify Mainview and Subview of FPM

How to Identify Mainview and Subview of FPM


* Implement the interface IF_FPM_OIF_CONF_EXIT in the webdynpro component 


* You will have a method in component controller and you can get IF_FPM_OIF instance 


DATA: ls_current_state  TYPE        if_fpm_oif=>ty_s_state,
      go_oif            type ref to IF_FPM_OIF.

    TRY.
        go_oif->get_current_state(
        IMPORTING
          es_current_state = ls_current_state ).
      CATCH cx_fpm_floorplan.    " Floorplan exceptions
        RETURN.
    ENDTRY.

* ls_current_state has the fields for mainview and subview
OR


  DATA lo_oif_info TYPE REF TO if_fpm_oif_info.

* can be GAF also depending on the FPM (DATA lo_gaf_info TYPE REF TO if_fpm_gaf_info.)

  TRY.
      lo_oif_info ?= cl_fpm_factory=>get_instance( )->get_runtime_info( )-floorplan_info.
      DATA(ls_current_state) = lo_oif_info->get_current_state( ).
*       or (depending on where you implement this code)
      DATA(ls_target_state) = lo_oif_info->get_target_state( ).
    CATCH cx_fpm_floorplan.
  ENDTRY.



* ls_current_state has the fields for mainview and subview

Add comment

Before Buying, Compare Prices at Topprice.in

Topprice.in