Skip to Content
0
May 18, 2020 at 01:01 PM

Short dump BDC_BADDATA

97 Views Last edit May 18, 2020 at 01:01 PM 3 rev

Does anyone know why this code leads to a dump?

DATA:
  lv_p TYPE p LENGTH 10 DECIMALS 5.

TRY.
    lv_p = `7588408675670886700030`.
  CATCH cx_root.
    IF 1 = 2.
      CLEAR lv_p. " without short dump
    ENDIF.
ENDTRY.

" lv_p is initial
DATA(lv_is_initial) = COND #( WHEN lv_p IS INITIAL THEN abap_true ).

"  Packed field contains incorrect BCD format.
"  BDC_BADDATA
lv_p = lv_p + 1.