Skip to Content
0
Former Member
Jun 18, 2012 at 11:41 AM

Displaying 3D graphic in abap

110 Views

Hi Everyone please help me out as i am getting following error in my code for 3D image display.

ERROR: Table $OPTS, Line 37, Row5, value: 'Quarter4' E029: you must use 'SET' to set the command.

PROGRAM:

*&---------------------------------------------------------------------*

*& Report ZSANJIB_3D_PROGRAM

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

REPORT zsanjib_3d_program.

* structure declaration for performance management.

TYPES: BEGIN OF ty_performance,

company(15) TYPE c,

q1 TYPE i,

q2 TYPE i,

q3 TYPE i,

q4 TYPE i,

END OF ty_performance.

* structure declaration for optional table

TYPES: BEGIN OF ty_opttable,

options(30) TYPE c,

END OF ty_opttable.

DATA: it_performance TYPE STANDARD TABLE OF ty_performance,

wa_performance TYPE ty_performance,

it_opttable TYPE STANDARD TABLE OF ty_opttable,

wa_opttable TYPE ty_opttable.

*initialization event

INITIALIZATION.

*start of selection event

START-OF-SELECTION.

*clearing the work areas

CLEAR wa_performance.

CLEAR wa_opttable.

*appending values into the performance internal table

wa_performance-company = 'Company A'.

wa_performance-q1 = 78.

wa_performance-q2 = 68.

wa_performance-q3 = 72.

wa_performance-q4 = 52.

APPEND wa_performance TO it_performance.

wa_performance-company = 'Company B'.

wa_performance-q1 = 78.

wa_performance-q2 = 68.

wa_performance-q3 = 72.

wa_performance-q4 = 52.

APPEND wa_performance TO it_performance.

wa_performance-company = 'Company C'.

wa_performance-q1 = 78.

wa_performance-q2 = 68.

wa_performance-q3 = 72.

wa_performance-q4 = 52.

APPEND wa_performance TO it_performance.

wa_opttable-options = 'p3type = TO'.

APPEND wa_opttable TO it_opttable.

wa_opttable-options = 'P2TYPE = VB'.

APPEND wa_opttable TO it_opttable.

wa_opttable-options = 'TISIZE = 1'.

APPEND wa_opttable TO it_opttable.

* call the graph function module.

CALL FUNCTION 'GRAPH_MATRIX_3D'

EXPORTING

* AUTO_CMD_1 = ' '

* AUTO_CMD_2 = ' '

COL1 = 'Quarter1 '

COL2 = 'Quarter2 '

COL3 = 'Quarter3 '

COL4 = 'Quarter4 '

* COL5 = ' '

* COL6 = ' '

DIM1 = 'In percentage% '

* DIM2 = ' '

* INBUF = ' '

* INFORM = ' '

* MAIL_ALLOW = ' '

* PWDID = ' '

SET_FOCUS = 'x'

* SMFONT = ' '

* SO_CONTENTS = ' '

* SO_RECEIVER = ' '

* SO_SEND = ' '

* SO_TITLE = ' '

* STAT = ' '

* SUPER = ' '

* TIMER = ' '

TITL = 'COMAPNY PERFORMANCE '

* VALT = ' '

* WDID = ' '

* WINID = ' '

* WINPOS = ' '

* WINSZX = '50'

* WINSZY = '50'

* X_OPT = ' '

* NOTIFY = ' '

* IMPORTING

* B_KEY =

* B_TYP =

* CUA_ID =

* MOD_COL =

* MOD_ROW =

* MOD_VAL =

* M_TYP =

* RBUFF =

* RWNID =

TABLES

data = it_performance

opts = it_opttable.

.