hi all
In BKPF table according to usnam and blart i want to
make a count .
my input is only username and document type
in my output i get the username document type and coount
For eg. in my input if username = xyz and doc type = KR
the count in another column shud be displayed
cn u pls help me by saying how to do it..
thanks alot
i have pasted my coding here , the count part alone i dont
know how to do it...
count = '1'. loop at it_bkpf into wa_bkpf. wa_final-usnam = wa_bkpf-usnam. wa_final-blart = wa_bkpf-blart. read table it_t003t into wa_t003t with key blart = wa_bkpf-blart. if sy-subrc = 0 . wa_final-ltext = wa_t003t-ltext. endif. *if so_usnam = wa_bkpf-usnam and blart = wa_bkpf-blart.* *count = count + 1.* endif. append wa_final to it_final. delete adjacent duplicates from it_final comparing blart. endloop.