Quantcast
Channel: SCN: Message List - Data Warehousing
Viewing all articles
Browse latest Browse all 3366

Re: Meaning of Returncode = 1 ?

$
0
0

Hello Sander,

 

thanks a lot for your replay.

 

This is exactly what I am gonna do, I will write the concept again according to 7.4 concept. I will not migrate the routine for the same reasons you stated, not easy and hard to maintain. For this reason I asked about replacing the line of returncode = 1 mentioned in the old code, how i could replace it?

I wrote it as follow,

 



*$*$ begin of routine - insert your code only below this line


* populate Cost element into Result field


     RESULT = COMM_STRUCTURE-COSTELMNT.


* Do not populate cost elements with the following values into target


      IF   SOURCE_FIELDS-COSTELMNT = '0000699999' OR
      SOURCE_FIELDS
-COSTELMNT = '0000560000'.


            RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.

 

      else.


      RESULT = SOURCE_FIELDS-COSTELMNT.


ist that correct,


I replaced returncode = 1 with raise exception type cx_rsrout_skip_record

 

warm regards,

 

Sherif



Viewing all articles
Browse latest Browse all 3366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>