on 07-11-2011 7:06 AM
Hi ABAPers,
Need help,
I need to trigger a explicit page break at new storage type in my smartform output.
Example:
storage type desc
1 abc
1 bbc
1 mcc
2 mbv
2 nhb
2 mnh
3 mbq
4 mnp
4 mko.
Output:
Page 1 :
storage type desc
1 abc
1 bbc
1 mcc
Page 2:
2 mbv
2 nhb
Page 3:
3 mbq
Page 4:
4 mnp
4 mko.
I am using table in main window.
I have set event on sort begin for table giving the storage type and within event i havegiven command and new page as current page.
But I am getting balnk output in preview.
Regards,
Dep
Dear All,
I am sorry the code is working, BUT there is a small problem..
The grand total and addiotnal info is getting printed on new page. But I want it to be printed page where the last line item is printed.
Regards,
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Shwetha for your reply,
I've used below code(program lines ) in main area to resolve my issue:
DESCRIBE TABLE IT_ITEM LINES nols. " 'nols' total no.of lines in the internal table
lines = lines + 1.
Event as : " Event on sort End".
go to new page : same page. " if page1 go new page page1
And in condition node gave condition as:
line NE nols.
Regards,
Dep
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.