Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

How to delete the last record of a particular field

$
0
0

Hi Experts,

 

Please check the following screenshot:

 

Untitled.jpg

 

There are 100 records, for every invoice no., I want only the last record. How can I get it?

 

I have tried with on change of, but it removes 241 invoice.

 

 

 

 

LOOP AT gt_final INTO gs_final.

   ON CHANGE OF gs_final-belnr.

     clear gs_final-belnr.

    ENDON.

     MODIFY gt_final FROM gs_final INDEX sy-tabix.

  ENDLOOP.

 

The output comes as:

 

Untitled1.jpg

 

Please suggest the ways.

 

 

Regards

Mani


Viewing all articles
Browse latest Browse all 8914


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