10-25-2005 1:41 PM
Hello experts,
I want to illustrate the current state of a machinery in a graphic. It should be a simple diagram with different colors for the situations the machinery could be.
What's the best way to do this with ABAP ?
Joerg
10-25-2005 1:45 PM
do you mean charts?
look at the FM GRAPH_MATRIX_3D
check out GRAPH_* FMs from SE37
if you have IGS you can you can try the following programs
GRAPHICS_GIS_VIEW_DEMO
GRAPHICS_GUI_CE_DEMO
Regards
Raja
10-25-2005 1:42 PM
Do you want to use a graph or some sort of picture. If you want to use a graph, check this sample program.
[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
10-22-2008 10:57 AM
HI,
How can i save that graph in to my desktop automatically
is it possible if so, how can i achieve and pass some inputs and clue
Thank Q,
Shabeer Ahmed
10-25-2005 1:45 PM
do you mean charts?
look at the FM GRAPH_MATRIX_3D
check out GRAPH_* FMs from SE37
if you have IGS you can you can try the following programs
GRAPHICS_GIS_VIEW_DEMO
GRAPHICS_GUI_CE_DEMO
Regards
Raja
10-25-2005 1:46 PM
please be a little clearer with your requirement....
u want to know about colors in reports....u can have several options ....like...
using color through the format statement....
eg: FORMAT COLOR COL_HEADING ON.
thereafter when u write something on the list...it will be in the corresponding color...
using and displaying variables as icons
display a variable as an icon ....
eg:
INCLUDE <list>.
WRITE icon_green_light AS ICON.
or if you want to display images....u need to first import them in SAP and then use...
there are FMs for graphs and charts...need to search...
rgds,
PJ
Message was edited by: Priyank Jain
10-25-2005 2:12 PM
What I want is a simple image of the machinery. The different parts of the machinery could have for example errors. If an error occurs the affected machinery part should be highlighted. So I don't want a chart or pie or something like that but a drawing/layout designed with Abap programming.
Joerg
10-25-2005 2:18 PM