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

Re: delete duplicate entries with condition

$
0
0

Hi Nitin,

The above code will work fine but you must have forgotten to add a check for LV_HSLVT and WA_TABLE1-HSLVT equal to zero.

 

loop at it_glt0 INTO wa_glt0.

clear : wa_glt0_1

    READ TABLE it_glt0 INTO wa_glt0_1 WITH KEY racct= wa_table-racct drcrk = 'H'.

      move wa_table1-hslvtto lv_hslvt.

      CLEAR wa_glt0_1.

     READ TABLE it_glt0 INTO wa_glt0_1 WITH KEY racct= wa_table-racct drcrk = 'S'.

    if wa_table1-hslvt  eq 0 and lv_hslvt eq 0.

     delete it_table WHERE racct= wa_table-racct.

     ENDIF.

ENDLOOP.


Now the code will work fine


Viewing all articles
Browse latest Browse all 8667

Trending Articles



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