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

Graphs & Charts

Former Member
0 Likes
734

hi friends,

can we prepare the Bar charts or Graphs dynamically?

regards

srinivas

6 REPLIES 6
Read only

ak_upadhyay
Contributor
0 Likes
704

Hi,

Check this....


REPORT  ZMATRIX.

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 = 'Utility Expenses in US$.'

TABLES

DATA = ITAB_DATA

OPTS = ITAB_OPTIONS

EXCEPTIONS

OTHERS = 1.


Reward points if useful....

Regards

AK

Read only

0 Likes
704

thank you very much

but can we save this Graph as Bmp file or

can we insert this in script or smart form

regards

srinivas

Read only

Former Member
0 Likes
704

Hi,

Check the following link:

http://www.sap-img.com/abap/creating-chart-in-abap.htm

Regards,

Bhaskar

Read only

Former Member
0 Likes
704

hi for the dynamic graphs look at this ...

http://help.sap.com/saphelp_nw04s/helpdata/en/f5/248841a79f1609e10000000a155106/frameset.htm

/people/community.user/blog/2007/01/24/json-widgets-and-a-simple-graph

regards,

venkat.

Read only

0 Likes
704

thank you very much

but can we save this Graph as Bmp file or

can we insert this in script or smart form

regards

srinivas

Read only

Former Member
0 Likes
704

hi for the dynamic graphs look at this ...

http://help.sap.com/saphelp_nw04s/helpdata/en/f5/248841a79f1609e10000000a155106/frameset.htm

/people/community.user/blog/2007/01/24/json-widgets-and-a-simple-graph

regards,

venkat.