Skip to Content
0
Former Member
Jan 04, 2008 at 09:12 PM

abap routine syntax error

170 Views

Hi experts,

I am new in the field and I am trying to copy a routine from an active transformation to my transformation and got error says "E:Field "QUOT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement." Below is the line in my routine:

DATA:

MONITOR_REC TYPE rsmonitor.

$$ begin of routine - insert your code only below this line -

... "insert your code here

*-- fill table "MONITOR" with values of structure "MONITOR_REC"

*- to make monitor entries

... "to cancel the update process

  • raise exception type CX_RSROUT_ABORT.

... "to skip a record

  • raise exception type CX_RSROUT_SKIP_RECORD.

... "to clear target fields

  • raise exception type CX_RSROUT_SKIP_VAL.

IF SOURCE_FIELDS-DOC_CATEG CA QUOT.

RESULT = 'Q'.

ELSE.

RESULT = 'O'.

ENDIF.

I looked the line " DATA: MONITOR_REC TYPE rsmonitor." and it is in gray ink but in the active transformation that I copied from, it is not grayed. Can you tell me what's wrong with the syntax and how I can fix it?

Your help is very much appreciated.

Sharon