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

Line Graph with two Y-Axis

Former Member
0 Likes
982

Hi,

Is it possible to have 2 Y-Axis in a Graph?

Please let me know how to do that.

I'm using the following Function Module for the Line Graph:

CALL FUNCTION 'GFW_PRES_SHOW_MULT'
    EXPORTING
      parent            = cont1
      presentation_type = gfw_prestype_lines
      header            = l_header
      x_axis_title      = l_xaxis
      y_axis_title      = l_yaxis
    TABLES
      values            = grval1
      column_texts      = col1_texts
    EXCEPTIONS
      error_occurred    = 1.

Also, is it possible to remove / change the Square dots appearing in the line?

Any other Function module is useful?

Please do help.

Thanks & Regards,

Sowmya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
766

Hii...

There is a list of SAP demo programs by which you can display colourful and user-friendly graphs in SAP ABAP reports using either custom containers (object-oriented coding) or via the SAP Business Graphics GRAPH_MATRIX* functions.

Run this ABAP program RGRAPALL in SE38.. It will displays the list of all the SAP graphics demo programs.

You can refer these programs according to the requirement..


These are the List of SAP Graphics Demo Programs 

Report
Name
BARCBO01 	Demo Program: Bar Chart in Display Mode 
BARCBO02 	Demo Program: Bar Chart in Maintenance Mode 
BARCBO03 	Demo Program: Bar Chart in Maintenance Mode (Planning Board)
BARCBO04 	Demo Program: Mutual Updating of Bar Chart and Screen 
BARCOCX1 	Demonstration Program: Bar Chart Control
DEMO_GFW_PRES_SHOW 	Example for the Function Module GFW_PRES_SHOW 
DEMO_GFW_PRES_SHOW_MULT	Example for the Function Module GFW_PRES_SHOW_MULT
GFW_DEMO_HIER1 	GFW: Demonstration of a simple hierarchy graphic using SAP Tree 
GFW_DEMO_HIER2 	GFW: Demonstration of a hierarchy graphic (4 in splitter, Drag&Drop)
GFW_DEMO_HIER3 	GFW: Demonstration of a hierarchy/business graphic (Drag&Drop)
GFW_DEMO_PRES	GFW: Demonstration of GFW with visible data container 
GFW_DEMO_PRES1 	GFW: Demonstration of Business Graphics with GFW
GFW_PROG_BAR 	GFW: Programming example of a bar chart 
GFW_PROG_COLUMNS_AND_TIME_AXIS	GFW: Programming example of a column chart with time axis 
GFW_PROG_HISTOGRAM 	GFW: Programming example of a histogram chart 
GFW_PROG_LABELS	GFW: Programming example of same labels, long labels
GFW_PROG_MTA 	GFW: Programming example of a milestone-trend analysis
GFW_PROG_PIE 	GFW: Programming example of a pie chart 
GFW_PROG_POINT_WITH_LABEL	GFW: Programming example of a chart with a labelled point 
GFW_PROG_TIME_AXIS 	GFW: Programming example of a scatter chart with time axis
GFW_PROG_TUTORIAL	GFW: Programming example of a simple business graphic = GFW tutorial
GRBMAT_1 	Demo Program: Pushbutton Graphics 
GRBMAT_2 	Demo Program: Pushbutton Graphics / 2 
GRBUSG_1 	Demo Program: SAP Business Graphics 2D
GRBUSG_2 	Demo Program: SAP Business Graphics 3D
GRBUSG_3 	Demo Program: Business Graphics Sales Comparison
GRBUSG_4 	Demo Program : Presentation Graphics 2D u2013 3D u2013 4D 
GRCNETC1 	Demo Program: Starting Cluster Editor in Display Mode 
GRCNETC2 	Demo Program: Activation of the Cluster Editor (Enhanced Version) 
GRGANT_2 	Demo Program: Gannt Chart / 2 
GRHIER_1 	Demo Program: Hierarchy Graphics
GRHIER_2 	Demo Program: Hierarchy 
GRHPGL_1 	Demo Program: HPGL Display
GRPORT_0 	Portfolio Graphics Presentation 
GRSTAT_1 	Demo: Trigonometric Functions in SAP Statistical Graphics 
GRSTAT_2 	Demo: Representing Functions in SAP Statistical Graphics
HIER_BO1 	Demo Program: Hierarchy Graphics in Display Mode
HIER_BO2 	Demo Program: Hierarchy Graphics in Maintenance Mode
NETZOCX1 	Demonstration Program: Network Control
NETZOCX2 	Demonstration Program: Network Control with Callback Processing 
NETZ_BO1 	Demo Program: Network Graphics in Display Mode
NETZ_BO2 	Demo Program: Network Graphics in Maintenance Mode
NETZ_BO3 	Demo Program: Network Graphic in Maintenance Mode (Enhanced Version) 

Also.. U can go throught these links.

http://help.sap.com/saphelp_46c/helpdata/en/a1/d9883672d57c73e10000009b38f889/frameset.htm

http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCFESGRA2/BCFESGRA2.pdf

http://wiki.sdn.sap.com/wiki/display/ABAP/SplitGraph-Adjustablesize

This will be helpful.

Thanks,

Jhings

Hi,

Is it possible to have 2 Y-Axis in a Graph?

Please let me know how to do that.

I'm using the following Function Module for the Line Graph:

CALL FUNCTION 'GFW_PRES_SHOW_MULT'
    EXPORTING
      parent            = cont1
      presentation_type = gfw_prestype_lines
      header            = l_header
      x_axis_title      = l_xaxis
      y_axis_title      = l_yaxis
    TABLES
      values            = grval1
      column_texts      = col1_texts
    EXCEPTIONS
      error_occurred    = 1.

Also, is it possible to remove / change the Square dots appearing in the line?

Any other Function module is useful?

Please do help.

Thanks & Regards,

Sowmya

3 REPLIES 3
Read only

Former Member
0 Likes
767

Hii...

There is a list of SAP demo programs by which you can display colourful and user-friendly graphs in SAP ABAP reports using either custom containers (object-oriented coding) or via the SAP Business Graphics GRAPH_MATRIX* functions.

Run this ABAP program RGRAPALL in SE38.. It will displays the list of all the SAP graphics demo programs.

You can refer these programs according to the requirement..


These are the List of SAP Graphics Demo Programs 

Report
Name
BARCBO01 	Demo Program: Bar Chart in Display Mode 
BARCBO02 	Demo Program: Bar Chart in Maintenance Mode 
BARCBO03 	Demo Program: Bar Chart in Maintenance Mode (Planning Board)
BARCBO04 	Demo Program: Mutual Updating of Bar Chart and Screen 
BARCOCX1 	Demonstration Program: Bar Chart Control
DEMO_GFW_PRES_SHOW 	Example for the Function Module GFW_PRES_SHOW 
DEMO_GFW_PRES_SHOW_MULT	Example for the Function Module GFW_PRES_SHOW_MULT
GFW_DEMO_HIER1 	GFW: Demonstration of a simple hierarchy graphic using SAP Tree 
GFW_DEMO_HIER2 	GFW: Demonstration of a hierarchy graphic (4 in splitter, Drag&Drop)
GFW_DEMO_HIER3 	GFW: Demonstration of a hierarchy/business graphic (Drag&Drop)
GFW_DEMO_PRES	GFW: Demonstration of GFW with visible data container 
GFW_DEMO_PRES1 	GFW: Demonstration of Business Graphics with GFW
GFW_PROG_BAR 	GFW: Programming example of a bar chart 
GFW_PROG_COLUMNS_AND_TIME_AXIS	GFW: Programming example of a column chart with time axis 
GFW_PROG_HISTOGRAM 	GFW: Programming example of a histogram chart 
GFW_PROG_LABELS	GFW: Programming example of same labels, long labels
GFW_PROG_MTA 	GFW: Programming example of a milestone-trend analysis
GFW_PROG_PIE 	GFW: Programming example of a pie chart 
GFW_PROG_POINT_WITH_LABEL	GFW: Programming example of a chart with a labelled point 
GFW_PROG_TIME_AXIS 	GFW: Programming example of a scatter chart with time axis
GFW_PROG_TUTORIAL	GFW: Programming example of a simple business graphic = GFW tutorial
GRBMAT_1 	Demo Program: Pushbutton Graphics 
GRBMAT_2 	Demo Program: Pushbutton Graphics / 2 
GRBUSG_1 	Demo Program: SAP Business Graphics 2D
GRBUSG_2 	Demo Program: SAP Business Graphics 3D
GRBUSG_3 	Demo Program: Business Graphics Sales Comparison
GRBUSG_4 	Demo Program : Presentation Graphics 2D u2013 3D u2013 4D 
GRCNETC1 	Demo Program: Starting Cluster Editor in Display Mode 
GRCNETC2 	Demo Program: Activation of the Cluster Editor (Enhanced Version) 
GRGANT_2 	Demo Program: Gannt Chart / 2 
GRHIER_1 	Demo Program: Hierarchy Graphics
GRHIER_2 	Demo Program: Hierarchy 
GRHPGL_1 	Demo Program: HPGL Display
GRPORT_0 	Portfolio Graphics Presentation 
GRSTAT_1 	Demo: Trigonometric Functions in SAP Statistical Graphics 
GRSTAT_2 	Demo: Representing Functions in SAP Statistical Graphics
HIER_BO1 	Demo Program: Hierarchy Graphics in Display Mode
HIER_BO2 	Demo Program: Hierarchy Graphics in Maintenance Mode
NETZOCX1 	Demonstration Program: Network Control
NETZOCX2 	Demonstration Program: Network Control with Callback Processing 
NETZ_BO1 	Demo Program: Network Graphics in Display Mode
NETZ_BO2 	Demo Program: Network Graphics in Maintenance Mode
NETZ_BO3 	Demo Program: Network Graphic in Maintenance Mode (Enhanced Version) 

Also.. U can go throught these links.

http://help.sap.com/saphelp_46c/helpdata/en/a1/d9883672d57c73e10000009b38f889/frameset.htm

http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCFESGRA2/BCFESGRA2.pdf

http://wiki.sdn.sap.com/wiki/display/ABAP/SplitGraph-Adjustablesize

This will be helpful.

Thanks,

Jhings

Read only

0 Likes
766

Thanks Jhings.

Could you also pls help me in the below issue?

[|]

Read only

0 Likes
766

Hi..

Your Welcome.. And..

I will try to solve you issue..

Thanks,

Jhings.