Printing movement stock papers - wrong printer in Smartforms
I have two output information for movement stock papers - the standard one and the custom one (which is the copy of the standard one - from the point of configuration).
The only one difference is the forms they uses.
Standard is writen in Sapscript and custom in Smartforms.
Both outputs are printed automatically during the stock movement but the standard one is printed on the the proper printer which was given in configuration and the custom one on the default printer (for the user). Then when I check in document both outputs were processed ok and it should be printed on the same printer - although they wasn't.
I would be appreciated for any clue,
Marta
I call my smartforms with following options:
CALL FUNCTION fname
EXPORTING
control_parameters = control_parameters
USER_SETTINGS = ' '
user = z_user_name
id_zm07draus_mm = id_zm07draus_mm
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
and now it's even worse... there is no printout at all...
Similar Messages
-
Problem in Printing the Smartform in Duplex
Dear Experts,
I had an issue in printing the Smartform in Duplex Page.
I had 4 windows in the Smartform, Which i had to print the Terms & Conditions. We have the Pages as
Page1
Page2
Page3
Page4.
In my case i had to print the Terms and Conditions at the back side of the Page1. I put the print mode as D for the First Page. and also i change the print settings. Like
Page1 --> D --> Terms
Terms --> ' ' --> Page1
Page2 --> ' ' --> Page1
Page3 --> ' ' --> Page3
Page4.--> ' ' --> Page4.
But unable to print the Terms & Conditions at the back side of Page1. Will you please help me if my query is wrong.
Thanks in Advance.
Sriniwhy don't you close unanswered, and repost as a question in the form printing forum....probably get better response...
-
Printing a smartform to a different printer than my default
I have a function module that gets passes a delivery number and the short-name of a printer. The function module is supposed to print a smartform (pick list) for that delivery to the specified printer. The problem is that no matter what I put in for the printer, it prints to my default printer. If I change it, it will go there. I'm sure I'm just missing some kind of setting. Here is what I got:
printer is the shortname for the printer i want, type RSPOPTYPE
*Print Smartfomr picklist for delivery
data: ls_ctrl_prnt type ssfctrlop,
ls_outp_opts type ssfcompop.
ls_ctrl_prnt-no_dialog = 'X'. " Suppres dialog
ls_ctrl_prnt-device = 'PRINTER'.
ls_outp_opts-tddest = printer.
ls_outp_opts-tdprinter = printer. " Specify required printer
call function gv_func
exporting
control_parameters = ls_ctrl_prnt
output_options = ls_outp_opts
pk_hdr = sf_info
pk_orders = sf_odrs
pk_items = sf_item
pk_pgbk = sf_pgbk
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
Am I missing something here? Any help would be greatly appreciated.
Thanks,
CurtisI was able to solve my issue. The field TDIMMED (print immediate) in the parameter OUTPUT_OPTION need to be passed with the value 'X'.
The code is pasted below.
DATA: l_ssfctrlop TYPE ssfctrlop,
l_ssfcompop TYPE ssfcompop,
l_formname TYPE tdsfname,
l_fm_name TYPE rs38l_fnam.
CLEAR l_formname.
Get the smartform name based on the output type
SELECT SINGLE sform FROM tnapr INTO l_formname
WHERE kschl = ysdt_dynlayout-auart
AND nacha = '1'
AND kappl = 'V2'.
Get the smartform function module name
CLEAR l_fm_name.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = l_formname
IMPORTING
fm_name = l_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
l_ssfctrlop-no_dialog = 'X'. " print popup dialog box is suppressed
l_ssfcompop-tddest = usr01-spld. " the printer name is passed from screen to this field
l_ssfcompop-tdimmed = 'X'. " print immediate option is set
l_ssfcompop-tdcopies = copies_in. " number of copies of output required
Call the smartform
CALL FUNCTION l_fm_name
EXPORTING
control_parameters = l_ssfctrlop
output_options = l_ssfcompop
user_settings = ' ' "manual override of user settings
i_del_head = likp
i_dyn_layout = ysdt_dynlayout
TABLES
t_del_item = ig_lips
t_home_address = ig_home_address
t_header_text1 = ig_header_text1
t_footer_text1 = ig_footer_text1
t_footer_text2 = ig_footer_text2
t_footer_text3 = ig_footer_text3
t_text4 = ig_text4
t_text5 = ig_text5
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
ENDIF. -
How to print multiple form for tag printing in smartforms
Dear Experts,
I am working on tag printing in smartforms .in tag printing i am showing
1.material no.
2.material descrption.
3.material doc no.
4.Quantity
5.supplier.
my requirement is that for example , if the mat. document no. has a material of 10,000.00 quantity , in tag printing it should come 1,000.00 of each tag and total no of tag should be 10. and it should come one after another .
and the page format size 8 x 6 cm. is it possible .if possible how ! how the system will know how many tag is to be printed . please reply its urgent.Hi Kumar,
Let me know. is the quantity 1000.00 is fixed? if so thn you can achieve the requirement.
For example:
There are A-material with 20000.00 quantity thn u can first divide the quantity with 1000.00
v_ex = 20000.00/1000.00=20.
thn you can repeat the print of the smartform for 20 times by passing the parameter to form fm.
Please reward if useful. -
Issue with character formats using duplex printing in smartform
Hi all,
I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
Can anyone know where is the problem..please.
Points to be rewarded..
Thanks.
Regards,
Zaheed.Hi Zaheed,
Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
If you are saying it is happening in ur case then
1. Recheck whether whether you have same text module getting printed on the
two page. If they are different then then individual check formatting option for
each..
2. If above point does'nt work for you ..then instead of bold char use normal
format for text element and see if it is printing same on both page..
Try this out and let us know your findings...
Enjoy SAP.
Pankaj Singh -
How i can print the smartform directly
hi,
my requirement is i have to print the smartform directly by skiping the dialog window.
i am using the following code but in that i have press the Print push button again .
DATA: output_options TYPE ssfcompop.
output_options-tdimmed = 'X'.
output_options-tddest = 'LOCL'.Trty something like
* Print parameters
ssfcompop-tddest = tddest.
ssfcompop-tdimmed = 'X'.
ssfcompop-tdnewid = 'X'.
ssfcompop-tddelete = 'X'.
* Control parameters
ssfctrlop-device = 'PRINTER'.
ssfctrlop-no_dialog = 'X'.
* Call driver
CALL FUNCTION fm_name
EXPORTING
control_parameters = ssfctrlop
output_options = ssfcompop
Regards -
Hi,
Has anyone worked on Duplex printing for smartform? If yes, please tell me the procedure/steps that need to be taken for the same.
Thanks
RegardsHi,
You can select Duplex printing in th epage properties of a page (D = Duplex)
The printer STARTS duplex printing from that page. This means that the printer triggers a pagefeed on that exact moment and starts printing on a new page. So when you have 1 page that stretches over more that one sheet of paper this means trouble. after every page the flow of the program starts a new Duplex print (thus feeding the current sheet and starts at a new page) this results in a new sheet of paper every page. this is not what you want.
You can solve this by creating 2 pages and set their respective NEXT PAGE to each other. Page 1 you set to DUplex, pagae 2 you leave blank..
But notice that when you select duplex printing most (if not all) printers start printing on the backside of the paper. When you use pre-printed (logo) paper, you will find that it prints the front on the back etc.
This can sometimes be corrected (if needed) by sending prescribe commands to the printer directly.
Good luck!
Joris -
Print the smartform to the spool
Hi all,
How to Print the smartform to the spool ?
Thanks in advance
KrupaDATA: p_out LIKE ssfcompop,
p_ctrl LIKE ssfctrlop.
CLEAR: p_out,
p_ctrl.
p_out-tdnoprev = 'X'.
p_out-tdnoprint = 'X'.
p_out-tdnoarch = 'X'.
p_out-tddelete = 'X'.
p_out-tddest = p_dest.
p_out-tdnewid = ''.
p_out-tdimmed = ' '.
p_out-tdcopies = 1.
p_out-tddataset = sy-repid.
p_out-tddelete = ' '.
CALL FUNCTION fm_name
EXPORTING
inv_header = tmp_header
output_options = p_out
control_parameters = p_ctrl
user_settings = ' '
TABLES
t_item = tmp_item
The lines in bold are the main key statements for spool.
tdnewid is the name of the spool.
awrd points if useful
Bhupal -
Bar-code printing in smartforms
Hi All,
how to done or step by step procedure of bar-code printing in smartforms.....guide me please.
Thanks,
Regards,
Vishal Bhagwat.Have a look at below PDFs. It will give all the details abt scripts.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
Also have a look at below links:
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm -
Ukrainian text on preview is fine but gives junk char on print in smartform
HI All,
I am trying to print hardcoded ukrainian text in smartform. In preview it is coming correctly but while printing it gives some junk charecters.
During my analysis i found out that previously existing hardcoded text is coming fine on printing but it is showing different charecters(than the one on the printing) in smartform node and in print preview.
Regards,Hi,
Do you use a device type that supports Cyrillic characters to create the spool and print? e.g. Device type SAPWIN, SAPWIN5 or Unicode device type SWINCF?
If you use a non-Unicode device type like SAPWIN or SAPWIN5, then the font used for these characters in the smartform should be a Cyrillioc font like COURCYR, HELVCYR or TIMECYR.
Regards,
Aidan -
To print the Smartforms in Hindi
Dear All,
My latest requirement is to print the Smartforms in Hindi. Can anyone please guide me through this?
Thanks in advance.
Regards,
SouravHi Sourav,
This question had been discussed earlier though no concrete solution was posted.
Still you might find a few helpful posts.
Follow this link :
Re: SAPScript in different language
Regards. -
HOW I PRINT A SMARTFORM?
Hi guys, im new in abap, so i need your help, some one can tell me how i can print a smartform?, what functions and parameters i need?, if you can send me an example code it realy helps me.
Thanks & Regrads
LuisHi Jose,
Check these program in SE38. These descibes how documents are printed using Smartforms.
<b>SF_EXAMPLE_01
SF_EXAMPLE_02
SF_EXAMPLE_03</b>
Check these links to know about smart forms
http://www.allsaplinks.com/smartform_example.html
http://www.allsaplinks.com/smartforms1.html
Thanks,
Vinay -
Error in Print Preview smartforms
Hi All,
I have done a program for PO Print.(smartforms)
I am getting an error while printpreview stating that
"Table row is larger than 176 cm"
This error is only coming for some selected PO's
Please help .
Thanks & Regards
MonaU can try and use smartform_trace transaction to trace ur smartform alos to search for particular code use like this->
Goto-> environment-> see fm name
suppose it is like
/1BCDWB/SF00000036
Now
edit like this
/1BCDWB/LSF00000036F01
open this in se38
now search with ur line item node name.
also put a break point here ans when it stops for debugging set a watch point to stop at particular line item which u want out of 50 item u have.
кu03B1ятu03B9к -
Regarding address to print in smartform
Hi,
i have requirement, when im printing a smartform of purchase order,its displaying 'delivery to(plant address)'
is printing but my requirement is when i select check box of subcontractor at item level it should display that subcontractor address and when i dint select that check box it should same default address(plant address)
Thanks,
RajeshPlace your condition in your address node,
Example
if checkbox <sub-contract> EQ 'X'.
Display sub-contract address.
if checkbox <sub-contract> NE 'X'.
Display plant address
Note: make sure you pass this check box information to smartform.
close the thread once your question is answered.
Regards,
SaiRam -
ALV output to be printed in smartform
Dear Experts,
There is a report which uses ALV using webdynpro ABAP. Say the report has 5 columns A, B, C, D, and E.
There is also a custom button on ALV 'Print' which calls the smartform to display the output of the ALV( All columns ).
Now the requirement is, user may hide any of the columns in ALV, say, user chosen to hide B, and D columns. So ALV displays A, C, and E columns respectively.
When the user presses the 'Print' button smartform should display only the columns selected by the end user on the webdynpro screen. In this case it is A, C and E columns.
Now is there any way to cpature the list of columns selected by the user or hidden by the user before we process the smartform.
If there is any please let me know.
Thanks in advance!
Regards,
ShashiDear Experts,
Awaiting for any replies on this.. Please help in case of any information on this.
Thanks in advance!
Regards,
Shashi
Maybe you are looking for
-
Loss of sending email using WIFI
As of this morning 8-20-08, after updating to 2.02, I no longer am able to send emails using my own wireless network. Previously this was no problem. Neither Fido or Apple have any idea of what I am talking about. Fido washed their hands as they do n
-
IMac is overheating? Or is my Hard Drive dying...
So, I think my iMac is dying in some form or another, but I'm not sure if it's the hard drive, something heat related, or a combination of the two. A preface: the machine is mainly used for the web, iTunes, and Warcraft, and I run iStat menus to keep
-
Failure level 3 caption box appears twice?
Sorry for the multiple posts, but I really need an answer to this. Any ideas? My scenario: I have a graded single response multiple choice question with five answers. If correct, Jump to Slide 3. If wrong, I allow 4 attempts with 3 failure levels,
-
Table name for dialog response time without GUI in ST03?
In SWNC_COLLECTOR_GET_AGGREGATES, cnt00x (x =1,2,3... 9) gives me the proportion of transaction steps with a response time between 0s and the upper limit of the individual response time categories (includes GUI time), broken down by task type. But w
-
Hello World! Here I am going to tell you my woe story which is, I finally decided to upgrade to 10.9.2 from my a little worn 10.6.8, and was very happy with a choice until stumbled upon the complete failure with establishing the Internet sharing for