on 04-23-2008 4:18 PM
Hello,
I am printing an order. But while printing an order I have
a header
main
a footer.
In main I have to print line items. Now while printing line items , my requirement is print ONLY ONE LINE ITEM PER PAGE.
For every page header and footer should repeat.
I am trying with AT NEW command but it is giving error. I am using table to loop on item data table.
Please tell me urgently how to do it.
Thanks,
Madhura
Assuming your Header and Footer are either in separate windows
or in the Table Header/Footer (smartform)
If you are using scripts
After printng the line item
call function 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
unopened = 1
unstarted = 2
others = 3.
If you are using smartforms.
Insert Command Node after printing line item
set Go to Page Pagename
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesnt matter about header and footer windows
Place the command node soon after the text elemts of your line items.
You will face one issue.
That the last page will come blank.
if you dont like this, you will have to count the number of items in the itab
then use a counter inside the loop counting each iteration
You will have to put a condtion on the command node
if the counter < itab length
first try the smiple command node
Hi,
If you want to continue using the table this is what you can do.
Im assuming u only use the table for printing line items
So
Create a loop above the table
Place the table inside the loop.
Uncheck the internal table check box inside the tables Data tab
and copy that looping information into the loop.
After the table, and inside the loop ..place the command node.
Also place whatever data in ther main section of the Table now in the header of the table
Edited by: Nehal Fonseca on Apr 23, 2008 6:35 PM
Edited by: Nehal Fonseca on Apr 23, 2008 6:36 PM
Hi,
First create a LOOP in main window. There you have to use your internal table. Inside the loop use a program lines and move only one record to another internal table. after that program lines use that internal table in TABLE. after table use a COMMAND node to call NEW-PAGE.
Hope this help.
Pranav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.