2015 Aug 06 12:01 PM
Hi experts,
I'm trying to figure out how to use the context based adaptation feature of a FBI view. When you create a FBI view, there is a tab called context based adaptation where you can define CBA schema's and dimensions. Then using that FBI view for example for a form uibb does not enable the CBA button of the form component configuration.
When I also enable my FPM application for CBA, forgetting the FBI view for a moment, this button is enabled and we can use the CBA schema and dimensions in my form configuration, but then adding the CBA schema to my FBI view seems to be useless.
By debugging class /BOFU/CL_FBI_VIEW_INSTANCE_NEW->HANDLE_CTXT_BASED_ADAPT, the view seems to be missing relevant dimensions.
Can someone explain how this feature of the FBI view should be used?
Thanks in advance!
Kind regards,
Bjorn
2015 Aug 06 2:10 PM
Hi Bjorn,
The FBI part in CBA for FBI based application is to raised the adaptation event with the correct adaptation context.
To enable CBA to work with your FBI based appliaction:
Create the adaptation schema:
The adaptation schema is created using SM30 views FPM_V_ADAPT_SCHM and FPM_V_ADAPT_DIM.
Adaptation Dimension
The adaptation dimension represents an individual characteristic within an adaptation schema. It is maintained in view FPM_V_ADAPT_DIM. A dimension is defined by a name for identification, an index and a data element. The index is used to determine the dominating adaptation dimension in case there is a collision. The data element is only used for the design-time allowing to you to provide field and F4 help while configuring context-based adaptations.
Create the CBA configuration:
Fill the schema
CBA can work with FBI based application when:
FBI view CBA configuration:
The user should mark a schema in the upper table and then
add the schema dimensions, using the ‘Add’ button, in the bottom table.
Choose the desired binding type 'Constant' or 'Bind to Ui structure field'.
For 'Bind to UI structure field' - the F4 help will include fields of the UI structure which appears in the FBI view header tab .
When the checkbox is marked (local event), the event will affect only the UIBB from which the event is raised (UIBB needs to be attached to the relevant FBI view).
When the checkbox is not marked (global event), the event will affect all the UIBBs, when the application is loaded. It can be used, for example, when a UIBB depends on another UIBB UI structure fields for its adaptation.
BR,
Matan.
2015 Aug 06 2:10 PM
Hi Bjorn,
The FBI part in CBA for FBI based application is to raised the adaptation event with the correct adaptation context.
To enable CBA to work with your FBI based appliaction:
Create the adaptation schema:
The adaptation schema is created using SM30 views FPM_V_ADAPT_SCHM and FPM_V_ADAPT_DIM.
Adaptation Dimension
The adaptation dimension represents an individual characteristic within an adaptation schema. It is maintained in view FPM_V_ADAPT_DIM. A dimension is defined by a name for identification, an index and a data element. The index is used to determine the dominating adaptation dimension in case there is a collision. The data element is only used for the design-time allowing to you to provide field and F4 help while configuring context-based adaptations.
Create the CBA configuration:
Fill the schema
CBA can work with FBI based application when:
FBI view CBA configuration:
The user should mark a schema in the upper table and then
add the schema dimensions, using the ‘Add’ button, in the bottom table.
Choose the desired binding type 'Constant' or 'Bind to Ui structure field'.
For 'Bind to UI structure field' - the F4 help will include fields of the UI structure which appears in the FBI view header tab .
When the checkbox is marked (local event), the event will affect only the UIBB from which the event is raised (UIBB needs to be attached to the relevant FBI view).
When the checkbox is not marked (global event), the event will affect all the UIBBs, when the application is loaded. It can be used, for example, when a UIBB depends on another UIBB UI structure fields for its adaptation.
BR,
Matan.
2015 Aug 06 2:43 PM
Hi Matan,
Okay, I see. So by using the FBI view we can set the adaptation context via configuration instead of needing to write code to raise the CBA event in our feeder class. Nice!
Thanks again!
Kind regards
Bjorn