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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.