Smart form to be printed 4 times
Hi,
when samrtfrom is excuted it should print 4 copies,
I have the same data in all the windows except in footer window,
In footer window for first copy 1. Bank copy
second copy 2 .bankcopy
third copy 3. co ordinator copy
fourth copy 4 . company copy
I', m setting w_OUTPUT_OPTIONS-tdcopies = '4'.
and passing this to function module
and in footer window put a condition on sy-page = '1' and sy-page = 2 and
sy-page =3 and sy-page = 4
but it's printing 1. bank copy in all the 4 pages
please help me how to do it ?
here is the code which i wrote in my program
CALL FUNCTION w_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = w_OUTPUT_OPTIONS
USER_SETTINGS = ''
w_bukrs = w_bukrs
w_payinslip_no = w_payinslip_no
total = w_total
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
i_final = i_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
hi Naveen,
got the solution.......
<b>do as i said in the above post.... do some extra work as below</b>
<b>create window --- type Copies window</b>...
keep all the thinig as it is.
<b>wht u have to do is just select the window u r using...
window type is Copies window</b> don't change anything
<b>already i hve tryied this....it is perfect</b>
Now iam leaving... if u r facing the problem
call me at 09903101949
Message was edited by:
Naresh Reddy
Message was edited by:
Naresh Reddy
Similar Messages
-
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 -
Smart forms- when i print a report it print main window data on same page
hi,
when i print a report it print main window data on same page .
i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
pl. help why it is happening
i create page in page i set next page and in second page give first page.
mukeshmukesh,
what happened to this: smart form
close that please.
by the way,did you tried with what i suggested?
lets say mainwindow in 1st page.
copy the first page to second page.
now.
for 1st page: next page is : page2
for page2: next page is also : page2 -
Smart-Form name for Printing of Payment-Receipt in Tcode FBCJ
Dear Sir,
We use Tcode FBCJ for the making of Cash Payment . To Print the Cash Payment Receipt , we first select the Payment Line Item then Click on Edit --> Print Receipt .
This call a Smart-Form and Payment Receipt get printed .
We need to know the name of Smart-Form being used .
We request SAP experts to kindly guide as whhat is the name of Smart-Form being called in this case .
We assure to give full points for the suggested solution pl .
Rgds
B Mittalhi,
standard smartform for payment receipt is
FI_CA_PAYMENT_RECEIPT_SAMPL_SF
reward points if useful,
siri -
hI FRIENDS,
i HAVE TO CREATE ONE SMART FORM WITH DRIVER PROGRAM FOR s (sTORAGE UNIT ) . CAN YOU HELP ME TO KNOW WHAT IS THE TCODE , OUTPUT TYPE, APPLICATION FOR THE sU PRINT ? pLEASE INFORM ME THE MASTER TABLES FOR sUAS WELL .
tHANKS IN ADVANCE .Hi,
I hope the below link will help you.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d763c290-0201-0010-95ae-985957613e90
Thanks,
Khushboo. -
Smart form problem when printing header in table
Hi Friends,
I am facing some problem in smartform. In my smartform there is a table - where I should print "Header" at each start of line items and also at page break. So, I checked both the check boxes in Header as "Start of table" and "Page break".
Now the problem is in main window - it is printing Header and line items are coming. After finished Again the header is coming and line items are coming. In some cases - What is happenning is: If the first page ends at the header only - Header is getting printed in the first page and the page ends here. In the next page also "Header is appearing because i checked page break". So, it is appearing twice.
Could someone please guide me on this issue.
Regards,
HariHi,
At any case the two headers will not be displayed if you select the both "start of table" and "at page break.". Please check whether there is another widow in the form from where the header is displaying.
Thanks ,
Abhijit -
Problem in printing Border in Smart Form in DMP printer
Hi ,
Im facing the same issue in my Smartform . When the user prints through ALV it prints the border ,
But if we use the same printer for Smartform it does not print the borders in Dot Matrix .
I did increase the width from 15 TW to 30 TW but even then the Table Border is not printing .
Can someone please help me with the sameHi Juhi,
I believe, Dot Matrix printer is for pre-printed Docs, so except charaters in the form, nothing will be printed, where as in case of laser printer, A4 paper is nt a pre-printed format.
I think this might be the case in ur issue.
Sujatha -
Report using smart forms as the print module
Hi
I have to develop a report in order to print some data of the purchase orders after processing, in a given layout. To achieve this I have the relaxation to use smartforms to develop the layout. The processed data for multiple orders will be passed to the smartform function module created. This way the smartform will be generated and the control will return to the report in which the smartform FM was called. Please tell me the settings which will trigger the printout from the report.
Regards
SIMHi,
Most of the smartforms will be called from the driver program. Once the smartform is called the control will be returned to the program only.
check the below threads
urgent: smartform tutorials
Thanks
Arul -
Hi,
I need help in printing smartform in both side. it has to print terms and conditions on back side of page after printing main window for each page.Hi Praveen,
Try this logic!!!
Create total 3 pages. For example
Page 1 (items page)
Page 2 & page 3 (terms & conditions)
page1 (next page) = page2
page2 (next page ) = page1
page3 (next page) = blank
Now In your main window in page 1, just after the table create a command and give next page as page3.
I hope this will help you to close this thread.
Appreciate if found helpful.
Cheers!!!!
Vinit
Edited by: vinit005 on Mar 12, 2011 11:01 AM -
In Smart forms How to print address
Hi all,
If we have Multiple line items and if all the line items have the same address then address should be printed at Header level if not all the line items are holding different address then that address should be printed at line item level.
and again if the address is not displayed at Header level then that window should be hidden i.e the area should be hidden.
Please help in this issue ASAP.
Regards
AnuHi Anupama,
You mean Delivery Address???
1. Declare a Variable ADRNR in Import Parameters like ADRNR TYPE ADRNR.
2. Have a seperate Window to display Address.
3. Create a Address Node in that window, Give Address Number value as &ADRNR&.
4. In the Conditions tab maintain as ADRNR <> space
4. Get Data for ADRNR variable in Print Program and pass that value in Smartform Function Module for ADRNR Parameter.
Reward Points if this helps,
Satish -
In smart form while printing page no.
in smartform iam printing the page no
current page / no. of pages : sfsy-page / sfsy-formpages
if the no. of pages are more than 9 it is printing as star ( * )
if the total pages are 12
ex : 1/ * , 2 /* up to 9/* than 10 /12 , 11/12 , 12/12Refer this link
Re: Smart form to be printed 4 times
You can also print out the page number as "x of y":
&PAGE& / &SAPSCRIPT-FORMPAGES&
Message was edited by:
Judith Jessie Selvi -
Is it possible to get direct print without preview of the Smart Form?
Hi,
I developed a custom report where line items are coming with a check-box in front of each item. User can select single/multiple line-items by checking those check-boxes. The report also has a PRINT button in application tool bar by clicking which a Smart Form will be printing for each item. Thats mean, for 10 selected line items, 10 forms will be printed.
But, after clicking the PRINT button, print preview of the form is coming and from there I can go for a print/printer. I do not need the print preview and want to have the direct print option while clicking the PRINT button. How can I have this functionality?
Thanks in Advance
RoyHi,
Initially I get the Form Name by calling FM: SSF_FUNCTION_MODULE_NAME and I store it in l_fm_name. now calling the FM: l_fm_name like below:
LOOP AT i_item INTO wa_item.
CALL FUNCTION l_fm_name
EXPORTING
wa_item = wa_item
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
As I have multiple form need to print, I am calling the smartform in loop. -
Hi,
There is a Strange issue I am facing now that is print output is getting changed according to the printer settings.
Even though I specified the output_options-tdprinter = 'ZPDFUC',and output_options-tddest = 'LP01' while calling smart form FM the printer option always takes the printer setting present in user profile.
Is there a solution where the smart form by default picks one printer but not in the User profile settings.
Regards,
DeepaHi,
There is a field check it and set the value X to overwrite the system details with manual settings. when calling the smartforms.
Thanks,
Vinayaka -
Sending Smart form to Printer in SRM
Hi All,
I am trying to send a smartform to Printer in SRM ITS. I gave output options and control parameters . When i see the Print dialog box i dont see the Front end printers in that. Normally when we pass LOCL we should see default printer in Print dialog.
When i do print, spool is creating but its not printing at local printer .
I am doing this in SRM ITS ... could you kindly any one tell me what steps need to take to print a smart form at local printer when we call form ?
ThanksHi
Please elaborat, when you need this SMARTFORM to get triggered.
By the way, Have you tried implementaing the following BADIs ?
BBP_CHANGE_SF_BID Smartform for E-Mails to Bidder
BBP_CHANGE_SF_CTR Change Smart Form for Contract Output
BBP_CHANGE_SF_ERS Change Smart Form
BBP_CHANGE_SF_SC Smart Form Shopping Cart Print
BBP_CHANGE_SF_VERS Change Smart Form for Version Comparison
BBP_PROCESS_AUC Process Smart Form with Changed Interface
BBP_PROCESS_BID Process Smart Form with Changed Interface
BBP_PROCESS_CTR Process Smart Form with Changed Interface
BBP_PROCESS_PO Process Smart Form with Changed Interface
BBP_PROCESS_QUOT Process Smart Form with Changed Interface
Hope this will help.
Please rewards suitable points.
Regards
- Atul -
Smart Form: Invoice list
Hello everybody!
Does a smart form exist which is designed for invoice lists?
Or exists only the Smart Form and the print program and function module which selects the required data for normal invoices???
Greetings
MarkHi!
Yes I know all what you write. But RLB_INVOICE cannot be used for invoice lists and now I have only the question if there exists also a standard print program and smart form for invoice lists as it exists for SapScript Forms.
Preconfigured SmartForms don´t contain invoice lists they contain only normal invoices..
Greetings
Mark
Maybe you are looking for
-
Sending iPod in for repair/replacement
I am debating whether I should or not... Do I call apple first? If so, what's the number? (I'm in Canada and I think the closest place is in Toronto) Do I have to send anything with it? (bill, earbuds, usb cord, etc.) How long would I have to wait? C
-
Get Fields In Table Dynamically
I am trying to create a dynamic query that will allow me to query a table, pull all of the fields and dump all of the data into a text file: I have been able to make the dynamic query, but I am unable to display all of the data on the page when I loo
-
4650dn printer changing document output from print preview
recently installed 4650dn printer set up was a breeze, then suddenly the printer started changing the document output like there was an internal setting overriding the software settings. almost as if it was confused about the orientation of the pape
-
i want to import a dmp file which contains 3 tables to a user named "test", i opened a cmd window and i wrote "imp" then i specified the file path, but when i connect to that user i can not find the tables that were exported in the dmp file although
-
Damaged system icons, how do I restore them?
I recently bought a new MacBook Pro Retina display and have been installing applications and copying over old files to start with a fresh system. I think I may have tweaked the default system icons because they look a little wierd: I have been playin