Skip to Content
0
Former Member
Jun 01, 2006 at 01:57 PM

ABAP Start Routine

22 Views

Hello,

I am writing a Start Routine in my update rules from an ODS into another ODS. My start routine is basically just restricting some data from being updated into my data target. I am restricting based on 0VYPTE = 20. That is, if a records has 0VTYPE = 20 I am deleting it from the data_package. If I debug through the program, it works correctly with one record but when I throw in about 120K records it doesn't work. Can someone please have a look and tell me what is wrong here?

LOOP AT DATA_PACKAGE.

<b>IF DATA_PACKAGE-VTYPE NE 10.</b>

DELETE DATA_PACKAGE.

CONTINUE.

ELSE.

IF DATA_PACKAGE-/BIC/CASES NE 'CS'.

PERFORM load_mrscube_tables USING DATA_PACKAGE-SOURSYSTEM.

PERFORM BASEUNIT_CONVERT tables

MONITOR

using DATA_PACKAGE-MATERIAL

DATA_PACKAGE-SOURSYSTEM

DATA_PACKAGE-/BIC/CASES

'CS'

DATA_PACKAGE-/BIC/CASES_REV

changing

quant_out.

EXIT.

EXIT.

modify DATA_PACKAGE.

ENDIF.

ENDIF.

ENDLOOP.