Skip to Content
0
Former Member
Aug 03, 2006 at 09:07 PM

Transfer Routine

21 Views

I added some code to the Transfer Routine and it looks like the following:

===============================================

  • DATA: l_s_errorlog TYPE rssm_s_errorlog_int.

IF TRAN_STRUCTURE-/BIC/ZS_TIME CP 'YTD'.

RESULT = 'YTD'.

ELSEIF TRAN_STRUCTURE-/BIC/ZS_TIME CP 'Q'.

RESULT = 'QTD'.

ELSEIF TRAN_STRUCTURE-/BIC/ZS_TIME CP 'OPEN'.

RESULT = 'BEG'.

ELSEIF TRAN_STRUCTURE-/BIC/ZS_TIME CP 'YR'.

RESULT = 'FYR'.

ELSE.

RESULT = 'OTH'.

ENDIF.

  • returncode <> 0 means skip this record

RETURNCODE = 0.

  • abort <> 0 means skip whole data package !!!

ABORT = 0.

$$ end of routine - insert your code only before this line -

ENDFORM.

======================================================

The transfer routine is evaluating Infoobject ZS_TIME and using the result to populate ZK_TIMTYP.

I am getting an error from the editor but I can't see the problem.

ABAPers please help.

Saf.