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

Error while executing graph_matrix_3d error: E026, more/few values than defined in IMS

maksingh8
Explorer
0 Likes
808

I am getting the above error while try to create a graph_matrix_3D
I tried to search goggle but was not been able to find anything useful.

Here the piece of code I am using, can anyone pleas help:

REPORT  zmkv_grapgh_test1.

TYPESBEGIN OF ty_graph,

         lgort TYPE char10,

         menge TYPE i,

         menge1 TYPE i,

   END OF ty_graph.

TYPES : BEGIN OF ty_opttable,

         options(30) TYPE c,

   END OF ty_opttable.

DATA: gs_graph TYPE ty_graph,

       gt_graph TYPE TABLE OF ty_graph,

       gs_opttable TYPE ty_opttable,

       gt_opttable TYPE TABLE OF ty_opttable.

*appending values into the options internal table

gs_opttable-options = 'P3TYPE = TO'.

APPEND gs_opttable TO gt_opttable.

gs_opttable-options = 'P2TYPE = VB'.

APPEND gs_opttable TO gt_opttable.

gs_opttable-options = 'TISIZE = 1'.

APPEND gs_opttable TO gt_opttable.

*appending values into the data internal table

gs_graph-lgort = 'SI01'.

gs_graph-menge = 30.

gs_graph-menge1 = 31.

APPEND  gs_graph TO gt_graph.

gs_graph-lgort = 'SI07'.

gs_graph-menge = 20.

gs_graph-menge1 = 21.

APPEND  gs_graph TO gt_graph.

gs_graph-lgort = 'WD01'.

gs_graph-menge = 40.

gs_graph-menge1 = 41.

APPEND  gs_graph TO gt_graph.

CALL FUNCTION 'GRAPH_MATRIX_3D'

   EXPORTING

     col1  = 'LGORT'

     col2  = 'MENGE'

     col3  = 'MENGE1'

     titl  = 'Inventory Trend'

   TABLES

     data  = gt_graph

     opts  = gt_opttable

   EXCEPTIONS

     other = 1.

2 REPLIES 2
Read only

Former Member
0 Likes
652

Hi Mayank,

I am getting the same error. Were you able to resolve it.

Regards,

Niketa

Read only

former_member184158
Active Contributor
0 Likes
652

Hi,

could you refer to this blog and try to copy the code.

it should be worked, and try to adjust your code

using Graph_matrix_3d function module | SCN

Regards