Sunday 21 January 2018

How to create FPM Tree UIBB – Detailed steps with screenshots

Creating Tree UIBB in FPM application and displaying hierarchical records.

Scenario:

This document explains the step by step procedure to create Tree UIBB and display employee to manager relationship in tree or hierarchical form.

Final expected output:-


SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

Prerequisite:


Knowledge on Object Oriented ABAP and ABAP WebDynpro.

Step by step Procedure: there are three development. 1. Creating Z table 2. Creating Z feeder class 3. Creating FPM WD application with tree UIBB.

1. Create a Z table zrs_test – This table is simply a Z table which will store employees and its manager related information in following form.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

2. Creating feeder class –

1. Go to transaction SE24 and create class ZCL_TREE_UIBB_DEMO.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

2. Enter interface IF_FPM_GUIBB_TREE.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

3. Go to each method individually and add one or two blank row to re-implement it. If you don’t do so then once you enter feeder class in FPM configuration editor then the editor will dump.

4. Add below code to private section of the class and methods.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

5. Activate the whole class and method.

3. Create FPM Tree application and configuring it:

1.Go to SE80 transaction and enter FPM WD component FPM_OVP_COMPONENT. Expand Web-DynPro application node.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

2. Right click on web-dynpro application node and create a new WD application.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

3. Enter Component as ‘FPM_OVP_COMPONENT’ , interface view as FPM_WINDOW and plug name as default.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

4. Right click on newly created WD application and go to ‘Create/Change Configuration’. it will open configuration editor in browser window.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

5. Enter application configuration ID name for WD application and click on Create button.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

6. Click on Goto Compoment Configuration.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

7. Click on Create.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

8. Save to your package.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

9. Configuration editor will show component configuration.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

10. Create a Tree UIBB as below.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

11. Enter component name, configuration ID and view as below

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

12. Component configuration does not exist. Click on configuration UIBB.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

13. Click on Create button.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

14. Save to your package.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

15. Enter the feeder class which you created in above steps.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

16. Below screen will be displayed.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

17. Click on Configure Columns and choose columns which you want to display in tree display.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

18. Enter column header names.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

19. Finally, save it and test it. Employee records are display in hierarchy.

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

SAP ABAP Tutorials and Materials, SAP ABAP Certifications, ABAP Web Dynpro

No comments:

Post a Comment