on 2008 Sep 24 12:49 PM
Hi Experts,
i need to print some data in each page of the form exept the last page of my script . the data should be only in the main window be printed.
I heard that the &nextpage& variable and other counters like formpages , page doesn't give always the true value inside the main window.
Is this correct ? so can any body suggest how to do it ?.
It concers printing an internal tabel with articles /prices, so if it is not the last page : print some text.
Do i have to pass the total count of the internal table from abap to solve this problem?
Thanks.
&nextpage& doesn't work on the main window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this way
Create 2 Pages,(First , Last )
Assign First Pages's next page as First Page itself.
In Main Window of the First Page after field variable
use NEW-PAGE Last. So that it triggers Last page.
Ex:-
First page
Main Window
P1 &ITAB-ABCD&
/: NEW-PAGE Last
(where Last = last page with conditions)
Yes, &NEXTPAGE& NE 0 won't work in Main Window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if the window is other than main window then you can use
/: if &NEXTPAGE& ne 0
print your data.
/: endif
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For the last page the &nextpage& variable is 0.
So when you are printing the data you can use the condition
If &NEXTPAGE& NE 0.
Print data.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.