1. UIBB

FPM_TABBED_UIBB

2. 开发界面

1693889792878.png

3. 页面控制

1693889800244.png

创建Web Dynpro 组件/ABAP 类:ZCL…TABBED
实现接口IF_FPM_TABBED_CONF_EXIT,在methodIF_FPM_TABBED_CONF_EXIT~OVERRIDE_CONFIG_TABBED中完成控制

METHOD if_fpm_tabbed_conf_exit~override_config_tabbed.

  TRY.
      CASE zrre_cl_project_book_exit=>mv_stage.
        WHEN '01'.
          io_tabbed->set_variant( 'VARIANT_1' )."项建书
        WHEN '02'.
          io_tabbed->set_variant( 'VARIANT_3' )."可研报告
        WHEN '03'.
          io_tabbed->set_variant( 'VARIANT_4' )."运营报告
        WHEN '04'.
          io_tabbed->set_variant( 'VARIANT_5' )."投中监测报告
        WHEN '11'.
          io_tabbed->set_variant( 'VARIANT_2' )."自评估
        WHEN '12'.
          io_tabbed->set_variant( 'VARIANT_6' )."后评估
        WHEN OTHERS.
      ENDCASE.

      io_tabbed->get_tabs( IMPORTING et_tab = DATA(lt_tabs) ).

    CATCH cx_fpm_floorplan..
  ENDTRY.

ENDMETHOD.

4. 使用方法

TAB_ID即为指定的变式
https://example.com:8080/home/index.html#InvPlan-manage?FPM_EDIT_MODE=R&KEY=005...ADCE&TAB_ID=VARIANT_1