HOW TO creat BAR CHART using ABAP Programming
DEAR ALL,
I want some help as to how to creat GRAPHICAL display using ABAP programing (BAR CHART) any sample codes Example will be very helpful.
Regards,
VJ
On earlier versions, you can do something like this.
[code]
REPORT ZRICH_0005 .
DATA: BEGIN OF ITAB_DATA OCCURS 0,
DATANAME(15),
QUANTITY1 TYPE I,
QUANTITY2 TYPE I,
QUANTITY3 TYPE I,
END OF ITAB_DATA.
Data: BEGIN OF ITAB_OPTIONS OCCURS 0,
OPTION(20),
END OF ITAB_OPTIONS.
ITAB_DATA-DATANAME = 'Maple'.
ITAB_DATA-QUANTITY1 = 5500.
ITAB_DATA-QUANTITY2 = 6200.
ITAB_DATA-QUANTITY3 = 5900.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Oak'.
ITAB_DATA-QUANTITY1 = 3500.
ITAB_DATA-QUANTITY2 = 5200.
ITAB_DATA-QUANTITY3 = 4400.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Cherry'.
ITAB_DATA-QUANTITY1 = 1800.
ITAB_DATA-QUANTITY2 = 2200.
ITAB_DATA-QUANTITY3 = 1900.
APPEND ITAB_DATA.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
COL1 = 'Jan'
COL2 = 'Feb'
COL3 = 'Mar'
TITL = 'Lumber Usage in $'
TABLES
DATA = ITAB_DATA
OPTS = ITAB_OPTIONS
EXCEPTIONS
OTHERS = 1.
[/code]
Regards,
Rich Heilman
Similar Messages
-
How to create a job thru ABAP program for calling a program with variant???
Hello experts,
can u give me step wise procedure to create jobs for a program with a variant name thru ABAP???
Also, can a transaction can be scheduled as a job to run in background with a variant name???
Edited by: SAP USER on Jul 22, 2008 6:08 AMHi,
To create a job through ABAP program you can do the following.
Go to Menu bar.
In there, go to SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
Then give the JOB NAME and CLASS in the screen that comes up.
This is how we schedule a program.
Now, to create a variant for a program -
First activate your program in SE38. Then execute it .
Now, click on SAVE button. It will open up the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
Hope this helps.
Regards,
Hari Kiran -
How to print external file using ABAP program
Hello
I want to print an external file which is located in server (
20.99.0.18\GUI\xyz\8.0QUALITY\QM_TS.DOC) .....i want to print these kind of files(which i have retrieved from table 'DRAW' field 'filep' )......i need to print these files using ABAP program.
thank you
Vikram.
Message was edited by:
Vikram Bojjaextract the data and pass to script or smartform for printing
-
Creating a chart using ABAP OLE
Hi all,
I have a requirement to
1) Output data from an internal table into excel, and
2) Create a chart from the data in excel
The ABAP program is driving the creation of the chart in excel.
So far I have been able to export the data using OLE calls, created a chart object,.
My question:
1. How to put Data Lables
2. How to put Data Table under the Chart
3. How to rename the series names
Below is the recorded Macro. I don't know how to convert it to ABAP.
Sub Macro1()
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlColumnClustered
Application.CutCopyMode = False
ActiveChart.SetSourceData Source:=Range("B1:E4")
ActiveChart.SeriesCollection(1).Name = "=Sheet2!$A$2"
ActiveChart.SeriesCollection(2).Name = "=Sheet2!$A$3"
ActeChart.SeriesCollection(3).Name = "=Sheet2!$A$4"
ActiveChart.SetElement (msoElementDataLabelOutSideEnd)
ActiveChart.SetElement (msoElementDataTableWithLegendKeys)
End Sub
I have attached the current output and expected output.
I have searched about this in google but i could not find any solution for this.
Your help is greatly appreciated.
Thanks,
Lakshmi.To my knowledge, charts are only available for work item queries in TFS web access. If you want to generate test result charts, you can do that using the TFS reporting data in the data warehouse (if your administrator configured it when setting up TFS).
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
Creating Bar Charts using Java and Display in jsp
Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?
I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component? -
How to plot bar chart using iReport with Struts 2
Hi All
Im working on iReport 3.5.1 to generate jasper report for our java enterprise application. Here, I have no problem, when im generating simple report[without any chart]. When i try to add a bar chart to jasper report, i coudnt get the exact chart what i wanted, im just getting some ridiculous chart which is exactly wrong, i guess the problem is with the data given to plot the chart. Do, anybody know how to transport data to plot the bar chart in iReport. For Simple chart im using javabeans to generate report, but for chart, how it should be?
Thanks in advance
Thanks and Regards
Baskaran
Edited by: Baskaran on May 22, 2009 12:36 PMjxl does not support create chart from scratch.
Maybe you can do it by using excel template:
define a chart in the sheet,using definedName or fixed range as chart data source. -
How to Create an XML using Abap Objects
Hi there,
who has an example how to create an XML Document from an internal table using abap objects
e.g. Class CL_XML_DOCUMENT_BASE ?
any feedback is welcome.
thanks
JohannHi Johann,
You don't need a class to do the job if you are on a 6.10 or higher system. Use command CALL TRANSFORMATION to create an XML from an internal table.
Regards,
John. -
How to create the chart using java
Hi Friends,
I have one urgent requirement.I need to create the chart by using the table value.The value is stored in database like as follow..
Attribute IG
Home 0.05
Married 0.72
Gender 0.05
Employed 0.05
Rate 0.05
I need to get the highest value and create the parent node and lowest value is child node llike that i need create ...
plz any body help me....You don't do that using Java.
Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html]. -
How to send SMS by using ABAP program
HI Gurus,
I need to notify the vendor through sms when his goods are received. His details are stored in vendor master.
My problem is that I am not able to find any function module for the same.
Do any of you know how to send 'sms' to particular mobile number using ABAP.
Are there any basis settings required for the same?
Thanks and Regards,
SaurabhHi,
Pls check the below links
http://help.sap.com/saphelp_nw04/helpdata/en/58/97c43af280463ee10000000a114084/frameset.htm
/people/ronen.fox/blog/2007/12/06/sending-sms-notification-via-business-workflow
http://www.****************/Tutorials/Workflow/Workflow.htm
You can use the FM: 'SO_DOCUMENT_SEND_API1' &
'SO_DOCUMENT_SEND_API1_NEW'.
to send the mail,sms etc.
But you have to make some chamnges in the reciever table, jus go thru FM documnetaion once, you will fine the option for sending SMS thru either of this FM.
Below is a sample code for sending e-mail.
so, u can take help from this.
data declarations
DATA : v_sender TYPE soextreci1-receiver,
v_doc TYPE sodocchgi1,
it_paklist TYPE STANDARD TABLE OF sopcklsti1 ,
wa_paklist TYPE sopcklsti1 ,
it_obj_head TYPE STANDARD TABLE OF solisti1 ,
it_obj_bin TYPE STANDARD TABLE OF solisti1 ,
it_obj_txt TYPE STANDARD TABLE OF solisti1 ,
it_obj_rcv TYPE STANDARD TABLE OF somlreci1 ,
wa_obj_rcv TYPE somlreci1 ,
v_desc(100).
CONSTANTS: c_start(12) TYPE c VALUE '000000000000001',
c_num(12) TYPE c VALUE '000000000000002',
c_num1(12) TYPE c VALUE '000000000010030',
c_raw(3) TYPE c VALUE 'RAW',
c_test(4) TYPE c VALUE 'TEST',
c_X(1) TYPE c VALUE 'X'.
refresh internal tables
REFRESH : it_paklist, it_obj_rcv.
clear internal tables
CLEAR : it_paklist, it_obj_rcv, v_sender.
v_sender = sy-uname.
fill internal table it_paklist
wa_paklist-head_start = c_start.
wa_paklist-head_num = c_num.
wa_paklist-body_start = c_start.
wa_paklist-body_num = c_num1.
wa_paklist-obj_name = c_test .
wa_paklist-doc_type = c_raw .
wa_paklist-transf_bin = c_X .
APPEND wa_paklist TO it_paklist.
clear: wa_paklist.
Data in the Header/subject Line
v_desc = text-005 .
v_doc-obj_name = c_objname .
v_doc-obj_descr = v_desc.
Mail text
APPEND v_desc TO it_obj_txt.
Preparing the receiver list
wa_obj_rcv-rec_type = 'U'.
wa_obj_rcv-rec_type = 'C'.
v_dlist = 'SCE_TEST'.
wa_obj_rcv-receiver = v_dlist. "Distribution list.
wa_obj_rcv-receiver = Enter the mail id .
APPEND wa_obj_rcv TO it_obj_rcv.
Call the function module to send mail
IF NOT it_obj_rcv[] IS INITIAL.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_doc
sender_address = v_sender
sender_address_type = 'B'
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_paklist
object_header = it_obj_head
contents_bin = it_obj_bin
contents_txt = it_obj_txt
receivers = it_obj_rcv
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
MESSAGE text-006 TYPE 'I' .
ENDIF.
ENDIF . -
How to create numeric attribute using ABAP API
Hi experts
I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
Those who have tried, please let me know the steps.
I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
ls_num_attr_val-rating = 500.
APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
APPEND ls_ext_attr_info TO lt_ext_attr_info.
GET REFERENCE OF lt_ext_attr_info INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'ACCT'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
lv_string = 'Customer 12'.
GET REFERENCE OF lv_string INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'CUST_NAME'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
CALL METHOD lr_api->mo_core_service->create
EXPORTING
iv_object_type_code = 'ACCT_TYPE'
is_parameter = ls_parameter
iv_parent_id = 0
IMPORTING
ev_new_internal_id = lv_key.
Thanks
SwarnaDeepika
Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PMHello Ashok,
[here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
Hope this helps.
Best regards
Dominik -
How to create attachments from an abap program?
I have an abap report that shows material documents.
Now by clicking on a button (at the end of each row), it should allow the user to attach a document.
How to achieve this?
(I tried to see the code behing the Private Objects of a document at FB03 but I could not decipher it much).
Thanks,
Ven..CONSTANTS : objtype TYPE borident-objtype VALUE 'ZGOS2'.
DATA : manager TYPE REF TO cl_gos_manager,
obj TYPE borident,
gs_lopr TYPE sibflpor.
parameter: srlno type matnr.
IF srlno IS NOT INITIAL.
obj-objtype = objtype.
obj-objkey = srlno.
gs_lopr-instid = srlno .
gs_lopr-typeid = 'ZGOS2'.
gs_lopr-catid = 'BO'.
AT SELECTION-SCREEN OUTPUT.
CREATE OBJECT manager
EXPORTING
is_object = obj
is_bc_object = gs_lopr
IP_NO_COMMIT = 'R' "This is commit document for that material.
EXCEPTIONS
OTHERS = 1.
ENDIF.
try this it will work -
How to create Bar chart from existing XML file
Hi all,
i'm new to flex, i need your help to develop a flex for
dashboard app. we have sample.xml file. by using this i need to
create a bar diagram or piechart.
Please help me out
The XMl looks like this.....
<?xml version="1.0" encoding="utf-8"?>
<user id="123412343">
<fullName>
<lastName>Telles</lastName>
<firstName>vijay</firstName>
</fullName>
<preferences>
<modWidth>235</modWidth>
<modHeight>250</modHeight>
<totalWidth>1650</totalWidth>
<totalHeight>1650</totalHeight>
<modsX>4</modsX>
<modsY>2</modsY>
</preferences>
<module id="Status2">
<windowOpen>true</windowOpen>
<pointsToShow>
<p label="Proposed"/>
<p label="Draft"/>
<p label="DEP Adpt"/>
<p label="EPA Adpt"/>
</pointsToShow>
<dataSetsToShow>
<label>2006</label>
<label>2007</label>
</dataSetsToShow>
</module>
</user>convert this xml to ArrayCollection called chartData
var charOption:String = "totalHeight"; /Use this to set the
yField property...
<mx:ColumnChart showDataTips="true" id="barChart"
width="100%" height="100%" dataProvider="{chartData}"
color="0xffffff">
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{chartData}"
categoryField="hour" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis labelFunction="addDollarSign"/>
</mx:verticalAxis>
<mx:series>
<mx:ColumnSeries yField="{chartOption}"
showDataEffect="interpolate"
creationCompleteEffect="interpolate"/>
</mx:series>
</mx:ColumnChart> -
How to create a chart using x-y correlation line plotting and trendline?
Hi everyone,
I am a college student and I opted to use iWork instead Microsoft Office, which has been wonderful software until this semester (iWork '08). Currently, I am taking some science classes, which requires me to graph simple function using "excel"; since I have Numbers, I attempted to graph my homework using such software. However, it was a little disappointing because I could not find x-y correlation line plotting, trendline, or simple curve fitting in Numbers.
Is Numbers able to graph in such way? If yes, what is the best approach to find such tools?
Any help will be truly appreciated.
M
Message was edited by: MacBook it worksPlotting a function, eg y = 2x^2 + 3x + 2 or similar, in numbers or excel / appleworks / open office is not directly possible. The indirect way to do it is to build a spreadsheet put the values of x in one column and the formula to calculate the values of y in another and use these two columns to produce a chart. As you are plotting the function via calculated data (rather than trying to find a relationship by plotting observed data) trend line or curve fitting seems unnecessary.
You can plot observed data and produce a scatter chart in Numbers, but it will not produce a trendline for you. You could calculate the parameters of the trendline, there are a number of shareware products that will do this. See http://www.apple.com/downloads/macosx/mathscience/indexabc.html. Once you calculate the trendline you could use the technique described above to plot it.
You can plot a function directly using Grapher which lives in the Utilities folder. It can also be used to plot data sets and do simple curve fitting.
Hope this helps, but as always to solve a problem you have to clearly define it first. -
How to create a wizard using abap
Hi,
I have to create wizard in standard VA02 transaction. Once the user creates a sales order, he should be able to click on a tab . Wwhen he clicks the tab , the wizard should run and display some results.
What is the best approach for this requirement?
regards,
shanHi,
Try to find the user exits or badi's. I think u can search for Screen exits..The following are the user exits and badi's for VA02.
Transaction Code - VA02 Change Sales Order
Enhancement/ Business Add-in Description
Enhancement
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
No.of Exits: 15
No.of BADis: 2
Try to find a suitable one and check it..
regards,
chaithanya. -
Create Bar Chart - Combine Year, Qtr & Week
Post Author: Rozita
CA Forum: Charts and Graphs
Hi,
Does anyone know how to create bar charts using crystal report IX like below details?
I have a data from Year 2000 until Year 2007. I want to display certain value for 3 year + Qtr value for current year + Week value for 5 week only.
Table
2005 678
2006 655
2007 874
Qtr1 526
Qtr2 475
Qtr3 555
Qtr4 658
Wk22 145
Wk23 254
Wk24 356
Wk25 458
Wk26 584Post Author: Rozita
CA Forum: Charts and Graphs
Thanks for your reply but i want to display all to be in one chart. (Year + Qtr + Week).
eg :-
2005 2006 2007 Qtr1-2007 Qtr2-2007 Qtr3-2007 Qtr4-2007 Wk24 Wk25 Wk26
value 845 545 256 241 451 365 458 124 157 254
Sample record in database like this:
Year Week Value
2005 1 578
2005 2 457
2006 2 652
2006 3 657
2006 4 547
2007 1 457
2007 2 654
Thank you.
Maybe you are looking for
-
Wireless Connection after 10.4.8 Update
I want to try and update again to 10.4.8. Has the wireless connection issue been resolved yet? The problem I was having before was when my mac went into sleep mode or I would reboot the wireless connection would be dropped. I tried just about everyth
-
HT201318 How do I get a refund from upgrading my iCloud storage accidentally?
How do cancel an upgrade for iCloud storage that I made accidentally? I don't know how to contact Apple.
-
Extracting data from XML using xmltype and extract
Hello all, I want to write a pl/sql functions that takes a clob as an input and return a some data extracted from the data passed into it. the input will be an xml similar to the following: <FIXML xsi:schemaLocation="http://www.finacle.com/fixml exec
-
I have a problem with some of the contacts on my iphone 4 (running 4.1) I am able to call all of the saved contacts, but if I try to open some of the contact information then the contacts app shuts down completely. This effects about half of my conta
-
We have a fresh install of SMC 3.61 on a Solaris 10 box. We have a mixed SUN environment here with a number of older EOL SUN servers (V480,B1600 blade chassis,...) running Solaris 8,9 & 10. Can you configure SMC3.61 to monitor the older EOL equipment