Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: CMOD User Exit Variable ABAP Logic Optimizing

$
0
0

Hi,

 

You can use the CONTINUE statement after a successful Read. Inside a LOOP it will terminate the current loop pass and continue with the next one.

 

Example:

    LOOP AT IT_TPCTR INTO WA_IT_TPCTR.
*Read - 1
      READ TABLE IT_STORES INTO WA_IT_STORES
         WITH KEY /BIC/ZSDXSEGMT = WA_IT_TPCTR-/BIC/ZSDXSEGMT.
      IF SY-SUBRC = 0.
        L_S_RANGE-LOW = WA_IT_TPCTR-PROFIT_CTR.
        INSERT L_S_RANGE INTO TABLE E_T_RANGE.

      CONTINUE. "<<<<<<<<<<<<<<<

      ENDIF.

*Read - 2

Etc.

 

Best regards,

Sander


Viewing all articles
Browse latest Browse all 3273

Trending Articles



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