on 10-26-2009 5:50 AM
Hi All,
I want data to be printed on two pages , for that I have used the template for the two pages which is added under main window and under main window of page 1 I have used command and in that i called page 2 , but still nothing is coming on page 2. Please suggest where i am wrong? and solution?
Hi Abhinav,
Just a suggestion. Try checking in debug mode whether there is enough data to extend the output till second page.
Regards,
Swarna Munukoti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi dear,
Either you define New page 2 and then give command for the next page or just use command line go to new page.Next or second page will be displayed .
Regards ,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rami Reddy,
I have the format which will be dispalyed on pages. for that I have created two pages both the pages have same format and for both I have used template instead of table as I have fixed data and as such I donn't have any problem of moving of first page data on second . now inthe end of pirst page in main window I used command to call second page . but when I am tsting it it is calling second bage but not the data on second page. I hope I have explained my problem . if still u face any problem in understanding it plz ell me .
Now I m waiting for the solution.
Hello Abhinav,
It is for sure that u will be jumping to next page if u use command in the main window... Once next page processing starts the process flows from top window to bottom window in the order it is shown in the tree...So please keep break points in each window and check from where u are exiting out of the smartform.... Because once command is executed ur in next page but i think ur processing is not happening in the next page... so a blank page is displayed...
Thanks & Regards,
Shafivullah Mohammad
Hello Abhinav,
Can u please tell the windows that u have in first page and next page in the order u can see in the left hand side tree...
If u r unable to reach to template means ur processing is getting stuck before that so please put break points in windows preceding the template and check where exactly ur exiting... once u get that spot then some diagnosis will help u to resolve the issue...
Regards,
Shafivullah Mohammad
Yes Abhinav,
I got the point that u can switch to next page but because of some reason u r exiting the second page....but without seeing SMARTFORM no one can tell y u r exiting... it might be because of ur logical error or window resizing or it may be anything... so first u need to explore where it is exiting and then y it is exiting...
Regards,
Shafivullah Mohammad
Hello Abhinav,
Just check if this link helps you in anyway:
http://wiki.sdn.sap.com/wiki/display/ABAP/Mainwindowinpage2
Regards,
Swarna Munukoti
hi Abhinav,
As per my knowledge blank page is displaying because data is sufficient for first page only and you are forcebly triggering new page command. that's why you are getting blank page in second page.
Put the conditions in the command window like
When it is last page it should not trigger command(new page command) like ( if sfsy-page ne sfsy-formpages at that time only it should trigger ).
I hope it will work.
Regards
Rami Reddy
Hi,
For page1, in the output options, give the next page as second page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use table instead of a template. If you use a table in the mainwindow the data will automatically continue to the next page if the first page is filled and still the internal table used in the table has more data to display.
FYI... Only table will grow and not the template..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.