Brook Preloader


Integration Of BRFplus Objects In ABAP Web Dynpro Components

This article provides information about the Integration of the BRFplus Object i.e., expression type-formula builder into your Web Dynpro Application. BRFplus Object Formula builder gives access to the user in the Web Dynpro Application to change the values as per the required business process. This can be achieved by following the step-by-step process mentioned below.

1. Integration of a BRFplus Expression type as part of Web Dynpro application

  • Embed a BRFplus object according to Web Dynpro Application (WDA)
  • Formula Builder Integration of BRFplus in WDA
  • Design a WDA and upon execution of the application, it will show the formula builder directly without navigating to BRFplus.

The process to be followed

  • Define the component usage of the Object Manager in our Web Dynpro component. We need to use the object manager component provided by BRFplus framework.
  • First, the user has to invoke standard BRFplus component usage of object Manager in Web Dynpro component, then navigate to the used components tab of the Web Dynpro component and add the interface FDT_IWD_OBJECT_MANAGER to the application.
  • A standard BRFplus component is available which user can re-use to integrate any of the BRFplus expression types with the Web Dynpro Application.
  • The entire formula builder screen can be integrated as a part of the Web Dynpro application.
  • Add the Object Manager component usage of the component controller.
  • Create a proxy object of this component. As part of our component controller, we need to instantiate its proxy object.
  • On the Properties tab of your component controller, choose “Create Controller Usage”. Then, choose the interface controller of the component FDT_IWD_OBJECT_MANAGER from the list in the pop-up.

2. BRFplus modelled rules are exposed via an ABAP Class Interface and can be called by any ABAP coding from WDA.

  • In the component controller of your application, create a method in the WDDOINIT in a window.
  • We can now call the methods provided by the Object Manager component to display our BRFplus object.
  • In order to integrate Formula Builder, we need to get the component usage Object of our re-usable component.
  • Now we need to specify what needs to be integrated. For direct configuration, a configuration object is used which is then delivered to the CREATE_OBJECT_MANAGER factory method as a parameter.

3. Introducing events which can be raised by the embedded object.

  • Get the configuration object from the factory of the BRFplus. By doing so, we can restrict the user’s chances to interact with the object. It is possible to hide particular buttons or complete toolbar. For this, we are setting some of the configurations to the ABAP_FALSE.
  • Now instantiate a configuration object by calling the GET_CONFIGURATION( ) method of the FDT_FACTORY.
  • Hand over your configuration object with the next call of CREATE_OBJECT_MANAGER_COMP () method.

4. Handling user actions in a confirmation dialog displayed by the embedded object

  • A place on one of our views is needed to display the BRFplus object.
  • Navigate to the layout tab, view and create a ViewContainerUIElement.
  • This is called the Component Re-use concept. It means nothing but consuming one view to another view, view of the first component into another component.

5. Creating Web Dynpro application as per business logic for the user and providing formula builder of BRFplus expression directly to the user to change the values by himself

  • Include the Formula Builder view of BRFplus as a part of the Web Dynpro application.
  • Now you can embed the “Main Window” of the implemented Object Manager component in your ViewContainerUIElement. In order to do so, navigate to the window of your component, select the View Container and choose “Embed View”. In the following dialog, select the “MAIN_WINDOW” of the Object Manager.
  • To fill our ViewContainerUIElement, we need to create an instance of our Object Manager first. So, pick a method in which we can instantiate our Object Manager component.
  • The preparation for using the Object Manager component is now done. In the next steps, we will use this component to display and close a BRFplus object.
  • Now we can call the methods provided by the Object Manager component to display our BRFplus object. Call the method of the object manager interface with the “ID” of a BRFplus object to display the object in the view container.

6. Building and saving formula by the user

  • Create a BRFplus application with function with Expression formula which has a business calculation. We will now use the ID of the Formula expression and use it in our Web Dynpro application.
  • Instantiate the interface controller of the BRFplus get the object of the interface controller and pass the Formula Builder ID.

7. BRFplus rules to be modeled in an intuitive way to give greater flexibility and visibility to the business user

  • Now it will directly open the Formula Builder Expression as part of our Web Dnypro Application.
  • Execute the Web Dynpro Application to view the custom component.

8. Giving more power to the Business Use
Showing the formula Builder Expression of the BRFplus.

The formula builder expression with the values gives power and control to the business user to make all necessary changes to the values as per the business requirement without the need for any technical assistance.

We can thus complete the functionality to open an object of BRFplus Expression in a Web Dynpro application and the information provided above offers an insight into BRFplus and its integration into the Web Dynpro component.

Contact for further details

Manoj Reddy Alla
SAP ABAP & BRFplus Consultant

0 0 vote
Inline Feedbacks
View all comments