Skip to Content
0
Former Member
Mar 04, 2008 at 03:48 PM

Error when using a Start Routine with a Virtual Provider

56 Views

We have recently upgraded to BI 7.0. We are just starting to develop. We are on Patch 15.

My start routine seems straight forward and does work fine for a while but for seemingly no reason, I start to get "Assert Condition was violated" when I run the query.

Below is my routine and where I placed my routine in the ABAP code. (under the method "start routine" statement).

METHOD start_routine.

*=== Segments ===

FIELD-SYMBOLS:

<SOURCE_FIELDS> TYPE tys_SC_1.

DATA:

MONITOR_REC TYPE rstmonitor.

$$ begin of routine - insert your code only below this line -

... "insert your code here

Delete SOURCE_PACKAGE where RNR(5) <> 'REQU_'.

Delete SOURCE_PACKAGE where LNR <> ' 1 '.

I ask about the placement because There is another Method statement that seems to be for Direct Access.

METHOD inverse_start_routine.

$$ begin of inverse routine - insert your code only below this line-

... "insert your code here

When I try to place my start routine here, I get the following syntax error.

Field "SOURCE_PACKAGE" is unknown.

I have followed the "How to . . . Routines within Transformations" whitre paper and it really doesn't address virtual providers. Most of the notes that I have seen for ASSERT CONDITION are prior to Patch 15.

Is there something different that I need to do with my start routine because I am using a Virtual Provider?

Thanks