Quantcast
Viewing all articles
Browse latest Browse all 3189

Re: Generation of Time dependent records with one source-field

Hi all

 

We have done the sorting in the start routine.

 

The endroutine also works fine, except when having duplicates in field MDRKD.

You can see the duplicates in the screen above.

 

We don't need these two lines at all. How can we get rid off these lines? What is the proper

ABAP coding?

 

Thanks

T.

 

  IF RESULT_PACKAGE[] IS NOT INITIAL.

    

      LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.

 

        IF WA_TARGET-FC_VTREF IS NOT INITIAL.

          IF WA_TARGET-FC_VTREF = <RESULT_FIELDS>-FC_VTREF
            AND WA_TARGET-DATEFROM < <RESULT_FIELDS>-DATEFROM.
            WA_TARGET-DATETO = <RESULT_FIELDS>-DATEFROM - 1.
          ELSE.
            WA_TARGET-DATETO = '99991231'.
          ENDIF.

 

          APPEND WA_TARGET TO ITAB_TARGET.
          CLEAR: <result_fields>.


        ENDIF.
        WA_TARGET = <RESULT_FIELDS>.

 

      ENDLOOP.
      REFRESH RESULT_PACKAGE.
      RESULT_PACKAGE[] = ITAB_TARGET[].
    ENDIF.


Viewing all articles
Browse latest Browse all 3189

Trending Articles



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