cancel
Showing results for 
Search instead for 
Did you mean: 

BW Routine 3.x migration

03-30-2017 5:39 AM
mario_panzenboeck Contributor
688 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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.




0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

FCI
Active Contributor

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

Answers (0)