Application Development and Automation 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: 
Read only

Function module to display the given numbers in graphics / chart.

Former Member
0 Likes
1,270

Hi all,

I was given a situation where if I give some number, those numbers shud be displayed in graphics or like a chart ( X & y axis chart). Is there any function modules for this? Pls help me.

Thanks in advance.

Vijaykumar.G

Hi all,

I was given a situation where if I give some number, those numbers shud be displayed in graphics or like a chart ( X & y axis chart). Is there any function modules for this? Pls help me.

Thanks in advance.

Vijaykumar.G

3 REPLIES 3
Read only

Former Member
0 Likes
722

Hi Vinay,

Check the standard program GFW_PROG_TUTORIAL

In SE38 you can give GFW* and check there are several examples for good understanding on BAR charts,pie charts etc.

If you want to display graph without using abap objects

check this program

GRBUSG_1 for 2-D

GRBUSG_2 for 3-D graph using GRAPH_2D function module

You can also check these function modules

GRAPH_2D

GRAPH_2D_MENUE

GRAPH_3D

GRAPH_BUSG_COLOR_SET

GRAPH_BUSG_MENU_SET

GRAPH_MATRIX

GRAPH_MATRIX_2D

GRAPH_MATRIX_3D

GRAPH_MATRIX_4D

STAT_GRAPH

Check the where used list for them, can get good examples.

Hope it helps.

Reward if useful.

Regards

Saumya

Read only

amit_khare
Active Contributor
0 Likes
722

Hi,

Welcome to SDN.

Check thsi link -

Regards,

Amit

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
722

You might want to try this function module.

[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