Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Problem in at new

$
0
0

hi All ,

 

Can any one help on this ?

i have written below code .

 

clear wa_final.

sort it_final by INSTID_A TYPEID_A.

   LOOP AT it_final into wa_final.

  idx1 = sy-tabix.

  at new INSTID_A.

    clear : vcount.

      endat.

  vcount = vcount + 1.

 

    wa_final-Count = VCOUNT.

 

    IF vcount gt 1.

   clear : wa_final-INSTID_A, wa_final-TYPEID_A.

 

   ENDIF.

 

    modify it_final from wa_final index idx1.

 

ENDLOOP.

 

I'm getting Output as

 

 

INSTID_ATYPEID_AFile NamesFile Count
Test1FIPPArchiving message.DOC1


imagearchivingrippon.XLS2


Test.URL3

 

 

but my requirement is as shown below

 

 

INSTID_ATYPEID_AFile NamesFile Count
Test1FIPPArchiving message.DOC3


imagearchivingrippon.XLS


Test.url

 

It means when the maximum file count is 3 then it should display only 3 , it should not display 1 and 2.....

how can i do this by using at new ?

 

Regards

Smitha


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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