Issue related to next page in smartform
Hi expert,
M working on a smartform..i have used next page window in that with condition that if in the first page entries are more that '6' then it must trigger next page to show rest of entries..my code is.
DESCRIBE TABLE GT_STRUCT LINES LINE.
*BREAK-POINT.
IF LINE > 6.
NEXTPAGE = 'NEXT'.
ENDIF.
but next page is not working at all..can u plz tell some points that i should take care off before using next page..
Regards,
Raman
>
raman sharma wrote:
> yaa suhas this code is written in program lines in a seprate window
I think this code should be there inside the "LOOP" or "TABLE" node in which you are printing the lines.
You want to print only 6 lines per page & after 6 lines you want a Page-break. Is it correct?
Then you can have a "PROGRAM LINE" node or in the "Calculations" tab of your "LOOP" or "TABLE" node you can have a variable which you can increment:
V_CNT = V_CNT + 1.
And then create a "COMMAND" node in whichyou give a "Goto new Page" trigger with the condition:
V_CNT > 6.
BR,
Suhas
Similar Messages
-
How to Print next Page in smartform ?
Hello ,
I want to print next page in smartform.
The situation is :-
I am passing an internal table containing list of personal numbers.
I have to print their details . Every candidate's detail should be printed on a new page .
I have designed the whole form , but I am not print their details on a New Page.
Please guide.
Thanks in Advance.Hi, Nikita.
Please Have a Look the following Link
[MODERATOR MESSAGE: SapScript/Smartform questions go in FORM PRINTING forum|/thread/1360534 [original link is broken];
So, Please Post Questions Regarding SapScript and Smartform in FORM PRINTING.
1. First of all you need to set a Flag at the end of every Personal Number.
2. Than Right Click on the object Like Main Window
--> Create --> Flow Logic --> Command
3. From First Tab of Command General Attributes Check the Check Box Go to New Page and Select Your Page
4. In the Conditions Tab Give you Flag Condition.
Hope will help you to solve out your problem,
Please Reply if any Issue,
Best Regards,
Faisal -
How to Branch to next page in Smartforms
Hi all,
In Smartform, i want to go to next page when all the records in the main window is displayed. For this I did Following thing,
1) created command node, did the neceeasry things like go to next page ...condtions given.
I did this in main area of Page 1.
2) In Attributes of First page i specified next page as page 2.
error- No output Window defined....although i defined Secondary Window with text.
RegardsI'm currently able to branch out to next page in smartforms but the data that is being displayed is duplicated
Ex. Page 1
data1
data2
PAGE 2
data1
data2
data3
PAGE 3
data1
data2
data4
Can anyone help/ provide advice? -
Header Area of Table is not printing on Next Page in SMARTFORM
Hi All,
I am facing one problem while Developing a smartform for Delivery.
I want the same data to be copied to the Next page which is coming on first page. I copied the Main window to Next page with all the details but the Header of the Table is not printing on the Next(Second) page.
Please help me out regarding this...
Thanks in advance for your help....
Thanks & Regards,
DigamberHi,
If you are talking about the table (which you created in the main window) and you want the header of the table to be printed on the next page. Is it because of overflowing that's why its printed to the next page?
If yes, the header cannot be printout out.
Just for your information. If you want a window in the first page to be copied to all subsequence pages, set the window type to be copies window.
Hope it helps. -
Data printed twice on the next page in smartform
Hi all,
I ahve created a smartform where I print the header details at the start and then below that details for all line items for a particular document.
so i have data ;ike :
Header data :
field 1 : field 2:
Field3 : field4:
field5: field6:
Item data :
field1 field2 field3 field4 --> Item 1
field1 field2 field3 field4 -->Item 2
field 1 field2 field3 field4 -->Item3
For the Header data,I use a template in a secondary window.
However for the item data,i use a table in MAIN window (As i know the no of records only at runtime).Also another reason for usng table would be that I dont need the header on each flloowing page but only the Line item details on the following pages.
Now i have created a second page with only the MAIN window from the First page as I need only the remaining line item details to be continued/printed on the following pages.I have actually copied the MIAN WINDOW from the first page to the second page adjusting only the uppe rand left margin.
However now when i see the rpint preview.the 1st page data,is printed corrrectly.however on the 2nd page,the 1st record is printed twice.
Can anyone explan why is this happening?
Thanks!Thanks for the replies.
@Meghanandan,
I dont want to set any command for going to next page as I dont have any condition to go ot next page.Im setting the width of the first page main window to print sufficient data.
@satyajit
I have the text elements under the MAIN AREA.Cna you pls elborate which Points i need to check undre the table node which might have been unnnecesssarily checked?
Thanks again for your time. -
Continuation of line item data to next page in SmartForm
Hi,
Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
Please try to send ASAP.You can print total by reading page numbers.
Ex: IF <current page> EQ < next page number>
Print total.
ENDIF
Regards,
Sairam -
Going to next page in smartform
Dear friends,
I need ur help solving a problem in smartform.
I need to add a new page and the first page should goto the next page (page2) on a condition.
1. I created a new page (page2)
2. In first page (in PAGE1 properties) I assigned PAGE2 as next page.
3. At the end of MAIN in first PAGE1 I inserted a COMMAND where as next page
I mentioned PAGE2.
4. In second page (in PAGE2 properties) I assigned PAGE2 as next page.
But this is not working and the command is not routing the first page to the second one. Any suggestions????Dear Anji,
First of all Congratulations ! I see that u are the top contributor for quite some. Keep up the good work.
Generally when the MAiN window info exceeds more than a Page then the print goes to second page . But the case is different here. I want the next page to be triggered each time Movement type (ITAB-bwart) is equal to '101'.
In MAIN window of first page PAGE1 I have used a COMMAND and in command's Condition Tab, I mentioned the condition (if ITAB-bwart = '101') then it should goto the next page (PAGE2) -
Hi Experts
we have configured a output type for VF02 billing and assigned a smartform also. I defined the next page also in the smartform.
Its working for first page only, not working for more pages, not even display the first page also, what could be the reason, pls suggest me, its very urgent.
Thanks in advance.
Regards
RajaramHi,
initially check in preview if it is showing then there is some problem with printer ask the concerned person if u r not even getting it in preview also then call start form function module and assign each page numer there if two pages call 2 times start and end form.
try this this might work.
Regards,
sana. -
How to dynamically give the next page in Smartform
Hi,
I have to give the LAST Page dynamically in Smartform. That only the last page the size of the main Window is shorter in length.
So on Second Last page I want to dynamically give the Next Page as LAST Page.
<b>I need to know how to give the next page dynamically in Smartform?</b>
Regards,
NitinHi Nitin,
I am unable to get your requirement clearly but I can help you how to call a page dynamically.
In the First Page, where you want to call the Last Page dynamically after displaying all the contents, right click and create a <b>COMMAND</b> node. In the General Attributes of the command selec the check box for Go to New page and select the page from the dropdrown.
First page
Main Window
Table Contents
Command
Now, after the executing the contents of the First page when the control encounters the command node it dynamically goes to the Page you have mentioned in the command node.
Regards,
Tushar -
Print next page with SMARTFORMS
How can I print the next page with transaction SMARTFORMS?
I connected the second page to the first in the general characteristics of the first, but when i execute the function only the first is print.
What's the problem?
How can I print the second page after the first?
Thank you.
CVhi,
In the first page specify any condition, such that the condition get satisfied during the first page and result of which a second page is created with respect to the CHECKED CHECK BOX GOTO NEW PAGE.
Check for the data on the first page, is it sufficing to the first page only in that case you wouldn't get a new page.
Refer this wiki for more information
[Page break|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/pageBreakin+SMARTFORMS]
regards
Sharath -
How can i see the next page in smartform?
i hav created a Second Page (%page 2) in Smart form.
and in that page i created one Main window and a table.
in 1st page, i defined the Next page as Page2 and
in the second page i defined the Next Page as Page2.
but only the 1st page is displaying. how can i see the next page?
what i want to do in smartform...Hi,
The second page will be displayed only when the data does not fit in the main window of the first page and continues to the second page.
So make sure that you have enough number of line to print that it overflows to second page.
Ajith -
Hi All,
My smartform have 3 pages.
Ist Page is showing the header
2nd Page is showing the item details
3rd page is showing the some other general details
But I want to show the 3rd page only after printing all the item details ( 2nd Page).
Please help how to do that?
Regards,
NikhilHi,
don't declare u r third page,
Arrange u r windows in the second page,
but the hierarchy of windows is maintain after main window node.
make all windows conditional i.e. only at end of the main window.
and maintain next page as page2.
if u have any line items it will call in next page or else it will print in second page,
hope it will work,
with Regards,
Kiran.G -
How to traverse to next page in smartforms
hi all,
help required in smartforms.
i have a requirement in which i have <u>two pages</u> to be displayed <u>alternately</u> in smartforms,the first page is in <b>lanscape</b>,the second in <b>portrait</b>.
the first page has a table in the main window so that if in case it doesnt fit in the first page print it should flow into next printout after the second page print( second page is static, i.e. the data displayed is same for all printout but it should repeat alternate).
for eg.it should go like this...
page1 ( table data ).
page2 (static-same data to be displayed).
page1 ( rest of the table data).
page2 ( same data as above in page 2).
till the end of the table in the first page.
but the pages are in different layout..one in portrait and the second in landscape...cannot use main window in both pages as the window size doenst match as it doesnt fit in the page of one another...
can anyone help me out....
regards
kiranHi,
Reduce the size of your main window. So that it can fit into your <b>portrait</b> Page. This is a workaround.
Feel free to revert back.
--Ragu -
NEXT page in Smartform 4.6c
Hi Friends
I have one requirement.I am creating PO smartform, there are two pages are required.First page has header data and item data etc.The second page has contains text(terms and conditions).The first page and second page main window width is differnt so in the second page there has NO main window called up, for that forcible triggered the second page thrw 'COMMAND' in the first page main winow.It is calling the scond page but creates harm for totals.In the first page the line items displaying in the fixed format of height and for totals created one footer window as noraml window and text elemet placed in this window .The foote window palced after mainwindow for display totals at end of display all the line items .When calling Second page i.e to' display terms and conditions ' the footer window i.e totals values information missing. How can i acheive this please tell me /
raviHi ravi,
Create the 2 pages:
In page 1 create the table-->In the footer area create the text and display as per quirement.
After that create the command node-->general attributes tab
check the check box go to new page : page2.
In page2 create the text node for the terms and conditions and display.
Regards,
Sravanthi -
SmartForms: Trigger NEXT page in a loop Not in MAIN Window?
Thanks for all of your responses. I know understand that my list I am creating in my loop does not trigger to NEXT page because it is not in my MAIN Window.
I am a little leary of moving this non MAIN window logic into my MAIN window, because I finally got everything looking pretty good, except for this issue. So, does anybody know of a way to trigger NEXT page to continue writing in a NON-MAIN window to a NEXT page?
As I am writing this I am thinking that I may be able to put a command inside the non MAIN window to go to NEXT page? Any suggestions, it must be possible somehow.
Thank-You.hi
see this
[Sap help documentation for smartforms|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
check page number 84 of this.
its written over there.
Prerequistites:
The page to which you want to branch must exist. you can branch to a new page only as long as you are still displaying the contents of a main window.
Maybe you are looking for
-
List view selector should display from various fields
Hi experts, I have list view where the data in excel is year quarter month search date search Application stime etime duration betime bduration tduration remark But i want to display Year, month quarter, date, Application and remark.. I dont
-
How do I get my iPhone to synch via USB cable with iTunes? I update my MS Outlook Calendar, click for it to synch in iTunes, but my calendar in the iPhone remains empty. Also, there are several podcasts which seem unplayable in my iPhone & I can't se
-
Well I believe I described the problem above. I want only to add that the external hard drive is a Seagate FreeAgent GoFlex Drive 1TB and the wireless modem router is a Belkin N Plus (model F5D8635-4 v1). Also, in the finder window under "shared" I s
-
Tax code V0 does not exist for jurisdiction code IN00
hi mm when i am creating a purchase order After creating the PO when i go to invoice and enter tax code V0 and jurisdiction code i face the error Tax code V0 does not exist for jurisdiction code IN00 Message no. FF718 Diagnosis You have entered tax c
-
Forcing to use F4 help for a field
Currently if we enter Partner Number or First name or Last name of a partner in Contacts, Employee and Service Group fields, and click on enter we are getting the relevent BP full name. This happens even if we enter Contact BP number in Employee fiel