Skip to Content
0
Former Member
Oct 12, 2006 at 03:04 PM

runtime error

42 Views

I got the following runtime error. please guide and help

tvs_tnew_page_alloc_failed

short dump has not being completely stored. its too big.

LOOP AT I_TMP_CAUFV.

SELECT SINGLE * INTO I_JEST FROM JEST

WHERE STAT IN ('I0002','I0042') AND OBJNR = I_TMP_CAUFV-OBJNR.

IF SY-SUBRC = 0.

APPEND I_TMP_CAUFV TO I_CAUFV<b>.-->error</b>

CLEAR I_TMP_CAUFV.

ENDIF.

ENDLOOP.

IF NOT I_CAUFV[] IS INITIAL.

SELECT * FROM afko INTO TABLE I_afko FOR ALL ENTRIES IN I_CAUFV

WHERE aufnr = I_CAUFV-AUFNR.

SELECT * FROM MARA INTO TABLE I_MARA FOR ALL ENTRIES IN I_CAUFV

WHERE MATNR = I_CAUFV-PLNBEZ.

SELECT * FROM AFPO INTO TABLE I_AFPO FOR ALL ENTRIES IN I_CAUFV

WHERE AUFNR = I_CAUFV-AUFNR.

LOOP AT I_CAUFV.

READ TABLE I_AFPO WITH KEY AUFNR = I_CAUFV-AUFNR.

IF SY-SUBRC = 0.

DATA_TAB_TEMP-AUFNR = I_CAUFV-AUFNR.

DATA_TAB_TEMP-GAMNG = I_CAUFV-GAMNG.

DATA_TAB_TEMP-GLTRP = I_CAUFV-GLTRP.

DATA_TAB_TEMP-PLNBEZ = I_CAUFV-PLNBEZ.

DATA_TAB_TEMP-CALQTY = DATA_TAB_TEMP-CALQTY + I_CAUFV-GAMNG -

I_AFPO-WEMNG.

DATA_TAB_TEMP-OBJNR = I_CAUFV-OBJNR.

ENDIF.

READ TABLE I_MARA WITH KEY MATNR = I_CAUFV-PLNBEZ.

IF SY-SUBRC = 0.

DATA_TAB_TEMP-WRKST = I_MARA-WRKST.

ENDIF.

READ TABLE I_afko WITH KEY AUFNR = I_CAUFV-AUFNR.

if sy-subrc = 0.

DATA_TAB_TEMP-LEAD_AUFNR = i_caufv-lead_aufnr.

data_tab_temp-maufnr = i_caufv-maufnr.

endif.

  • I_CAUFV-LEAD_AUFNR = I_ORDNA-LEAD_AUFNR.

  • I_CAUFV-MAUFNR = I_ORDNA-MAUFNR.

  • MOVE I_CAUFV-LEAD_AUFNR TO DATA_TAB_TEMP-LEAD_AUFNR.

  • MOVE I_CAUFV-MAUFNR TO DATA_TAB_TEMP-MAUFNR.

MOVE-CORRESPONDING DATA_TAB_TEMP TO DATA_TAB.

APPEND DATA_TAB.

CLEAR DATA_TAB.

CLEAR CALQTY.

ENDLOOP.

ENDIF.