on 02-23-2009 6:05 AM
Hello Friends,
I m using two loops to print the header and item data , now i want to invoke page break when both the loops has printed 6 records.
if both the loops contains more than 6 records thn the reamining records should be printed in the nextpage.
Also secifiy at which point i should check the condition.
pls let me knw hos it is possibe??
Regards,
Sunny
hi sunny,
once one record is printed write code lines to increase the counter after that check whether dat counter is greater than 6
once the counter is increased till 6 and den after both loops put a comand node it will go to commnad where in give the next page and on condition dat counter is greater than 6.
hope this helps
regards,
prashanti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
tnks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunny,
In the main window:
Declare these two field in the global definitions.
Create the command node in the conditions tab
give the ex sno = 6.
After than create the text node for the records
as per your requirement.
Create the program lines.
If sno = 6.
sno = 1.
next_page = next_page + 1.
endif.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please go through the below link,
http://help.sap.com/saphelp_nw70/helpdata/en/70/e17a37dec511d3b575006094192fe3/content.htm
Thank U,
Jay....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Using Program lines node in that loops you can increment one Counter Variable by1 after displaying every line item. When Counter value is Greater than 6 then Set a Flang Value to 1 which initial values is 0. Then Put a Command node by giving next Page with its condition FLAG = 1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.