cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptation in FPM: editing the layout of the screen based on the adaptaion.

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member219747
Participant
0 Kudos

Hi,

Whatever customization you have done,
update the same as below in MDGIMG.

Regards,

Mrityunjai

Former Member
0 Kudos

Hi Mrityunjai,

I did those linking also. I am getting the changes in the fields for adaptation but i need some UIBB's not to appear for certain material type. That case is not working for me.

former_member219747
Participant
0 Kudos

Hi,

Since UIBBs here are standard, create an enhancement and hide them dynamically.

Google search you will find the codes to do the same.

Regards,

Mrityunjai

former_member219747
Participant
0 Kudos

You are using OIF or OVP?

Former Member
0 Kudos

OVP

former_member219747
Participant
0 Kudos

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

Former Member
0 Kudos

Thank u Mrityunjai