Skip to Content
author's profile photo Former Member
Former Member

Exepections Not caught or declared in the RAISING clause

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2012 at 01:18 PM
    -1

    Hi guys

    I managed to clear the warnings by removing the else statement and my data load correctly in cube but i still cannot get characteristics values for

    Ethnic origin

    challenge indicator

    datebirth

    to show in the bex query rows key figures and everything else is A-okay.

    Help

    shingi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.