Upload
others
View
15
Download
3
Embed Size (px)
Citation preview
Integration of BRFplus Objects in ABAP Web Dynpro Components
www.mouritech.com
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
i. 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.
ii. 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.
iii. A standard BRFplus component is available which user can re-use to integrate any of the BRFplus
expression types with the Web Dynpro Application.
iv. The entire formula builder screen can be integrated as a part of the Web Dynpro application.
v. Add the Object Manager component usage of the component controller.
vi. Create a proxy object of this component. As part of our component controller, we need to
instantiate its proxy object.
vii. 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.
Integration of BRFplus Objects in ABAP Web Dynpro Components
www.mouritech.com
2. BRFplus modelled rules are exposed via an ABAP Class Interface and can be called by any
ABAP coding from WDA.
i. In the component controller of your application, create a method in the WDDOINIT in a window.
ii. We can now call the methods provided by the Object Manager component to display our BRFplus
object.
iii. In order to integrate Formula Builder, we need to get the component usage Object of our re-
usable component.
iv. 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.
Integration of BRFplus Objects in ABAP Web Dynpro Components
www.mouritech.com
3. Introducing events which can be raised by the embedded object.
i. 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.
ii. Now instantiate a configuration object by calling the GET_CONFIGURATION( ) method of the
FDT_FACTORY.
iii. 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
i. A place on one of our views is needed to display the BRFplus object.
ii. Navigate to the layout tab, view and create a ViewContainerUIElement.
Integration of BRFplus Objects in ABAP Web Dynpro Components
www.mouritech.com
iii. 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
i. Include the Formula Builder view of BRFplus as a part of the Web Dynpro application.
ii. 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.
iii. 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.
iv. 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.
v. 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
i. 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.
ii. 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
i. Now it will directly open the Formula Builder Expression as part of our Web Dnypro Application.
ii. Execute the Web Dynpro Application to view the custom component.
Integration of BRFplus Objects in ABAP Web Dynpro Components
www.mouritech.com
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
MOURI Tech