Skip to Content

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

RC1 for RSDRD_SEL_DELETION, but no error message

Hi,

i'm trying to delete selective data from an ODS using the function module "RSDRD_SEL_DELETION".

However this results in return code 1, with the error messages being emtpy (table messages).

Can anybody point me to what i'm doing wrong?

Thanks,

Daniel

form clear_ods.

DATA messages TYPE RS_T_MSG.
DATA L_S_RANGE TYPE RSDRD_S_RANGE.
DATA L_THX_SEL TYPE RSDRD_THX_SEL.
DATA L_SX_SEL TYPE RSDRD_SX_SEL.

CLEAR L_SX_SEL.
CLEAR L_S_RANGE.

L_SX_SEL-IOBJNM = 'ZLOADDATE'.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPTION = 'EQ'.
L_S_RANGE-LOW = '20081013'.

APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
INSERT L_SX_SEL INTO TABLE L_THX_SEL.


CALL FUNCTION 'RSDRD_SEL_DELETION'
  EXPORTING
    I_DATATARGET                  = 'DSO_LOG'
    I_THX_SEL                     = L_THX_SEL
  CHANGING
    C_T_MSG                       = messages
 EXCEPTIONS
   X_MESSAGE                     = 1
   INHERITED_ERROR               = 2
   INVALID_TYPE                  = 3
   OTHERS                        = 4
          .
IF SY-SUBRC <> 0.
 WRITE:/ 'Error while selective deleting ODS'.
ENDIF.

endform.

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