CREATION OF MULTIPLE PAGES IN SMART FORMS
Hi,
I have a smart form in which i need to create 2pages.First will be followed by next and next by next
I created the first page and then i created the next page .
when i created first page i got a default main window and when i created a second page i.e the next page ,i did not get any default main window and when i tried to save it gives an error saying page without window cannot be saved.
WHEN I CREATED A WINDOW WITH MAINWINDOW BUTTON ENABLED IT SAYS ALREADY EXISTS AND TWO MAN WINDOWS CANNOT EXIST .cAN ANYONE PLS HELP ME OUT REGARDING THIS
THANKS
hi
good
1-go to smartforms
2-in a smartforms there is only one main window you can create,it is not like sap script that you can create 0 to 98 main windows,so on main window ll come bydefault but if you want to create another window that would be called as subwindow and that you can create by right click on the main window node and select create window.
3-After selectging the window one small window would arise over the main window screen , you can give any size of that window and on the right hand side of the window node you ll find three tab from there on general attribute would be there,from there you select secondary window ,because every second window other than the main window is called as secondary window.
now you can try like this it ll definitely work fine.
thanks
mrutyun
Similar Messages
-
How to deal with multiple pages of smart forms
Hi everyone,
i have two pages in smartforms but whenever i show smart form through my program only first page is shown not the second one. i tried with next page attribute of both pages but no resolution.
thanks alot in advanceWhich solution did you choose ?
(1) main window on the two pages
- The first page contains the main window, and its next-page attribute is the second page
- The second contains the main windows, and its next-page attribute is itself
- The main windows
- - Begins with nodes to print on first page
- - Then a command node force end-of-page
- - Then some nodes and a table node that are to be printed on second page
(2) main window only on second page
- The first page do not contain the main window, and its next-page attribute is the second page
- The second contains the main windows, and its next-page attribute is itself
- The main windows
- - Some nodes and a table node that are to be printed on second page
Regards,
Raymond -
Hi all,
Actually I want to print multiple pages in Smartforms . I have a option to take New Page and set that Page as Next page . but In my case Pages are dynamic. if any person has solution please send me.... thanksHi Srinu
just loop the internal table . please see below my code
i_output_email --- My internal table
LOOP AT i_output_email.
CLEAR i_output_email1.
i_output_email1 = i_output_email.
APPEND i_output_email1.
AT END OF xblnr.
calling the selfinvoice smartform using functional module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = gv_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
error handling
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Call the smartform
CALL FUNCTION fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = gs_control_parameters
output_options = gs_output_options
mail_recipient = ls_recipient
mail_sender = ls_sender
user_settings = space
is_nast = nast
is_repeat = repeat
IMPORTING
it_output = t_output
job_output_info = t_otfdata
TABLES
w_output = i_output_email1
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
t_otf[] = t_otfdata-otfdata[].
CLEAR ls_otf1.
LOOP AT t_otfdata-otfdata INTO ls_otf1.
APPEND ls_otf1 TO t_otf.
CLEAR ls_otf1.
ENDLOOP.
REFRESH i_output_email1.
ENDAT.
ENDLOOP. -
How to print two different multiple pages in smart forms
Hi All,
In my form iam printing 12 different pages.In that 11th & 12 th pages are having two different formats and if more records are there for each page i have to print more similar pages.For 12th page iam using main window in that by using command and table nodes iam printing similar pages for 12th one.
But come to 11th page i don't have more than one main window in my form.So iam unable to use the command node.
Can anybody help regards to this problem.
Regards,
Srinivas Reddy.Chhi Srinivas..
u don't have multiple main windows in smartform but we can us the same window for multiple number of pages...
wht u need to do is use the CONDITIONS Tab of every node..
in the check <b>only on page</b> PAGE11.. for the node u want to trigger in page11 and for other node <b>only on page</b> PAGE12 for the node u want to trigger in page12.
i hope it is clear now.. let me know if u want more clarification.
Please Close this thread.. when u r problem is solved. Reward if Helpful
Regards
Naresh Reddy K -
How to link Multiple pages in smart forms?
Hi experts,
am creating one smartform in that i have 4 pages each page is different from the other.
am linking the pages as
for page1 -
next page = page2
and create a command on main window in that go to next page(checked) page2.
similarly all the pages i have given
for page2 -
next page = page3
and create a command on main window in that go to next page(checked) page3.
but in output am getting only 2 pages only
will u help for this.
thanks and regards
tajHi max,
yes i created command in all pages main window
in page1
mainwindow1
command(in mainwindow1)
page2-mainwindow2-command
like this in all 4 pages i have given
but not getting the output of 4 pages
only getting the 2 pages
those are first page and the page that is connected to first page either it is 2nd or 3rd or 4th
how this am not getting the solution.
help me
thanks -
How to display multiple pages in smart forms
Hi Experts,
I am facing one problem in Smartforms. here i am using one page & main window, Mainwindow consists one TABLE, it contains 100 records. While printing this smartform, i am getting only one page and mainwindow was filled with only 80 records...remaining 20 records has to display in 2nd page but it was not displaying 2nd page at all.
Can any one please help me.
Thanks,
sreelakshmi.Hi,
Use the same page name in the general attributes-> next page of your created page.
Thanks
Arul. -
How to know no of pages in smart forms to be printed ?
Hi,
How to know no of pages in smart forms to be printed ?
though i got SFSY structure during run time of smartform , even that was not useful.
&SFSY-FORMPAGES&
Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
during debug of smart form i don't understand how it is calculating no of pages ,as i kept break point before printing page no in smart form.
please check my two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
Help Required.
Thanks In advance.Hi Prakash,
You will not get these values during debugging.. Let the program execute completely, you will get the right values.
As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)& as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits -
How to print different header & item data in new pages using smart forms.
Hi,
In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
Regards,
BrajeshHi
U need to use control break statements to acheive ur requirement.
Regards,
Priya -
How do u get New page in Smart form dynamically
How do u get New page in Smart form dynamically
page break in smart form
Re: New Page in Smart Forms
Page break inside a loop in smart form -
How to display multiple records in smart forms in new page for each record
Hi,
How to display the data from a internal table in a smart form.
I want each record to be displayed in seperate page.
please tell me with example.
thank u,
SarathDo this ,
in the main window - open a loop on your internal table ,
within the loop open the text and give the output fields,
after this text use the Command node and in this set the next page as page1,
so when the loop gets executed its first record will be on the first page and the second record will be on the next page and so on ..
Reward to usefull answers. -
Unable to see the next pages in smart form
in my smart form i designed 3 pages...
in the first page i don't want data in main window...but i gave the main window dimensions as in 2nd and 3rd page(same height and width)...
in 2nd and 3rd page i want to display the data in main window...
but when i am trying to see the output i am able to see only the first page ...
Please suggest me the suitable solution..
Thanks in advanceHi,
You've originally said.
in the first page i don't want data in main window...
yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change). So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
Remove the main window from page 1, set page2 as the next page for page 1.
As for how to trigger page 3 you'll need to provide more detail on what the condition is. Do you want multiple copies of page 2 to hold all of the main window data, or just one? Do you want one copy of page 2 then the rest of the data on multiple copies of page 3. Be specific.
Regards,
Nick -
Regarding printing multiple PO using Smart forms
Hi Abap Gurus,
i have to print the multiple purchase order in smart form such that first purchase order number details in first page. second purchase order in second page. how can i acheive this solution. i searched in sdn but not found a proper solution.hi,
use this function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST_SMARTFORM'
IMPORTING
fm_name = fm_name.
it passes the function module name generated....
then call that function module..
CALL FUNCTION FM_NAME
EXPORTING
control_parameters = wa_control_par
output_options = wa_output_options
IMPORTING
job_output_info = it_otf_data
TABLES
it_nfal = it_nfal_final. -
How to mention two different next pages in smart forms
Hi
In our scenario there is smart form in which we have one main window, after that we need to print two different pages one for instructions and other for delivery address.
In main window we can add a command and mention the condition for a next page e.g Instructions page. but for delivery address page we are unable to specify condition in main window or in secondary window in instruction page/main page.
Kindly help us
Regards
AmmadHi Ammad,
Create two pages(page2 and page3), page2 for printing the "Instructions" and second(page3) for "delivery address".
in the first page, at the end of main window create the command and specify as below
general attributes->check the go to new page check box->choose the page which u wanted to be print on the second(for your case it is page2).
In the page2->general attributes->next page->give "page3".
Thanks,
Prabhakaran
Edited by: prabakar1998 on Dec 12, 2011 9:42 AM
Edited by: prabakar1998 on Dec 12, 2011 9:44 AM -
How to print multiple pages of same form with one print command
Hi,
I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop. Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
Now I want to print all the cheques with one print command.
Please advice.
Regards,Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM -
How to creat 2nd page in smart forms
hi
in smart forms iam facing problem i'e if i gave 10 material's it was comming fine if i give 30 materials it was going to 2nd page in that again from starting it was comming like Header delivery adress.
what i want is if materials increase than main window should increase size & rest of thing(footer )should comes in 2nd window
regards
A K reddyHi,
For the header details not to print on the second page:
-> Go to Conditions tab of the window in which u r printing Header delivery address and check the condition 'Only on first Page'
This will solve ur problem.
thanks,
Anon
Maybe you are looking for
-
Pricing mistakes on bestbuy.co​m for open box items
I've ended up driving to 2 different Best Buys in the area over the last couple of days in an effort to buy an open box Sony camera - both locations had them listed as available for purchase on your website, information that was incorrect in both cas
-
VMM Error while seting NTFS permissions on a SOFS Share
Hello, I get the errors 2912 and 26272 while registering a file share created by VMM on a sofs 2 node cluster. Share Permissions are set correctly by VMM, but for VMM it is obviously not possible to set ntfs permission. I run SCVMM 2012 R2 UR3 on a 2
-
why can I not open illustrator on my laptop it will not download from creative cloud
-
Web Service call from VB Macros & web service for logging in
Hi All, Is it possible to call a SAP web services from a Visual Basic macro? 1) If yes, how to do so? 2) Is there a standard web service through which we can login to an R/3 system? 3) Once we are logged in can we call other web services? Thanks in a
-
How to configure in Charm in three system landscape
Hi Experts I want to configure the charm in the three system landscape system. Please help me to configure Thanks & Regards