Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Create a sample BSP application "ZDEMO_XMLDATA"

!https://weblogs.sdn.sap.com/weblogs/images/251828873/1_3.jpg|height=122|alt=image|width=379|src=http...!

Create a XML view in the BSP application based on the PWFL model. Embed the below code shown in the following screens. The code is mainly projected to generate the XML file which is going to act as a source for the SWF file in a particular format. The CALL* TRANSFORMATION ('ID') *will generate the XML file using the data in a format based on the system / server settings. The pre defined format has to be achieved based on replacing some tags with other values as shown in the below screens.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/2_3.jpg|height=432|alt=image|width=700|src=http...!

The below screen is the predefined format with data, variable, row and column tags generated while testing the XML view. The generated XML has to be parsed to the Xcelsius file. Sometimes the target might not be achieved if the format of the XML file is not proper.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/5_3.jpg|height=418|alt=image|width=671|src=http...!

  

Open the Xcelsius 2008 and design the canvas using a list box and a column chart. The list box will be holding the date of the flight and the column chart will represent the maximum and occupied seats of the particular class on the selected date.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/6_3.jpg|height=412|alt=image|width=700|src=http...!

 

Now the data connectivity has to be assigned to the Xcelsius file. The XML path will be taken from the properties of the XML view as shown below.

 

!https://weblogs.sdn.sap.com/weblogs/images/251828873/7_3.jpg|height=359|alt=image|width=700|src=http...!

  

The XML data URL will be the copied URL from the above screen. The URL can also be dynamically changed by keeping tags on the server name. eq. [http://<webserver>.com:<port>/sap(namesapce | http://<webserver>.com:<port>/sap(namesapce])-Sample

!https://weblogs.sdn.sap.com/weblogs/images/251828873/8_3.jpg|height=425|alt=image|width=700|src=http...!

  

Now the data from the XML has to be mapped to a series of range. Mark check on "Enable Load" and click on "+". Name the series as "Q1" which we used the variable name in the XML file and select the ranges based on the data. Click on preview XML and compare the XML file generated by Xcelsius preview and the XML generated while testing XML view from BSP application. The format should be the same, so that the data can be parsed easily between the BSP and SWF file which is going to be generated.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/9_3.jpg|height=415|alt=image|width=500|src=http...!

  

Now export the Xcelsius file as a flash file.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/10_3.jpg|height=389|alt=image|width=700|src=htt...!

  

Now the BSP application will be enhanced with an HTML page which will be holding SWF file as MIME object and will be displayed during the run time. Place the below code shown in the screen on the layout of HTML view.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/11_3.jpg|height=198|alt=image|width=375|src=htt...!

Now test the HTML view and SWF file will be generated. Based on the different selections on flight date the data will be changed as shown in the below screens.

!https://weblogs.sdn.sap.com/weblogs/images/251828873/13_3.jpg|height=388|alt=image|width=684|src=htt...! !https://weblogs.sdn.sap.com/weblogs/images/251828873/14_3.jpg|height=389|alt=image|width=675|src=htt...!

7 Comments