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: 

Charts in SAP

Former Member
0 Kudos

Hi Experts,

Is there any way to have charts in SAP?

Thanks,

Ravi

1 ACCEPTED SOLUTION

former_member583013
Active Contributor
0 Kudos

Try with <b>GFW_PROG_BAR</b> or <b>GFW_PROG_COLUMNS_AND_TIME_AXIS</b> -;)

Greetings,

Blag.

5 REPLIES 5

former_member583013
Active Contributor
0 Kudos

Try with <b>GFW_PROG_BAR</b> or <b>GFW_PROG_COLUMNS_AND_TIME_AXIS</b> -;)

Greetings,

Blag.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, here is an example. In Netweaver releases, I believe that the new way is to use the IGS. This example uses technology available in 46c

[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 Rich,

that's right. IGS - or the chart engine - is the new and better way to use charts in new applications. Therefore let's do not mention the old function modules

As Matthias mentioned above it's also possible to use the chart engine as a SAPGUI component; in this case the IGS is not involved at all.

Regards, Kai

matthias_gemmel
Active Participant
0 Kudos

Hi Ravi,

an example that uses the XMLCHART interpreter of the IGS is contained in program GRAPHICS_IGS_CE_TEST. A demo program which uses the chart control of SAP Gui is GRAPHICS_GUI_CE_DEMO.

Both ways use the same XML based data and customizing format. In the SDN Downloads section you can download the SAP Chart Designer. With this tool you are able to create the chart customizing interactively. It also contains a description of the data format.

Best regards

Matthias