Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

new page command not working

Former Member
0 Likes
436

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'.

2 REPLIES 2
Read only

Former Member
0 Likes
418

do you have the top-of-page event. If so, then it will call this.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
418

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.