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

Re: ABAP LOGIC

$
0
0

itab_t[] = itab[].

sort itab_t by invno group.

* For Unique count you need to delete duplicates

delete adjacent duplicates from itab_t comparing invno group.

sort itab_t by invno.

 

loop at itab_t.

  at end of invno.

    move 'Y' to v_flg.

  endat.

  v_no = v_no + 1.

  if v_flg eq 'Y'.

     move itab_t-invno to itab1-invno.

     move v_no to itab1-count.

     append itab1.

     clear : v_flg, v_no.

  endif.

endloop.


Viewing all articles
Browse latest Browse all 8627

Trending Articles