Printing smartform directly
Hi,
how the print of smartform will come directly, without creating spool request, which parameters i have to use.
thanks in advance
When calling smartform function module you will see control paramets, pass below structure to it.. it will solve your problem
Ex:
SSFCTRLOP LIKE SSFCTRLOP.
SSFCTRLOP-PREVIEW = ' '.
SSFCTRLOP-NO_DIALOG = ' '.
While calling smart form
Pass the below parameter
CONTROL_PARAMETER = SSFCTRLOP.
Close the thread once your question is answered.
Regards,
Sairam
Similar Messages
-
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 -
How to print smartform from a report
Im displaying a report, which contains several documents, whereby which ewch document is connected to a smartform.
The page displaying the report contains a button 'Print'
When clicking on the Print button, all the documents in the report should be printed.
But my program is creating a spool file of the report, which will be printed further - its not what I want
I want the program to print the smartforms of each documents on the report directly.
heres my code and I dont know what I should do to be able to print the smartforms directly
Get the function module name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = '/EU000/FI_PRINT_DEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
gw_options-tdnoprev = ' '.
gw_options-tddest = 'LOCL'.
gw_options-tdprinter = 'LOCL'.
gw_options-tdnewid = 'X'.
gw_options-tdimmed = 'X'.
gw_control-preview = ' '.
gw_control-no_dialog = 'X'.
write: text-006,' ', text-007, ' ', text-008.
write:/.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: gw_all_data-gjahr(4), ' ',gw_all_data-belnr,' ', gw_all_data-belnr.
write:/.
CASE SY-UCOMM.
WHEN 'PRINT'.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
user_settings = ' '
output_options = gw_options
control_parameters = gw_control.
WHEN 'BACK'.
LEAVE SCREEN.
ENDCASE.DATA: x_control_parameters TYPE ssfctrlop,
x_output_options TYPE ssfcompop.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_prin LIKE usr01-spld.
SELECTION-SCREEN BEGIN OF LINE.
INITIALIZATION.
SELECT spld
FROM usr01
INTO p_prin UP TO 1 ROWS
WHERE bname = sy-uname.
ENDSELECT.
START-OF-SELECTION.
x_output_options-tdimmed = c_x.
x_output_options-tddest = p_prin.
x_output_options-tdnewid = c_x.
x_output_options-tdreceiver = sy-uname.
x_output_options-tdcopies = '001'.
x_control_parameters-device = 'PRINTER'.
x_control_parameters-no_dialog = c_x.
x_control_parameters-langu = sy-langu.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_SMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = f_name1
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_PRI = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
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.
ELSEIF P_PRE = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
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.
ENDIF.
Check the above code its just similar requirement it may helpful to you.
Thanks,
Phani. -
How can I print pictures direct from my camera?
How can I print direct from my camera? This printer does not have any ports for accepting the card from the camera as my old photosmart printer did.
Hey rmg111!
What kind of printer are you using? Most of our newer printers still have memory card readers which would allow you to print pictures directly from the printer. If the printer truly does not have the memory card readers (some of them don't), then you would need to use a computer to transfer the pictures from the memory card before printing them.
Let me know if this helps!
If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
Although I work for HP, my posts and replies are my own opinion and not those of HP. -
Can not print report directly to printer.
Hi,
We are using Crystal Report Server for reporting in our project.
The version we are using is Crystal Report Server XI R2 and Crystal Report Server XI R2 SP 2.
Please kindly advice us on the following issues we faced:
- Can not print report directly to printer.
The print button on the Crystal Report Viewer prints the report to pdf and user have to click "Print" again in the pdf file. This is unusual and not convenient. As we have hundreds of reports to print, is there a way we can print the reporrt directly to printer?
- "Set to Null"
In the default interface of the Crystal Report View, there's is this "set to null" check box that we can not remove. Is there a way to do without it?
Thank you,
Kenny TewMorning Kenny,
The printer settings are in server management console. Additionally see what settings you have setup for the printer for the report in the server. If it is setup to use End User printer then check your End user machine settings and make sure the printer is setup as a default printer on his/her machine.
Please let us know how you get along with the issue.
As far as "Set to Null" I am not sure where it is set up. A screenshot of it might help understanding it better?
Many thanks
Regards
Jehanzeb
Edited by: Jehanzeb Navid on Oct 6, 2008 11:07 AM
Is this issue on all computers or only one computer?
I have just tested this on my colleague machine and it asks for default printer and not pdf however on mine I setup for pdf. -
Error while printing smartforms
Hi Friends,
I am getting error "<b>Invalid value for parameter ARCHDEST</b>" while printing smartforms. This is happening only in IDES server. In Development the same smartform is working normally. I have checked in transaction SU53, to see whether all the authorisations have been given for IDES server. There is no problem in authorisation also. So what might be the reason for this. Please give me the solution to solve this problem.
Thanks & Regards,
RanjithHi Beginner,
In the layout you have taken window or layout taken the big width in that case only you will get this type error syntatically it shows correct when you exicute the smart from try to give the print or see the print preview you will get this error (suggestion is better to check the window sizes)
Thanks
Ashok -
Printing Reports directly from to a printer via 10g forms (Linux)
Hi all,
I need to be able to print Reports directly from a form to a printer (bypassing the form output) on Linux (RHEL 5). The trick here is this is Linux, not windows so, wasn't sure how to deal with printers in this case.
I have the option working where I can run a report and set the options to "Cache" and PDF and it displays my outputted report directly in a new browser window w.
I use the SET_REPORT_OBJECT_PROPERTY, RUN_REPORT_OBJECT, and WEB.SHOW_DOCUMENT properly for the PDF in a window.
a.) I want to send them directly to a printer, preferably to a user's default printer on their PC, bypassing the output screen. How can I accomplish this?
b.) I also would like the ability to generate a PDF (bypassing the output on a browser window) and put the form in a specified directory on a client's PC (which is what I used in 6i Client/Server). I believe I need to utilitize the WebUtil to allow this to happen. Otherwise, I'm thinking I just build a queue for the user on the Linux server and build a screen that shows all the reports they've generated for the past X amount of days and let them open them up and print from there.
Any help (particulary for Part A) would be very beneficial.
Chris1)
if your app server is on a Linux server, for direct printing to work, the printer must be setup and accessible under Linux server using system-config-printer command, for PDF printout you probably want a postscript option checked
if you print to screen (PDF) and then use print option then your windows client machine must have access to the printer
2)
you must pass this printer name as part of the report parameters.
set_report_object_property(oRptObj, report_destype, Printer);
and
hidden_action := hidden_action ||'&report='|| cRptSrcFile; -- source of report program to call
hidden_action := hidden_action ||'&destype='|| cDesType;
hope this helps -
Problem while printing smartform in dot matrix printer
Hi Experts,
When i am printing smartform using dot matrix printer only the last page prints but all the pages displays in print privew.
For example suppose there are three pages to be print 1/3, 2/3 , 3/3 , i get all the three pages in print privew as well as when i take its printout in laser printer i get all three pages as print, but when i am using dot matrix printer i get only the last page ie 3/3 as print.
Regards
Varun SharmaHai Varun,
If things are coming properly then its no more ABAP issue.
Need to check out with the BASIS team along with the IT / hardware department.
Just try to take print out on a other dotmatrix printer, if its somewhere close to you as usually they are heavy and large in size can't be moved.
Hope this helps,
Cheers,
Suvendu -
ITunes 6 prints text directly on Windows Desktop
ITunes 6.0 and 6.0.1 come up, a lot of the time, printing tracks directly on the Windows desktop. That is to say iTunes doesn't have its skin and does not clear the space it is going to draw graphics on. It really only shows text when it does this. You can read the text but when you update something, new text prints over the old text without erasing the old text.
I suspect this is specific to Windows 2000, but I really don't know.
If I get this behavior, no matter how many times I restart iTunes, I can't get rid of it. But if I reboot Windows 2000, usually iTunes comes up the next time without this behavior.
I use this Windows 2000 box mainly because it has a big disk on it. I use it only for iTunes and Slimserver (the Slim Devices streaming server).First, try the most obvious things. Make sure you have the latest drivers for your video card. Also reinstall the latest DirectX on your system. Those usually fix these sort of weird display issues.
-
Print Report Direct from current PC
Hi
I want to print pre printed reports direct to dot matrix Printer without Concurrent Manager in requested PC ( Print from PC not from Server ) .
So , can i do that or not ?
Thanks,
Mohamed BadrIn general you have 2 options for printing.
1) print via the server printing queue
2) download/open the report and click the print button on your workstation
there is a 2 B option. If we are talking about a HTML based report you can modify the reports in such a way that you send a java script with it that starts the printing. However this is (A) not advisable and (B) somewhat experimental and not supported ;-)
If you want to know more about printing via javascript check this page: http://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm
Regards,
Johan Louwers. -
Hello Experts,
I am developing new SMARTFROM.
Requirement: On entering the Personnel number(s) on the selection it should print SMARTFORM. for one entry there are two page. so for 2 entries it should show 4 pages. It should work like mass printing.
Error: currently it is working for single entry. but when i entered multiple enteries on selection-screen in print-preview i can see only 2 pages for first. for viewing second entry i need to comback to Printer specification page.
how do i achieve if i enter 2 entries on selection-screen in print preview it should show 4 pages.
ie. for 1st entry two page and for 2nd entry last two page.
Regards
Saurabhcheck the following code, the control parameters need to be changed accordingly.
LOOP AT it_acct.
AT NEW kunnr.
READ TABLE it_acct INDEX sy-tabix.
READ TABLE it_kna1 WITH KEY kunnr = it_acct-kunnr.
READ TABLE it_adrc WITH KEY addrnumber = it_kna1-adrnr.
IF sy-subrc = 0.
wa_adrc = it_adrc.
READ TABLE it_landx WITH KEY land1 = it_adrc-country.
IF sy-subrc = 0.
l_landx = it_landx-landx.
ENDIF.
ENDIF.
CALL FUNCTION 'ZSDG_COMPANY_ADDRESS'
EXPORTING
i_bukrs = it_acct-bukrs
IMPORTING
o_comp_addr = g_comp.
REFRESH it_acct1.
IF g_over = 'X'.
r_duedt-sign = 'I'.
r_duedt-option = 'LE'.
r_duedt-low = date.
APPEND r_duedt.
ENDIF.
LOOP AT it_acct WHERE kunnr = it_acct-kunnr AND duedt IN r_duedt.
MOVE-CORRESPONDING it_acct TO it_acct1 .
APPEND it_acct1.
CLEAR: it_acct,it_acct1.
ENDLOOP.
c_nofopr = c_nofopr + 1.
* t_control_parameters-DEVICE = 'LP01'.
t_control_parameters-no_dialog = 'X'.
t_control_parameters-preview = 'X'.
IF c_nop <> 1.
CASE c_nofopr.
WHEN 1.
t_control_parameters-no_open = ' '.
t_control_parameters-no_close = 'X'.
WHEN c_nop.
t_control_parameters-no_open = 'X'.
t_control_parameters-no_close = ' '.
WHEN OTHERS.
t_control_parameters-no_open = 'X'.
t_control_parameters-no_close = 'X'.
ENDCASE.
ENDIF.
IF doct = 'X'.
doc = 'X'.
ELSE.
doc = 'Y'.
ENDIF.
CALL FUNCTION lf_fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = t_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
g_comp = g_comp
wa_adrc = wa_adrc
landx = l_landx
p_seldate = date
waers = waers
doc = doc
intrvl1 = intrvl1
intrvl2 = intrvl2
intrvl3 = intrvl3
intrvl4 = intrvl4
g_over = g_over
TABLES
it_acct = it_acct1
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* 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.
ENDAT.
ENDLOOP. -
Printing using direct IP address of printer
Printing using direct IP address of printer
Is there a way in Adobe Livecycle where we can directly print using printer’s IP address by passing print server?
If so what settings we have to do i.e.
which entries to be added on TrustStore,
which protocol to be use,
which format we have to use in PrintURI?
I have tried,
Protocol: DirectIP
PrinterURI: \\<Print server's name>\<Printer's IP address>
\\<Print server's IP address>\<Printer's IP address>
\\<Print server's name>\<Printer's IP address>:9100
\\<Print server's IP address>\<Printer's IP address>:9100
\\<Printer's IP address>:9100
\\<Printer's IP address>
I have tried all these PrinterURI and I keep getting belwo error,
Caused by: java.net.UnknownHostException
ThanksHello Casc-ade,
Welcome to the HP Forums.
I see that you are having some connectivity issues over a wireless connection.
So I can better assist you, please respond with which Operating System you are running on your Mac as well as the Printer Model number.
Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
How Do I Find My Model Number?
Write me back when you have time and I will be happy to help.
Cheers,
Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
W a t e r b o y 71
I work on behalf of HP -
How to print Smartform in Draft mode.
HI all,
we are using Wipro LQ DSI 5232 printer, our problem is while printing smartform , its coming in Roman but it should come in Draft Mode.
When it goes to Roman mode the printing become very slow.
How to set in default Draft mode.
Regards,
Rahul.Hi,
there is an SBO setting inside
Administation>System Init>Print preferences>Print Draft Watermark on Draft
Then a "DRAFT" watermark will appear if it's printed before adding.
In CR use a stored proc to get data back according to the Objectid@.
Then if its the object id of a draft then add a CR watermark.
Hope this helps.
Regards,
D -
Is there a way to print or direct a PDF from Acrobat to another local app?
Is there a way to print or direct a PDF from Acrobat to another local app? I assume not and there is nothing suitable that I can find in the API.
Hey there -
Nope - at least not when printing to PDF. IOS is a tidge, er, limiting.
I re-posted in the IOS area; we'll see what happens there.
Thanks again,
Russ -
HPLJ3055 won't print through HPxb3000, but will print if directly connected to dv9000.
HPLJ3055 won't print through HPxb3000, but will print if directly connected to dv9000.
Hey there @pepsitruck
I understand you cannot print from your desktop however, you can print from your laptop.
Could you please run the Print and Scan Doctor again and let me know the results or post a screen image of the results?
This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
You can also try manually stopping and restarting the print spooler and try printing from Notepad afterwards.
1. Click Start
2. Type "Services" in the search field.
3. Open SERVICES
4. At the bottom, click "Extended View"
5. Search for Print Spooler
6. Right-click it and choose Properties
7. Select as Automatic in the drop down box, close the Window
8. Right click on Print Spooler and choose "Stop", wait until it stops and then right click again and "Start".
9. Close out of Services and try your print again.
When you get to your response, please include which version of Windows you're running please.
Which Windows Operating System am I running?
Thank you,
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!
Maybe you are looking for
-
Firefox was working fine. My computer shut down due to battery draining, and when I restarted I couldn't open Firefox again. I've tried redownloading and installing new, opening in safe mode, updating all plug-ins, etc., still nothing. Any suggestion
-
Newscale Custom Code - AJAX Libraries - Web Service calls during ordering moment
Authentication issues calling webservice that requires credentials to be passed. NTLM authentication. Web service we are calling works from Service Link with HTTPIWA2 adapter.This is on Windows environment. When in the ordering moment, i am being pre
-
Every time that I attempt to open the store in my iTunes program, I receive and error message and it states ITunes has stopped working and needs to close the program. How do I fix this?
-
My track pad seems to be getting hung up. When I push down on the track pad, it sticks. So if I am trying to highlight an article, it will highlight the article as It should, but then it will stay depressed and if I lightly drag my finger over it, i
-
Several questions from a new user.
Ok, I figure I'll just put all the questions at once. 1) Loading up the library I'm putting all my music, however I noticed that on occasion when copying from other directories I get multiples in the list. Is there a way to automatically delete multi