Skip to Content

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/1_3.jpg|border=0!

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/2_3.jpg|border=0! image image

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/5_3.jpg|border=0!

  

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/6_3.jpg|border=0!

 

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/7_3.jpg|border=0!

  

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/8_3.jpg|border=0!

  

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/9_3.jpg|border=0!

  

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/10_3.jpg|border=0!

  

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/11_3.jpg|border=0! image

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=https://weblogs.sdn.sap.com/weblogs/images/251828873/13_3.jpg|border=0! !https://weblogs.sdn.sap.com/weblogs/images/251828873/14_3.jpg|height=389|alt=image|width=675|src=https://weblogs.sdn.sap.com/weblogs/images/251828873/14_3.jpg|border=0!

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

    1. Community User Post author
      Dear Sergey Erokhin,

      If we are using the Enable Send the data will be parsed as an XML file and based on your web Interface you can reterive those data. I’m working on that and place the blog once it is done. You can fiind the same in the Xcelsius-User guide.

      http://www.lingnan.net/lab/uploadfile/200864183725505.pdf

      My idea is, instead by using XML Data-Enable Send we can use the Web Service, so that the flow of data will be faster.

      Regards,
      Gokul.N

      (0) 
        1. Community User Post author
          Dear Sergey,
          In the user guide, it is not represented for SAP (BSP) and it wont work in our scenario. We have to change the scripts same as the scripts they have mentioned.
          (0) 

Leave a Reply