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

drawing 2d line chart problem, urgent please!!!

Former Member
0 Likes
1,517

Hello,

can anyone help me with the function GRAPH_MATRIX_2D please,

i couldn't draw a line graph with three data series, i mean with three lines in the graph.

i want to the chart to be drawn as line graph at the beginning, i shouldn't have to change the chart type later,

can anybody send me a sample code that does what i want.

i am expecting your answers,

thanks.

1 ACCEPTED SOLUTION
Read only

matthias_gemmel
Advisor
Advisor
0 Likes
1,428

Hi,

I would recommend not to use GRAPH_MATRIX_2D or the GFW and use the chart engine instead. Reports GRAPHICS_GUI_CE_DEMO and GRPAHICS_IGS_CE_TEST show examples of how to use the chart engine. With the Chart Designer (available in the Downloads - Web AS section in SDN) you can interactively define the chart customizing, e.g. for a line chart.

Best regards

Matthias

11 REPLIES 11
Read only

Former Member
0 Likes
1,428

Hi,

Check programs starts with GFW_DEMO_* and also check transaction GRAL, there will be many graph examples in this transaction.

Regards,

Satish

Read only

matthias_gemmel
Advisor
Advisor
0 Likes
1,429

Hi,

I would recommend not to use GRAPH_MATRIX_2D or the GFW and use the chart engine instead. Reports GRAPHICS_GUI_CE_DEMO and GRPAHICS_IGS_CE_TEST show examples of how to use the chart engine. With the Chart Designer (available in the Downloads - Web AS section in SDN) you can interactively define the chart customizing, e.g. for a line chart.

Best regards

Matthias

Read only

0 Likes
1,428

i understand but i should do it this way but i couldn't find any helpful examples,

can anyone help please?

Read only

0 Likes
1,428

Hi Ali

Please check the programs GRSTAT_1 and

GRSTAT_2, these are also giving line charts with three lines.

Regards

Ranganath

Read only

0 Likes
1,428

Hi,

have you checked the two reports Matthias mentioned?

After downloading the SAP Chart Designer the general procedure should look like: create your chart settings interactively using the designer. Save these settings as a local XML file. Use this XML in your ABAP application and additionally create a data XML at runtime (the format is described in the pdf of the SAP Chart Designer zip).

Regards, Kai

PS: Please don't use these very outdated function modules graph_matrix* / grstat* in new projects!

Read only

0 Likes
1,428

the graph matrix 2d is good for the usage area,

i couldn't manage to find any exapmles about what are the setting parameters of the function(infact abap editor gives them) and the values that can be send to function to make it draw 2d line graph so can you help me?

thanks.

Read only

0 Likes
1,428

Thanks for the answer, i am still working on it,

but there is an issue which i couldn't manage to solve,

my data is float just like in the example but i think the graph function draws the graph with 0.1 thicks so because my data is like 2.907, 2.950, 2.905 and so on, all data is shown between two grids and looks really small, can you imagine it? have you got any solution to it, is there any other function that draws the graph for smaller data ranges?

thanks.

Read only

0 Likes
1,428

Yes, the chart engine is able to handle this! Once again: don't use the outdated function modules for new projects.

Regards, Kai

Read only

0 Likes
1,428

You're right but this program will be used at the manufacturing part of the factory so operators will use it and believe em the most appropriate method is this if there isn't any functions that draws graph in gui environment, so please help me this way.

thanks again.

Read only

0 Likes
1,428

Hi,

as mentioned above report GRAPHICS_GUI_CE_DEMO shows an example of how to use the chart engine within the GUI.

Regards

Matthias

Read only

0 Likes
1,428

OK, but now i can draw the chart with stat_graph function, but i wonder something,

is it possible to write LCL(lower control limit) and UCL(upper control limit) next to the line (just left of the line)

can anyone help me?