Learn ABAP (9)

Do you know that SAP has the capability to make graph above in 3D and 2D ? Try yourself this code below :

Report zgraph_test.

Types :
Begin of ty_data,
myvar type c,
q1 type i,
q2 type i,
End of ty_data.

Types :
Begin of ty_options,
options(50) type c,
End of ty_options.

DATA:

it_data TYPE STANDARD TABLE of ty_data,

wa_data TYPE ty_data.

DATA:

it_options TYPE STANDARD TABLE of ty_options,

wa_options TYPE ty_options.

wa_data-myvar = 'Y1',

wa_data-q1 = 30.

wa_data-q2 = 50.

append wa_data to it_data.

wa_options-options = 'P3TYPE = TO'.

append wa_options to it_options.

call function 'graph_matrix_3D'

exporting

col1 = 'x1'

col2 = 'x2'

tables

data = it_data

opts = it_options

exceptions

others = 1

All SAP products are trademark of SAP AG. This blog is not affiliated with nor endorsed by SAP AG.