Printing a Line Graph in SAP
Hi Experts,
Can anybody tell me how to print line graph in SAP. I do not want use ALV print function for graph generation.
Here I am attaching you sample program for your reference. Name of the program is GFW_PROG_PRES_SHOW_MULT.
Thanks in Advance.
Regards,
Shaik.
Hi Meera,
you can use FM "GRAPH_MATRIX_3D' to print graphs. See if this works out good for your.
Simple code to use this would be as follows.
DATA: BEGIN OF itab_data OCCURS 0,
dataname(15),
quantity1 TYPE i,
quantity2 TYPE i,
quantity3 TYPE i,
END OF itab_data,
BEGIN OF itab_options OCCURS 0,
option(20),
END OF itab_options.
itab_data-dataname = 'Electricity'.
itab_data-quantity1 = 55.
itab_data-quantity2 = 62.
itab_data-quantity3 = 59.
APPEND itab_data.
itab_data-dataname = 'Gas'.
itab_data-quantity1 = 35.
itab_data-quantity2 = 52.
itab_data-quantity3 = 44.
APPEND itab_data.
itab_data-dataname = 'Water'.
itab_data-quantity1 = 18.
itab_data-quantity2 = 22.
itab_data-quantity3 = 19.
APPEND itab_data.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
col1 = 'Jan'
col2 = 'Feb'
col3 = 'Mar'
titl = 'Gráfico Teste - Carlos'
TABLES
data = itab_data
opts = itab_options
EXCEPTIONS
OTHERS = 1.
Hope this helps.
Thanks
Sumit
Similar Messages
-
hi all,
can anyone let me know how to print alv line graph .
wat i want is print option in zcopy of pgm GFW_PROG_PRES_SHOW_MULT.
regards
Avik NayakOn Thu, 11 May 2000 17:39:54 GMT, Steve Drake
wrote:
>Hello everyone. I have LabView printing an XY graph but it always
>wants to print in Portrait mode. I set the defaults of the printer to
>LandScape mode and still go a Portrait printout. Is there anyway
>to force LabView to print in LandScape mode? This will help the graph
>be more readable.
>
Hi, well after some playing around and touching things that I though
shouldn't make a difference I got it to print in Landscape mode. On
the VI's front panel menu File-Print I switched that to LandScape mode
and what do you know it printed the graph out in LandScape mode.
Now I want to manipulate the fonts on the graph. I have messed with
the cursors and I can put x axis lines
on the chart with a time value
but the text I'm putting up is small so I need a bigger font and I
need to get the text out of the graph itself.
Is there anyway to print the cursor titles vertical instead of
horizontal to the x axis. Thought I would ask anyway.
Thanks to anyone who already knew how to do this.
Regards,
Steve Drake -
SAP Script Check printing Layout, Line Items to display twice in First Page
Hi All,
This requirement is for US check printing Layout.
My Requirement is to display Items twice on the first page.
Eg : Main Window has 10 Items, I need to display all the Items at the bottom in another window at the bottom.
I can't create 2 Main windows in the first page, as the data from the Main window 1 overflows to Main window 2 in the first page.
I copied print program RFFOUS_C into a Z-version and try to implement the logic, however unable to print the line items in the bottom window.
Kindly give your valuable Inputs.
Thanks
VinayakHi
I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more.
Best regards
JD -
Hello,
I'm looking for a way to print a .pdf file from sap . The file was created manualy and is in a newtwork folder.
I have to send the print to a network printer . Is it possible to use the AcroRd32.exe as a command line?
Thank you.hii,
try this
CONVERT_OTFSPOOLJOB_2_PDF
http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm
PDF - Printing a PDF file from ABAP or SAP Script
regards,
Sri. -
Display xMII Trends and graphs in SAP R/3
Dear all,
We have a requirement to see the trends of various production lines from xMII in SAP R/3 itself.
Is it possible to have this graph in SAP ?
Even if we are able to see the webpage then also it is ok.
We are having RFC connection established already within xMII and SAP.
Thanks in Advance,
Regards,
Vivek KFound it :
http://www.erpgenie.com/abap/controls/htmlviewer.htm -
How to leave half line space in SAP Script
Actually , I have a doubt regarding half line spacing on SAP Script ..
I am working on Cheque Printing with fbz5
Now the issue in the date, there are 8 box for the date in cheque .
i.e 0 2 0 7 2 0 1 4
Currently the date is comming on the cheque box ..like half up the box and half inside
IF I give one space in cheque window of my script with / its taking complete 1 space
and result is ,it going down ..with one space
I want to leave exact half line space ..so date is adjusted in the middle .
I also tried moving my cheque window from upper margin in all format(CH , CM , MM IN ..) above
But it is taking exact one space .Hi Darshit,
While creating the tab position, you have a option of line spacing.
make it to 0.5 lines, to make exact half line.
And also another way out, you can check by moving the 8 box created for the date up by 0.5 lines.
Regards,
Ganesh Lathi. -
Line Graph Problem when used with Series
I am facing a problem with Line Graph in Oracle Reports 10g.
I have made a graph having series of three curves.
The graph is perfect when all series have similar X-Axis values. See the link
http://www.sysautomation.com/ask/RPT_LINE_GRAPH_OK.PDF
But same graph does not print curves properly, gives spaces in the curves, when all the series do not have similar values on X-Axis
http://www.sysautomation.com/ask/RPT_LINE_GRAPH_NOT_OK.PDF
Pl. guide me what to do to make this graph working.Thanks for reply.
In my case, I have to plot curves.
and some Series have different X-axis values.
I have no choice, but to plot them.
The same thing was working fine with Reports 6i + Graphics 6i.
What is Scatter Plot?
Thanks again.
This is a limitation in the current line graph in
Reports 10g (9.0.4). I can't recall whether this has
improved in 10.1.2 or it was planned for the next
rev.
Would trying a scatter plot be better?
Line graphs are normally meant for regular intervals
on x-axis, so using the example of dates, Jan, Feb
and Dec would be placed right next to each other,
rather than scaled with the right distance between
Feb and Dec. -
Plot values in X-Axis in 2D line graph
Hi,
I am using 2D line graph to plot graph but the graph is to be ploted based on date i.e i have a range to be ploted in X-Axis i.e Dates how to plot that please suggest now the values are automatically it is getting ploted
This is query wht i am using
SELECT
pobj.name "Object Name",
tas.name "Task Name",
SUM (TCL.NUM_HOURS_DAY1+TCL.NUM_HOURS_DAY2+TCL.NUM_HOURS_DAY3+TCL.NUM_HOURS_DAY4+TCL.NUM_HOURS_DAY5+TCL.NUM_HOURS_DAY6+TCL.NUM_HOURS_DAY7) ) "Effort"
FROM
timecard_lines tcl,
project_objects pobj,
tasks tas,
projects pro,
timecard_headers thr,
employees epl,
object_task_estimate ote,
TIMECARD_PERIODS TP
WHERE
pro.id = :P61_PROJECTS and
tas.id = :P61_TASKS and
TP.ID = THR.TPD_ID AND
tcl.pobj_id = pobj.id AND
tcl.tas_id = tas.id AND
pro.id = pobj.pro_id AND
thr.id = tcl.thr_id AND
thr.emp_id = epl.id AND
ote.tas_id = tas.id AND
pobj.id = tcl.pobj_id
and
ote.pobj_id = pobj.id and
pro.id in
(SELECT pro.id
FROM projects pro, employee_project_pairs
epp, project_employee_roles per ,employees empl
WHERE empl.id = epp.emp_id
AND pro.id = epp.pro_id
AND epp.project_role_id = per.id )
group by pro.project_name,pobj.name,tas.name
order by pobj.nameStandard syntax on the Mac is Object, Action. The order is always Select an object (in this case, part of a spreadsheet), then perform an action on or with tat object (in this case, make a chart).
The same syntax applies to Copy or Cut (and to Paste, althyough it's not as obvious there—the object is whatever is currently on the Clipboard).
I don't think there is information on printing charts/graphs in the online help. A chart is a graphics object, and is printed as part of the document that contains it. Printing the spreadsheet should also print the chart, provided it is on a page that contains data (AppleWorks's default is to print only the rows and columns that contain data). If you want to print the chart without any of the data, drag the chart over the data to conceal it, and choose the Print options that do not show column or row headers and the cell grid. (These are probably in the AppleWorks options in your Print dialogue, but their position will depend on your print driver.)
Placing the object (the chart) in another document provides an easier method of printing only the chart, and the method you used (dragging the chart from the spreadsheet to the second document is a common and acceptable one. Dragging an object from one document to another places a copy of the object on the second document, and leaves the original on the original document. This is true in general, not just for charts.
In the case of a chart, the copy is a static object, while the original maintains its live connection to the underlying spreadsheet—changing a graphed value in the spreadsheet will change the graph to match the new value, but will not affect the copy in the second document.
Regards,
Barry -
Printing a Labview graph in LandScape mode ?
Hello everyone. I have LabView printing an XY graph but it always
wants to print in Portrait mode. I set the defaults of the printer to
LandScape mode and still go a Portrait printout. Is there anyway
to force LabView to print in LandScape mode? This will help the graph
be more readable.
Thanks for any help you can give.
Regards,
Steve DrakeOn Thu, 11 May 2000 17:39:54 GMT, Steve Drake
wrote:
>Hello everyone. I have LabView printing an XY graph but it always
>wants to print in Portrait mode. I set the defaults of the printer to
>LandScape mode and still go a Portrait printout. Is there anyway
>to force LabView to print in LandScape mode? This will help the graph
>be more readable.
>
Hi, well after some playing around and touching things that I though
shouldn't make a difference I got it to print in Landscape mode. On
the VI's front panel menu File-Print I switched that to LandScape mode
and what do you know it printed the graph out in LandScape mode.
Now I want to manipulate the fonts on the graph. I have messed with
the cursors and I can put x axis lines
on the chart with a time value
but the text I'm putting up is small so I need a bigger font and I
need to get the text out of the graph itself.
Is there anyway to print the cursor titles vertical instead of
horizontal to the x axis. Thought I would ask anyway.
Thanks to anyone who already knew how to do this.
Regards,
Steve Drake -
Hi All,
I have an xml datasource with many items. For example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<USRPRES_REPORT>
<TABLE id="0">
<VALUE>0</VALUE>
</TABLE>
<TABLE id="1">
<VALUE>3</VALUE>
</TABLE>
<TABLE id="2">
<VALUE>1</VALUE>
</TABLE>
</USRPRES_REPORT>
I would like to create a basic line graph from these values. The values can be 0-5, so the y axis can be the 0-5 and the x axis shows the actually value from the source. How can i create a graph like this? (as i see the CR alway wants to summarize, and it is my problem)
Thanks for all!!!
Imre KovacsThis looks to be more of a Crystal Report design issue so please post to the Crystal Reports Design forum at:
SAP Crystal Reports
Ludek -
Hi i have developed a class for the information manipulation of a Line graph
I would Like some help in actually drawing the graph so i can pass values
manipulated here to the drawing of the graph any help is greatly appreciated thank you
package ICUv2;
import java.awt.Point;
import java.util.Random;
public class ecgSensor extends Paitent {
private int x;
private int y;
private int xpos;
private int ypos;
private int min;
private int max;
private Point rate;
public ecgSensor(int x, int y, int min, int max, int xpos, int ypos ){
setX(x);
setY(y);
setMin(min);
setMax(max);
setRate(getXpos() , getYpos());
public ecgSensor(int x, int y, int min, int max ){
this(x,y,min,max,0,0);
setX(x);
setY(y);
setMin(min);
setMax(max);
public ecgSensor(){
this(5, 5, 50, 100);
@Override
public String toString(){
return String.format("%s :%s", getX(), getY());
public static void main (String[] args){
ecgSensor a = new ecgSensor() ;
System.out.print(a.toString());
//System.out.print(a.getX());
//System.out.print(" ");
//System.out.print(a.getY());
public Point getRate(){
return rate;
public void setRate(int x, int y){
this.rate = new Point (x, y);
public int getX(){
return x;
public int getY(){
return y;
public void setX(int x){
this.x = x;
public void setY(int y){
this.y = y;
public int getMin(){
return min ;
public int getMax(){
return max;
public void setMin(int min){
this.min = min;
public void setMax(int max){
this.max = max;
public int getXpos(){
return xpos;
public int getYpos(){
return ypos;
public void setXpos(int xpos){
this.xpos = xpos;
public void setYpos(int ypos){
this.ypos = ypos;
public int incYpos(){
return this.ypos;
public void setincYpos(int inc){
setYpos(getYpos()-inc);
public int decYpos(){
return this.ypos;
public void setdecYpos(int dec){
setYpos(getYpos()+ dec);
public class ecgReadings implements Runnable {
Random ecgr = new Random();
int Change = ecgr.nextInt(20);
public void run(){
this.toString();
while (true) {
if (x%2==0){
setXpos(getXpos()+ 10);
setdecYpos(Change);
}else{
setXpos(getXpos()+ 10);
setincYpos(Change);
try{
Thread.sleep(1000);
}catch(InterruptedException e){}
}// end of while
}// end of run method
}// end of ReviseBloodrate class
}xiaolixx wrote:
Hi i have developed a class for the information manipulation of a Line graph
I would Like some help in actually drawing the graph so i can pass values
manipulated here to the drawing of the graph ..Right. Did you have a question, or did you think your plaintiff cry for help would get someone to do it all for you?
..any help is greatly appreciated thank you
package ICUv2;
By convention, package names are alllowercase (It's funny you should rediscover your shift key, just for some package name where it is inappropriate!). Class names should be EachWordUpperCase, while attributes and methods should be firstWordLowerCaseAllTheRestUpper.
By using the common conventions for code, you help to communicate the problem to others who are used to seeing that nomenclature.
And as I said before.. "For better help sooner, post an SSCCE". -
Line Graph - set useful baseline value automatically
Hi all,
for a line graph in reports I've set the axisMinAutoScaled-property of the Y1Axis-element to "false" and expect that reports find out a useful value for the baseline at its own. Unfortunately the value of the baseline is always set to 0 whether a range of 1.000 to 10.000 or a range of 1 to 10 is selected.
Do you know a way to set the value of the baseline depending on the displayed values.
Thanks in advance.
Martin
Edited by: user11939409 on 14.06.2011 08:43Hi Sreehari,
I tried to set the y-axis scale for line chart by using code. But its showing the default value, not displaying the value what i gave. Adding my code for reference.
var axis = new sap.viz.ui5.types.Axis().setScale(
new sap.viz.ui5.types.Axis_scale().setMinValue(20.0).setMaxValue(100.0).setFixedRange(true));
column = new sap.viz.ui5.Line({
width : "100%",
height : "400px",
legendGroup: legendPosition,
plotArea : {
colorPalette : ['#F67A7A','#FEE00A','#B6C359'],
title : {
visible : false,
text : ''
xAxis:{
title:{visible:false} ,
yAxis : axis ,
dataset : dataset -
Create a line graph on EP 7.0
We are trying to create a complex line graph in the portal which will pull data from SAP ISU. What is the best approach to developing this graph? Is SAP Chart Design suitable for creating a complex graph from scratch?
Any help would be appreciate.U can open any one of this as per ur like and edit.
Well, you cannot edit the standard delivered themes. You will need to make a copy of the standard one and edit that custom copy.
Besides the theme editor in the portal, there is a tool called Eclipse theme editor which can come in handy to create/modify a theme. You can download this tool and the corresponding guide at the following location:
http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/136dd890-0201-0010-1b9d-bd09a0d3b1d8
Thanks,
Shanti -
How to print SO line item seperately on four part of paper
Hi all,
My client has following requierment.
if we take A4 size paper and make four equal part then we will have four part as follows
part1 (top left),part2(top right),part3(bottom left) and part4(bottom right)*
In sales order if there are 4 line item then i want to print
1st line item,desc,qty,whs code,so number,cust name on part1
similarly for
2nd line item,desc,qty,whs code,so number,cust name on part2
3 line item,desc,qty,whs code,so number,cust name on part3
4th line item,desc,qty,whs code,so number,cust name on part4
order of printing is as follows
following is A4 size paper ,which is divided in to four parts first line item will be printed on first part
second line item will be printed on second part
third line item will be printed on third part
fourth line item will be printed on fourth part
and so on
printer automaticaly print this in there customised old ERP now they want this in the SAp B1..
they tear this paper in four part and while despatching the item they attach this to the Item
hope i have given proper information about my question..
Can any body have idea how to print this in above format....
thanx in advance.
regards,
Chetan.Hi chetan,
I tried your require PLD but did not display the Sales Order line item seperately on four part of paper.
Try this,
->> Open the PLD.
->> Create 1 Database field on the top Left half of page and 1 Database field on the top Right half of page in Page Header.
->> Create 1 Database field on the Bottom Left half of page and 1 Database field on the bottom Right half of page in
End of Report.
Result:
Top Left half of page ->> 1st Row Item Description
Top Right half of page ->> 1st Row Item Description
Bottom Left half of page ->> (Last)4th Row Item Description
Bottom Right half of page ->> (Last)4th Row Item Description
Because First 2(Left & Right)Database Fields are in Page Header and both 2 fields are in page header so it will be display only the First Row Item Descrition.
Second 2(Left & Right)Database Fields are in End of Report and both 2 fields are in End of Report so it will be display only the Last Row Item Descrition.
so, Try this.
->> Create 1 Database field on the top Left (or) Right half of page in Page Header.(Display the 1st row Item Description )
->> Create 1 Database Field and Assign the Item Description then Create 1 formula field put formula ( LineNum()==2 )field in Repetetive Area0.
->> (Item Description)DB field is Link to Formula field ID.(Display the 2nd row Item Description )
->> Top of the menu Clcik the Print Layout Designer -> Repetetive Area -> Add.
->> Create 2 Database Field and Assign the Item Description then Create 1 formula field put formula ( LineNum()==3 )field in Repetetive Area1.
->> 1st (Item Description)DB Field put hide and 2nd DB field is Link to Formula field ID.(Display the 3rd row Item Description )
->> Create 1 Formula field and Paste the Item Discription (Hide) Field ID on the Bottom Left (or) Right half of page in End of Report.(Display the Last(4th) row Item Description )
Regards,
Madhan. -
2D Graphics (I can't print thin line, point, etc.)
I created a program that draw and print
a graph.
I have used 2D Graphics.
But I have some problem:
I can't print thin line, point, etc.
Thanks in advance
Gali
nullI created a program that draw and print
a graph.
I have used 2D Graphics.
But I have some problem:
I can't print thin line, point, etc.
Thanks in advance
Gali
null
Maybe you are looking for
-
Logic sound effects copyright question
Hi I want to use some sound effects (wind and thunder) on one of my songs and I want to check on the copyright/marketing status of Logic's sound effects. I know that these are described as "royalty free", but does that mean that I can used them on so
-
Need to create/buy/Use a Web based Image Editor
Hi all I'm new here, just got a new project for printing shop, they need to have their users editing Business cards to put their own information. So there will be a tamplet of cards and user can pick up up and edit it accordingly and save it to the s
-
Putting a histogram in Powerpoint
How can I export or copy a histogram from photoshop CS3 (10.0.1) to use in a Powerpoint slide along with the image. Thanks!
-
Urgent: got an error in running ds engine
i'm not sure where i can fix this error: pls help. thanks. DSE COnnect failed due to DB Connection to Io exception: Invalid number format for port number error io exception: Invalid number format for port number
-
Printer settings menu does not always change when switching printers
I am running OS 10.3.9 and also seen this issue on a 10.4 machine. When switching from one printer to another the printer options drop down menu does not always transfer to the correct menu for the newly selected printer. It stays at the menu for the