on 09-19-2016 9:55 AM
Hello Everyone,
I have a requirement that the tabs should get changed based on the material type the user entering in the MDG NWBC creation screen. I maintained an adaptation for the Material type ROH and FERT and i deleted some tabs in the UI configuration based on the adaptation but those changes are not getting reflected in the NWBC screen during creation.Can anyone tell me why i'm facing this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can enhance method OVERRIDE_EVENT_OVP of component controller (create post-exit method) and use IO_OVP parameter to hide tabs and sub-tabs.
GET_MAINVIEWS/SET_HIDDEN_MAINVIEW methods for tabs hiding,
GET_SUBVIEWS/SET_HIDDEN_SUBVIEW methods for sub-tabs hiding.
Sample code-
TRY .
io_ovp->get_mainviews(
* EXPORTING
* iv_variant_id = lv_variant " Variant ID (current variant if skipped)
IMPORTING
et_mainview = lt_mainview " List of mainviews
).
io_ovp->set_hidden_mainview(
EXPORTING
* iv_variant_id = " Variant ID (current variant if skipped)
iv_mainview_id = lv_view_id " Mainview ID (current mainview if skipped)
iv_hidden = lv_hidden " Element is hidden by API-Call at runtime
).
CATCH cx_fpm_floorplan. " Floorplan exceptions
ENDTRY.
Just play with the data/properties in lt_mainview(same goes for subviews) and you can control the visibility as you want.
Regards,
Mrityunjai
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.