Building a simple chart uibb in FPM.
This post builds a chart uibb by taking the sflight records and compares the CARRID as dimension in X-axis Vs SEATSMAX & SEATSOCC as measures in Y-axis.
A snap shot of the SFLIGHT table with CARRID as DL.
The SFLIGHT table type.
Create a chart feeder class in Tx- SE24 and implement the interface IF_FPM_GUIBB_CHART.
Create an attribute GT_FLIGHT.
Implement and activate all the methods. Go to the method GET_DEFINITION.
Put the below code. This method provides the chart table model.
In the GET_DATA method, select the records from SFLIGHT table and pass the data to the chart .
Now we have to build an OVP application with chart uibb. Execute Tx- FPM_WB and create a empty FPM application.
provide an application name and choose floorplan as OVP and select NEXT.
Select Edit Configuration.
Provide title and choose UIBB-> select Chart Component.
Provide title and provide a config ID name and then select Configure UIBB.
Save it local object.
Provide the chart feeder class.
Here we are. We are in General settings tab. The chart type is selected as Column and then go to the tab Chart UIBB Schema.
Select Create Element.
Select the fields.
The DATA TYPE is important. here CARRID is the dimension and other two fields are the measures.
Save the application and test the application.
Here we have the flight chart uibb.
Put the cursor and here we have the detailed statistics.
In the DB, we have the sum for the seatsmax and seatsocc and that is what displayed in the chart.
Go to the UIBB configuration and in the general setting tab we change the chart type as Stacked Column. Save and test the application.
So here we have the chart details.