Skip to Content
0

BW Routine 3.x migration

Mar 30, 2017 at 03:39 AM

46

avatar image

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.




10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Frédéric Cincet Mar 30, 2017 at 09:18 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded