cancel
Showing results for 
Search instead for 
Did you mean: 

Portfolio item - hiding tabs

Former Member
0 Kudos

Hi,

       Is it possible to hide a custom tab based on the item type? Let us say we have a custom tab  "XYZ" within a portfolio item. It should be visible only for certain item types.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member201206
Active Contributor
0 Kudos

Hi,

Do you mean the customer tab  beside tabs ... 'Documents and Notes' & 'Miscellaneous'  .

If yes,  the core what you need to do is at the right place to call the  remove_mainview method.

E.g. using an post-exit at  webdynpro component INM_APPCC_PPM_OBJECTS, method PROCESS_VIEWSERVICES.

iv_mainview_id  = 'MAINVIEW_7'   (For customer tab).

        TRY.

            CALL METHOD io_oif->remove_mainview

              EXPORTING

                iv_variant_id  = lv_variant_id

                iv_mainview_id = lv_view.

          CATCH cx_fpm_floorplan .

        ENDTRY.

In order to determine, for which item type should this method be called. You can use the

structure MS_CURRENT_CONTEXT of 

wd_this->mr_session_state, which contains the object of currently process object, e.g. item. So you get the item type.

Kind regards,

Zhenbo

Former Member
0 Kudos

As reported by Zhenbo, the same code can be applied to any view. Go to floor plan manager and pick the views that you'd like to hide or display, using the main view or sub view ID.

Former Member
0 Kudos

Thanks much Zhenbo. I have used this approach and it works like a charm. Much appreciated!

Regards,

Ananth

Answers (1)

Answers (1)

anuradha_majumdar
Active Participant
0 Kudos

Our technical consultant achieved something similar by coding in Floor plan manager.

Check out with your technical consultant.

Regards,

Anuradha