Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FBI view with context based adaptation (CBA)

Former Member
0 Likes
1,287

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
892

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:

  • The CBA schema is assigned to the application configuration
  • The FBI view is assigned to the relevant UIBB in the component configuration
  • The UIBB is adaptable for the dimension values which appear in the FBI view

FBI view CBA configuration:

  • Add a schema
    The user can add a schema, using the ‘Add’ button in the upper table. Value
    help (F4) can be used to fill the schema value.
  • Add the schema dimensions

         The user should mark a schema in the upper table and then
          add the schema dimensions, using the ‘Add’ button, in the bottom table.

    • Dimension
      The value help (F4) displays the chosen schema's dimensions.
    • Binding type

                Choose the desired binding type 'Constant' or 'Bind to Ui structure field'.              

    • Value
      choose the value for the dimension field.
      For 'Constant' binding type – the F4 help  will include the codes from the dimension
      key field value table.

               For 'Bind to UI structure field'  - the F4 help will include fields of the UI structure which appears in the FBI view header tab .

    • Local Adaptation
      Use the local adaptation checkbox in order to determine the scope of the FPM context based adaptation event.

        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.

2 REPLIES 2
Read only

Former Member
0 Likes
893

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:

  • The CBA schema is assigned to the application configuration
  • The FBI view is assigned to the relevant UIBB in the component configuration
  • The UIBB is adaptable for the dimension values which appear in the FBI view

FBI view CBA configuration:

  • Add a schema
    The user can add a schema, using the ‘Add’ button in the upper table. Value
    help (F4) can be used to fill the schema value.
  • Add the schema dimensions

         The user should mark a schema in the upper table and then
          add the schema dimensions, using the ‘Add’ button, in the bottom table.

    • Dimension
      The value help (F4) displays the chosen schema's dimensions.
    • Binding type

                Choose the desired binding type 'Constant' or 'Bind to Ui structure field'.              

    • Value
      choose the value for the dimension field.
      For 'Constant' binding type – the F4 help  will include the codes from the dimension
      key field value table.

               For 'Bind to UI structure field'  - the F4 help will include fields of the UI structure which appears in the FBI view header tab .

    • Local Adaptation
      Use the local adaptation checkbox in order to determine the scope of the FPM context based adaptation event.

        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.

Read only

0 Likes
892

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