on 10-21-2015 4:30 PM
Hi FPM Guru,
I have developed a FPM(OVP) application where I am using 6 UIBB's. Based on the role assigned to user I need to show the UIBB to respective user in FPM application. Please let me guide how to achive this.
Thanks,
Gaurav
Hi Gaurav,
For hiding UIBB you need to do below steps:
Below is demo code to achieve :
mo_ovp typr ref to IF_FPM_OVP.
CHECK mo_ovp IS BOUND.
TRY .
mo_ovp->get_uibbs(
EXPORTING
iv_content_area = <your content area name / Page name here>
iv_section = <your section id>
IMPORTING
et_uibb = lt_uibbs "here you will get all the settings for that UIBB
).
CATCH cx_fpm_floorplan. " Floorplan exceptions
RETURN.
ENDTRY.
In lt_uibb you will get settings of all the controls available you need to put read on this
table and find out uibb of your interest based on config_id etc.
Read table lt_uibb into ls_uibb with key config_id = <your config iD of UIBB>.
you should get only one record in this , once you get this Information then set HIDDEN
property of this UIBB
ls_uibb-hidden = 'T'. " T is for hidden type FPM_HIDDEN type.
Once you set this property you again need to update your UIBB as below
DATA : lo_ovp TYPE REF TO cl_fpm_ovp.
CALL METHOD lo_ovp->change_uibb
EXPORTING
is_uibb = ls_uibb
iv_section = <your section name>.
Your UIBB will be hidden.
All this you need to do based on roles User have.
This could depend on architecture what is being followed.
you just need to write this code when you want to display/hide your UIBB after Role validation.
Hope this will help.
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Abhishek, I would like to show required UIBB to the user based on the roles they are authorized.
I would like know ,can this be achievable by creating separate application configuration for each role. In that application configuration required component configuration(based on the role) of UIBB will be linked and the application configuration is finally linked to the role.
Without coding effort can we achieve that .
Thanks,
Gaurav
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.