Skip to Content
0
Aug 24, 2009 at 01:16 PM

How to use AT END OF logic in ALV reports?

41 Views

Hi Experts!!

I have a requirement which is given below and the same should be the output of an alv report. I have all the data in one itab which has ields as matnr, sl.no, name and place. And I have the itab values as

MATNR SL.NO NAME PLACE

134 1 ABCD INDIA

134 2 XYZ US

134 3 QWERT GERMANY

256 4 FDGHS CNTRY1

256 5 GVHB CNTRY2

256 6 GHI CNTRY3

256 7 YGJN CNTRY4

256 8 ESEGVU CNTRY5

Now I need the alv output as the below:

Sl.No. Name Place

MATNR: 134

1 ABCD INDIA

2 XYZ US

3 QWERT GERMANY

MATNR: 256

5 FDGHS CNTRY1

6 GVHB CNTRY2

7 GHI CNTRY3

8 YGJN CNTRY4

9 ESEGVU CNTRY5

In normal classic report, I can achieve this by using AT END OF MATNR, and then printing. But how can i achieve the same in ALV report?

Kindly suggest me the normal ALV method, istead of OOPS concepts. I don't ant to consider OOPS, if this is possible by normal ALVs.

Thanks a lot in advance.

Regards,

Seenu