Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

graphic programming

former_member353207
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

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

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

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

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member353207
Participant
0 Kudos

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

0 Kudos

Ok, I believe that you will need pre-defined images for all of the errors that could happen. You would store these images in the repository. Check out program sap_picture_demo to see what needs to be done to show these images on the screen.

Regards,

Rich Heilman