‎2010 Jun 08 8:01 AM
Dear all,
I am doing the check printing, here i want to print, one record in one page only.
that is in my internal table have 5 records. i need to print it one record in one page with all header and fotter,
and second record in second page with all header and foter.
and 3rd also etc.
how should i do...
plz help me
Regards
margani
‎2010 Jun 08 9:10 AM
Hi Buddy,
For this scenario u have to 2 options .
1. u have to create 5 pages for all record with the same structure and u dont have design all pages just design a single page and copy all with same name and put condition on all pages for record .
2. u just create a single page and and insert a secondry window for record and in loop put a condtion for internal table indexing by that when condition will fatch new record it will insert into a new page
please dont forget to do auto page increment option ........
Thanks.
‎2010 Jun 08 11:04 AM
You may achieve this in a single page in main window itself.
1. On creating a smart form a default page and a main window will be available by default.
2. Create separate windows for header and footer in the page.
3. Right click on the main window node>create>flow logic>loop. Give the internal table name and work area.
4. Right click on the LOOP node>create>table. Go to the DATA tab and tick off the check box for INTERNAL TABLE as you are already looping on your internal table using LOOP node. Create the table headings and the main area. I assume you know this part.
5. Again right click on LOOP node>create>flow logic>command. Tick the checkbox 'Go to Next Page'.
6. Please ensure that COMMAND node is placed after TABLE node (both inside the LOOP node).
Now every page will show only one line from the internal table alongwith header and footer.
Regards,
Jayesh