cancel
Showing results for 
Search instead for 
Did you mean: 

Raising Exception

Former Member
0 Kudos

Hello All,

I need to convert the following lines of code into BI. I need to raise exception CX_RSROUT_SKIP_RECORD.

Could your please tell me how to substitute the former with RETURNCODE =0.

*The following code updates result if recordmode is afterimage else it

*skips the record

*

*

If SOURCE_FIELDS-RECORDMODE = ''.

RESULT = SOURCE_FIELDS - /BIC/ZCUSTOMER.

  • The result is updated since returncode= 0

*returncode = 0.

else.

  • returncode <> 0.

*RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD (for key fields) for BI

RAISING EXCEPTION TYPE cx_rsrout_skip_record. *** how to use this***

endif.

Thanks

Raj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Resolved.

The following is the code

If SOURCE_FIELDS-RECORDMODE = ''.

RESULT = SOURCE_FIELDS-/BIC/ZCUSTOMER.

  • The result is updated since returncode= 0

*returncode = 0.

else.

  • returncode <> 0.

*RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD (for key fields) for BI

RAISE EXCEPTION TYPE cx_rsrout_skip_record. " This will skip the record

endif.

Thanks

Raj