Skip to Content

BW Routine 3.x migration

Hello,

I am migrating 3.x data flows to 7.0 and I´m not sure if the error handling is correct. How do I know if returncode = 4 is equal to SKIP_RECORD of SKIP_VALUE in ABAP OO?

Many thanks in advance.

New code:

IF SOURCE_FIELDS-CONTRACT NE SPACE AND SOURCE_FIELDS-CONT_ITEM NE
     SPACE. 
      RESULT = SOURCE_FIELDS-FISCVARNT.
ELSE.RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.

ENDIF.

Original code:

if COMM_STRUCTURE-CONTRACT ne space and COMM_STRUCTURE-cont_item ne
  space. 
    RESULT = COMM_STRUCTURE-FISCVARNT.
    RETURNCODE = 0.
else.
    RETURNCODE = 4.
endif.




Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 30, 2017 at 09:18 AM

    Hi Mario,

    In this particular case (field routine on a characteristic), it would not make any difference. A SKIP_VALUE behaves the same than a SKIP_RECORD.

    Regards,

    Frederic

    Add comment
    10|10000 characters needed characters exceeded