Hi Experts,
We have a custom FPM OVP application in which we have a couple of dropdowns.
Now, the requirement is this that for some particular values of those dropdows, I will have to make a particular UIBB visible/invisible.
Now, my OVP has one section 'SECTION_1' and the UIBB will have to made vis/invisble has element id '_CFG_UIBB_10'.
So, I wrote code in ovp exit method if_fpm_ovp_conf_exit~override_event_ovp.
But the moment this code runs the UIBB is always hidden. Please find code below.
TYPES : BEGIN OF ty_s_uibb,
fpm_primary_attribute TYPE fpm_element_id,
component TYPE fpm_component_name,
interface_view TYPE fpm_view_name,
config_id TYPE wdy_config_id,
config_type TYPE wdy_config_type,
config_var TYPE wdy_config_var,
location TYPE fpm_location,
row TYPE fpm_row,
index TYPE fpm_index,
needs_stretching TYPE fpm_needs_stretching,
hidden TYPE fpm_hidden,
type TYPE fpm_uibb_render_type,
collapsed TYPE fpm_collapsed,
title TYPE fpm_uibb_title,
explanation_text TYPE fpm_explanation,
explanation_document TYPE fpm_explanation_document,
default_in_stack TYPE fpm_default_uibb_in_stack,
default_edit_page TYPE fpm_default_edit_page,
capture_actions TYPE fpm_capture_exposable_actions,
END OF ty_s_uibb.
DATA lwa_uibb TYPE ty_s_uibb.
DATA lv_sec_id TYPE fpm_section_id VALUE 'SECTION_1'.
lwa_uibb-fpm_primary_attribute = '_CFG_UIBB_10'.
*
IF ( something )
lwa_uibb-hidden = 'X'.
ELSE.
lwa_uibb-hidden = ''.
ENDIF.
TRY.
CALL METHOD io_ovp->change_uibb
EXPORTING
is_uibb = lwa_uibb
iv_section = lv_sec_id
* iv_add_uibb_to_new_stack = ABAP_FALSE
.
CATCH cx_fpm_floorplan .
ENDTRY.
Any ideas where I am going wrong?
Many thanks in advance.
Saikat