Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP code help for 2004s

Hey All,

Could any one suggest a replacement code for the below 3.5 code in 2004s.

If Movetype = 101 or 102 I want to update the result else I dont want to update that field. I couldnt find raise exception for thid in 2004s. Any other way to do it.

IF COMM_STRUCTURE-MOVETYPE = '101' or COMM_STRUCTURE-MOVETYPE = '102'.

RESULT = 'F'.

ELSE.

  • if the returncode is not equal zero, the result will not be updated

RETURNCODE = 1.

ENDIF.

in 2004s

IF SOURCE_FIELDS-MOVETYPE = '101' or SOURCE_FIELDS-MOVETYPE = '102'.

RESULT = 'F'.

ELSE

*-- 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.

ENDIF.

raise exception type CX_RSROUT_SKIP_VAL. looks to be close but it doesnt work. Can anyone explain what exactly the raise exception type CX_RSROUT_SKIP_VAL. does.

Thanks,

KK

Former Member
Not what you were looking for? View more on this topic or Ask a question