Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Welcome, Guest

Login Register
Getting Started Newsletters

true

Store

Search for:

Solutions SAP Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation
HomeActivity

Search the Community

Search All of SAP

BrowseMore o Content o People o Places o Recent Bookmarks

Communications Actions

More discussions in User Interface TechnologyWhere is place located? 4 Replies Latest reply: May 2, 2008 6:18 PM by Daniel McWeeney

Binding Data through function module in adobe to display charts

This question is Assumed Answered.

indrakaran reddy Jan 12, 2008 7:20 AM Hello Gurus,

This is the requirement :Through function module output i have to display the chart. For ex:-In sales order transaction there is a field called status.For every order there is status (open, complete, inprocess). Display the chart based on the order status that how many open, complete and inprocess are there.

Thanks, Karan

4405 Views

Average User Rating (0 ratings)

Re: Binding Data through function module in adobe to display charts

Durairaj Athavan Raja Jan 12, 2008 10:10 AM (in response to indrakaran reddy) option 1. Consume the RFC as a webservice from flex as told in this thread Code for Webservice in adobe flex (its your thread, you should atleast say thanks if that helped you and close that thread)

options 2: write a BSP which returns the data in xml format and then use mx:HTTPService on the flex side to get the data

Raja

o o

Report Abuse Like (0)

Re: Binding Data through function module in adobe to display charts

Satyanarayana Murthy Karaka Mar 18, 2008 4:30 PM (in response to indrakaran reddy) continuing the above option just write a logic by comparing the strings in XML data(xml data handles acts as dataprovider for comparing strings) and increase the count.Finally handle the count in array and take that array as dataprovider to chart.

o o o

Report Abuse Like (0)

Re: Binding Data through function module in adobe to display charts

Satyanarayana Murthy Karaka Apr 23, 2008 5:08 PM (in response to Satyanarayana Murthy Karaka) Hi, As i said continuing with above steps handle data in XML object (here in code xmldata).then compare the status you need with xmldata and take status count.see the code Finally this array can useful for chart. [Bindable] public var StatusArray:ArrayCollection = new ArrayCollection(); public function getChartValueOfOrder():void{ var openVal:Number = 0; var completeVal:Number = 0; var inprocessVal:Number = 0; StatusArray.removeAll();

for(var i:int= 0 ;i<xmldata.dataProvider.length;i++){

if(xmldata.dataProvider<i>.overAllStatus.toString() == 'open'){ openVal++; } else if(xmldata.dataProvider<i>.overAllStatus.toString() == 'complete'){ completeVal++; } else if(xmldata.dataProvider<i>.overAllStatus.toString() == 'inprocess'){ inprocessVal++; }

var objStatus:Object = ; StatusArray.addItem(objStatus); }

Thanks.i hope this help you.

Report Abuse Like (0)

Re: Binding Data through function module in adobe to display charts

Daniel McWeeney May 2, 2008 6:18 PM (in response to Satyanarayana Murthy Karaka) Just to provide a bit more color, a more actionscript way of doing this is to use E4X:

openVal = (xmldata.dataProvider.(overAllStatus == 'open')).length;

Here is some info about E4X, if you are doing lots of XML parsing with actionscript knowing how to use E4X will save you tons of time: http://www.partlyhuman.com/blog/roger/as3-e4x-rundown

Report Abuse Like (0) Go to original post

Actions

SAP TechEd 2012 Sessions Explore over 1,000 hours of educational content by track, sub-track, products and hot topics. View sessions for Las Vegas, Madrid and Bangalore.

Legend

Correct Answers - 10 points Helpful Answers - 5 points

Loading user profile


Follow SCN Contact Us SAP Help Portal Privacy Terms of Use Legal Disclosure Copyright

Jive Software Version: 5.0.1.1 , revision: 201110261520.2c99f0c.release_jive_sbs_5_0_1_1

You might also like