Skip to Content
0
Former Member
Nov 20, 2012 at 10:53 AM

Exepections Not caught or declared in the RAISING clause

2023 Views

Hi Experts

I have jus coded some transformations for 0PA_C01 cube to populate the following infoobjects:

  • Ethnic_Orign
  • Challenge indicator
  • dateofbirth

They where showing not assigned value in a BEx Query

I used the code below

METHODS compute_0DATEBIRTH

IMPORTING
request type rsrequest
datapackid type rsdatapid
SOURCE_FIELDS type _ty_s_SC_1

EXPORTING
RESULT type _ty_s_TG_1-DATEBIRTH
monitor type rstr_ty_t_monitor

RAISING
cx_rsrout_abort
cx_rsrout_skip_record
cx_rsrout_skip_val.

IF G_RECORD_NO <> RECORD_NO.

G_RECORD_NO = RECORD_NO.


RESULT = Person_MD-DATEBIRTH.


ELSE.

MONITOR_REC-MSGID ='ZMESG'.

MONITOR_REC-MSGTY ='E'.
MONITOR_REC-MSGNO ='001'.
MONITOR_REC-MSGV1 = 'ERROR D/C INDICATOR'.
MONITOR_REC-MSGV2 = 'SOURCE_FIELDS_GBDAT
NITOR_REC-MSGV3 = 'SOURCE_FIELDS_GBDAT
EXCEPTION TYPE CX_RSROUT_ABORT.

ENDIF.

The code checks outI !

Now when i load the target i get the following WARNINGS : Exception in sub rules

1. CX_STATIC_CHECK is niether caught no declared in the RAISING caluse

2. CX_RSTRAN_ERROR_WITH_MESSAGE is nither caught no declared

3. CX_RSTRAN_ERROR_INPUT_INVALID is nither caught no declared

4. CX_RSTRAN_ERROR_CANCELLED is nither caught no declared

5. CX_RSTRAN_DISPLAY_ONLYis nither caught no declared

6. CX_RS_NOT_ FOUND is nither caught no declared

MY QUESTION: ANT I DEAS HOW I CAN CLEAR THE WARNINGS BY MODIFYING MY CODE.

Thanks in advance

Paul