Skip to Content
0
Former Member
Apr 06, 2011 at 03:11 PM

Problem with Start & End Routine BAdIs

688 Views

Hello!

I have a problem with Start & End Routine BAdIs

I created the Badi in Enhancement spot UJD_ROUTINE. I created filters Z_UJD_ROUTINE_START in Badi Implementation ZIM_AM_UJD_ROUTINE_START and Z_UJD_ROUTINE_END in Badi Implementation ZIM_AM_UJD_ROUTINE_END.

I wrote code In the Method RUNROUTINE of ZIM_AM_UJD_ROUTINE_START:

method IF_UJD_ROUTINE~RUNROUTINE.

data:

L_TEST type ZAM_TEST.

L_TEST-ZSET = 'X'.

modify ZAM_TEST from L_TEST.

endmethod. "IF_UJD_ROUTINE~RUNROUTINE

I have the transformation file:

*OPTIONS

FORMAT = DELIMITED

HEADER = YES

DELIMITER = TAB

AMOUNTDECIMALPOINT = .

SKIP = 0

SKIPIF =

VALIDATERECORDS=YES

CREDITNEGATIVE=NO

MAXREJECTCOUNT=

CONVERTAMOUNTWDIM=C_ACCT

ROUNDAMOUNT=

STARTROUTINE = Z_UJD_ROUTINE_START

ENDROUTINE = Z_UJD_ROUTINE_END

*MAPPING

C_ACCT=F_ACCT

FLOW=F_M1

IntCo=F_M2

C_M003=F_M3

C_M004=F_M4

C_M005=F_M5

C_Entity=F_Entity

TIME=F_TIME

Groups=*NEWCOL(NON_GROUP)

C_Category=*NEWCOL(ACTUAL)

C_DataTS=*NEWCOL(INPUT)

RptCurrency=*NEWCOL(LC)

*CONVERSION

FLOW = CONVERS_01.XLS!FLOW

IntCo = CONVERS_01.XLS!INTCO

C_M003 = CONVERS_01.XLS!M3

C_M004 = CONVERS_01.XLS!M4

C_M005 = CONVERS_01.XLS!M5

Amount = CONVERS_01.XLS!Amount

When I start Import package in DataManager with this transformation file, I get next messages:

"Start routine is called in convert"

"End routine is called in convert"

"Failed to parse transformation file"

"Application: LEGAL Package status: ERROR"

And table ZAM_TEST is empty.

PS

When I delete rows STARTROUTINE = Z_UJD_ROUTINE_START and ENDROUTINE = Z_UJD_ROUTINE_END in the transformation file, importing was successful.

Regards,

Maxim