Skip to Content
author's profile photo Former Member
Former Member

Transfer Routine

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.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 09:11 PM

    You are getting a 'syntax error' when checking/activating it?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      While within the editor, do a syntax check to see if it is ok (Menu option routine-->check). The complete set of start/transfer routine makes up one program, so it could be that the error is in some other routine resulting in the message you see(in which case you need to open each routine and do individual checks) .