on 03-24-2009 2:13 PM
Hi,
I have a requirement, wherein i need to trigger new page, if number items exceeds 10.
more than 10 items should not be displyed in one page.
Please let me know how to proceed this
Thanks&Regards
Rama Devi
Hi Rama Devi,
Create the loop in the main window after that create the program lines for the records to be printed per page.
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,
Declare a counter variable for number of records to be printed and increment it inside the loop using program lines node.
In your main window... under table / loop node create an alternate node.
In the conditions tab mention the counter variable and the comparision value as 10 in your case.
relationship will be <=
under the true node... display the data of the internal table using table ( table node under true node ).
under the false node... use command node for triggering page break and also use programlines node to initialize the counter variable.
regards
padma
Hi,
go through this wiki and you got the problem solved.
[Page break in smart forms|https://wiki.sdn.sap.com/wiki/x/dAHDB]
[Page break at a particular number of records|https://wiki.sdn.sap.com/wiki/x/j4EEBQ]
thanks
sarves
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
define a counter variable
then after the print of each item
-increase counter by one
-if counter greater or equal 10
-add a COMMAND in flow-logic (in this you can force a new-page)
-reset the counter
this will do
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
before the main window you have to create the program lines and in progam lines
in your main window loop ,
within this loop create progam lines
if lv_n = 10.
gv_flag = 'X'
clear lv_n.
else.
gv_flag = sapce
endif.
with in loop create COMMAND in command conditions put gv_flag = X.
and in general attributes --GOto new page = NEXT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use the COMMAND node in the Smartform.
Check this help: http://help.sap.com/saphelp_nw70/helpdata/EN/07/57f78ff5d111d4b65c006094192fe3/frameset.htm
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.