on 11-02-2008 10:54 AM
Hi,
I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...
Please let me know the exact steps how to use the COMMAND or any other options to acheive this.
Thanks!
Edited by: sap123 on Nov 2, 2008 11:55 AM
hi,
create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.
now inbetween the loop of ut table or templet, crete program lines and write the code as below.
data : lv_lines type i.
describe table i_vbak lines lv_lines.
clear flag.
if sy-tabix LT lv_lines.
flag = 'X'.
endif.
remember that these program lines must be after command...
Try this,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While writing the records in the output, write new-page command after the variables of the records, where you are writing those in the output like.
<P1> < All the variables of the output>
/: NEW_PAGE
Hope this will give you some idea,
Regards.
Aswini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See this just few hours back thread on same topic.
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.