2008 Aug 21 2:55 PM
at end of cm.
new-page.
endat.
why the above logic is not working.
the page is not breaking when the condition satisfies.
seen at debugger, it just passes the 'new-page'.
at end of cm.
new-page.
endat.
why the above logic is not working.
the page is not breaking when the condition satisfies.
seen at debugger, it just passes the 'new-page'.
2008 Aug 21 3:00 PM
do you have the top-of-page event. If so, then it will call this.
2008 Aug 21 3:01 PM
hi ,
chech this code
DATA: it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
SELECT *
FROM vbap
INTO TABLE it_vbap.
SORT it_vbap BY vbeln posnr.
LOOP AT it_vbap.
WRITE:/ it_vbap-vbeln,
it_vbap-posnr.
AT new vbeln.
NEW-PAGE.
ENDAT.
ENDLOOP.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |