Printing from webdynpro

Hi All,
In my webdynpro I have 2 buttons PREVIEW and PRINT.
With PREVIEW button click Iu2019m able to open my custom built adobe form in a separate window. Working fine and no issues here.
With PRINT button click, I have to send the same form directly to the local printer. I have written the below code for button event.
DATA: fm_name TYPE funcname,
      fp_outputparams TYPE sfpoutputparams,
      fp_docparams  TYPE  sfpdocparams,
      fp_formoutput TYPE fpformoutput.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
  EXPORTING
    i_name     = 'YICS_RECEIPT'
  IMPORTING
    e_funcname = fm_name.
fp_outputparams-device = 'PRINTER'.
fp_outputparams-nodialog u2013 abap_true.
fp_outputparams-preview = abap_false.
CALL FUNCTION 'FP_JOB_OPEN'
  CHANGING
    ie_outputparams = fp_outputparams.
CALL FUNCTION fm_name
  EXPORTING
    /1bcdwb/docparams  = fp_docparams
    i_header           = ls_header
    it_item            = it_item
    i_cmode            = ls_cmode
    it_acc             = it_acc
  IMPORTING
    /1bcdwb/formoutput = fp_formoutput.
CALL FUNCTION 'FP_JOB_CLOSE'.
Once I click on the PRINT button, Iu2019m able to see an entry in spool list with status u2018COMPLu2019 in green color, but the output is not printed to the printer. When I double click on the status Im seeing the below spool information.
Description          Value                              
Status:               Compl.                               
Last event:                                               
Message:           Front end did not get print data after timeout
Date:                 25.03.2010                           
Time:                18:10:48                             
Job status:          Waiting for spool server             
Error class:         Problem                              
Some more information:
In SE38 I have created an executable program and executed the same above code, form has been printed to the printer. Same code is working fine through GUI, but not working with webdynpro button event.
With basis help I have configured new output device ZLP01 with below parameters.
Device Type: PDF1
Device Class: Space (Standard Printer)
Access Method: G (Front End Printing with Control Tech)
Host Printer: __default
Regards,
Vijay.

Hi Vijay,
I'm not 100% sure - but I think your issue is that you are trying to print directly to the users local printer? And you are trying to use the standard SAP local printer setup to do that?
That uses the GUI as a conduit to the PC - the print driver that pops up in the background when you print from the GUI...
In Web Dynpro - you have no access to that conduit so no ability to directly print.
Think about how any web pages you've visited allow you to print - they all give you a preview - it's up to you as a user to then get those previews to your print device.
have a read of this reference - it may help understand the issue with "auto printing" from a browser
[why printing from a browser is problematic|http://javascript.about.com/od/events/a/print.htm]
Hope this helps,
Cheers,
Chris

Similar Messages

  • Accessing Webdynpro Java iview functionality for print from webdynpro code

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • How to print from webdynpro client

    Hi Mobile friends,
    I have a big problem, I don't know how to print a webdynpro screen from the mobile client. I'm developing webdynpro laptop applications for offline scenarios with Mobile 7.1. Can anyboy help me with this issue?
    Regards,
    David Faustini

    Hi,
    I follow the help page but these are my results:
    1- When try to add a lib dc to my project with a compilation and assembly public part: The component fails to instal when is downloaded from the server.
    2- When try to add a lib dc to my project with just a compilation public part: The component successfully instal when is downloaded from the server but the lib can't be resolved, when I put the jar under the libs folder of my client the problem solved.
    Conclusions:
    It's still an error on the SAP documentation with the use of external libs on a DC project.
    Can any help me using external libs DC  with an assembly part on Mobile 7.1?
    Regards,
    David Faustini

  • SAPLPD printing problem from Webdynpro

    I am calling a function module that prints spool locally. When executing the FM directly the SAPLPD daemon appears and prints to my local printer.
    When calling from WebDynpro frontend the SAPLPD daemon does not appear even though when I look in SP01 the spool is said to have been printed.
    I was told that the reason is because, WebDynpro is on a different application server! I think this is where it is printing.
    I am using FM RSPO_RPRINT_SPOOLREQ for printing. How do I connect WebDynpro to my local SAPLPD?

    Can't do frontend printing from Webdynpro because web applications loose connection to desktop sapgui which is requirement for frontend printing. OSS note exists explaining issue.

  • Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input

    Dear Friends,
    We are facing a serious problem for debugging. Expecting valuable input for the same.
    Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
    The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
    1st ] Within R/3
    Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
    2nd ] From webpage to R/3
    Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
    In Prod. Server the 1st case above is working but the 2nd case is not working.
    In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
    The setting which are done in Prod. server are,
    1] RZ10 in parameters are set for port and host name.
    2.1] In SMICM check for ICM.
    2.2] Host file updated in Windows-System 32.
    3] In SICF following services are active,
    3.1] default_host/sap/bc/webdynpro
    3.2] default_host/sap/public/bc
    3.3] default_host/sap/public/bc/webdynpro/viewdesigner
    3.4] default_host/sap/bc/wdvd
    3.5] default_host/sap/public/icman
    3.6] default_host/sap/bc/gui/sap/its/webgui
    3.7] default_host/sap/public/ping
    3.8] default_host/sap/bc/error
    3.9] default_host/sap/bc/echo
    4] In SE80
    4.1] Internet services-System-are published
    4.2] Internet services-WEBGUI-are published
    4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
    4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
    5] In Su01 for user profiles sap_all & sap_new is assigned and role  SAP_BC_WEBSERVICE_DEBUGGER is assigned.
    6] The support packages are also updated to latest level.
    7] Gone through following links but not getting any clues.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    Thanks in Advance.
    Best Regards,
    Abhijit.

    No cross posting
    Read the "Rules of Engagament"
    Regards
    Juan

  • 'Dunning Letter Print from Dunning Letter Generate'

    hi,
    How can i run the "Dunning Letter Print from Dunning Letter Generate" standard program without runing the spwaned program called 'Dunning Letter Generate'.I mean i want to run the 'Dunning Letter Print from Dunning Letter Generate'(execution method: report) independently.
    I need to pass the parameters to the 'Dunning Letter Print from Dunning Letter Generate' directly instead of passing to the spwaned program ''Dunning Letter Generate".
    Thanks
    Devender

    Hi Gareth,
    New parameters to be add are:
    Tier : <xxxx>
    Service Segment: <xxxxx>
    Account Manager: <xxxx>
    Location where I am picking these 3:
    navigation:select any AR responsibility
    customer->standard(query with any customer)->customer address
    we have enabled 'site use information' dff in customer address window, from this dff we are taking these 3 parameters.
    reason to add these 3 parameters:
    we cant treat all the customers same. so we need to send some smooth(no harsh) dunning letters to some of our most trusted customers. so how can we identify gud customers in the list.
    so we have enabled site use information dff. those customers who is have values for these 3 parameters. will be treated as v good and reguler customers for us. so for them we can send other dunning letters.
    note*: this is to identify the customers like reguler customers,non requler customers.
    bez in spwaned program we have parameters like 1.customer low 2.customer high. thats it .so it is very difficult to find out the nature of customer.
    pls advice me on this..to proceed further..
    Thanks
    Devender

  • I can't print web pages since a recent upgrade to 4.01. The print command works but the page comes out empty. right now a copy the link to IE and print from there. HELP!

    When printing from the mozilla 4.01 browser the printer spits out blank pages. It seems like it happened after downloading and running mozilla 4.01 browser.
    I have to copy the link to IE (boo!) to print the coupon or page on my printer.
    Why?

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    You need to remove the checkmark on "Always use private browsing mode" to leave Private Browsing mode or chose the "Remember History" setting.
    *https://support.mozilla.org/kb/Private+Browsing

  • Print from ipad if i connect a usb connector to my ipad can i connect my printer to it and print??as im thinking of buying the new ipad for work but i must be able toprint

    hi can any one help i want to get the new ipad for work but i need to print.i see i can buy a usb connector can i print if i plug my printer into the usb.

    If you have a USB printer connected to your computer, Mac or PC, you can activate or install AirPrint and print from your iPad over wifi without any special apps.
    Activate AirPrint in Mac OS X;
    http://netputing.com/airprintactivator/
    Add AirPrint to Windows;
    http://jaxov.com/2010/11/how-to-enable-airprint-service-on-windows/

  • How can I print from the icon in FF5?

    I have been unable to print from any of the icons in FF5. This has only occurred in the past few days. The only way I can print is to "Select" on the page, and then "Print Selection" on the print screen. I can print from IE by using the icons.
    This is also true with my Yahoo email.

    In Mac OS X, right-clicking the document's icon brings up a similar menu, but documents are printed from the application, not from the OS. The application is launched, the document opened,and the document sent to the printer, bypassing only the Print dialogue.
    The same route may be triggered by dragging and dropping the file's icon onto the printer's icon in the Dock.
    Regards,
    Barry

  • I can no longer print from a website. I can from other browsers but not Mozilla. Help

    I used to be able to print any time I needed to. Then the print became so small I could not read it. Then the pages I printed from the website, printed blank pages. I contacted Thunderbird because this was first noted on email when I tried to print something from a website, they told me it was a Mozilla problem. So I then tried to print straight from the website and got the same thing. Nothing. The page is completely blank when printed.

    These suggestions are not the problem and I have contacted HP and they have run all the diagnostics and they say the problem is not with the printer or the software. All other browsers print, just not Mozilla

  • MFP M127fn connected, test printing OK, can't print from applications

    Hello Everyone!
    I have just set up my M127fn via USB on a Windows 8 system. The set up went fine. I have a small stack of test pages from the HP software, but it won't print anything from any applications like MSOffice. The HP diagnostic software (Print and Scan Doctor 4.6)  can communicate with the printer and everything checks out OK.
    Any suggestions?
    Thanks in advance.

    Hello! 
    I have replied twice to your last posting, but have heard no response. Unless a solution can be presented quickly, I fell I must return the product. LPug and play was introduced with Windows 95 and this HP product has not lived up to that 20 year old technological standard. My previous replies are copied below.
    Please respond soon.__________________________________________
    Re: MFP M127fn connected, test printing OK, can't print from applications
    Options 
    ‎01-31-2015 08:06 AM
    Hello again!
    I haven't heard a response to my most recent reply. Is there anything you can suggest before I give up and return this HP product to the store? I would like a quick resolution to this. As an update to my previous email (copied below), printing is no longer working through Adobe Reader.
    Thanks,
    Chris
    Re: MFP M127fn connected, test printing OK, can't print from applications
    Options 
    ‎01-28-2015 01:08 PM
    Hi,
    Thanks for getting back to me. I have tried a variety of different programs:
    Mozilla Thinderbird (email) - no results
    MS Word - no
    ms excel - no
    Finale (music software) - no
    Adobe Reader - yes!
    Google Chrome - yes!
    NotePad - yes!
    perplexing!

  • Can't print from iBook G4 via Windows XP to an HP PSC 1410

    Hello,
    I realize this question is very similar to others on this discussion but I haven't been able to find an answer to my problem.
    I cannot print from my iBook via XP to an HP PSC 1410.
    I can print from my iBook via XP to an HP LaserJet 4L.
    I was able to print from my iBook via XP to an HP882C that was connected
    to the same USB port that the HP PSC 1410 is connected to now.
    I have an iBook G4 running 10.4.3
    I have a PC running XP with an HP LaserJet 4L on a parallel port and an HP PSC 1410 on a USB port.
    I installed the following from http://www.linuxprinting.org/macosx/hpijs/
    hpijs-foomatic-2.02.ppc.dmg
    espgs-7.07.1.ppc.dmg
    HP-PSC_1400-hpijs.ppd
    I think I correctly followed the instructions at:
    http://www.ifelix.co.uk/tech/3015.html
    They worked for the LaserJet printer.
    When I attempt to print from the iBook to the 1410 the HP doesn't print at all.
    I don't see any error messages on the iBook. The document gets spooled onto the Windows print spooler, the printer even starts making noises, the print heads move about a bit and then stop. The print job just sits there in the queue with a status of "Printing". The print job is then stuck and hard to delete.
    I don't need to be able to scan or check ink levels from the iBook.
    I would just like to be able to do color printing.
    What else should I try? Given the symptoms where might I be going wrong?
    Any suggestions would be appreciated.
    iBook G4   Mac OS X (10.4.3)   1 Gig RAM

    I found the answer to this problem on Linux printing provided by Steve Stuart.
    Dave
    Steve Stuart wrote at: http://www.linuxprinting.org/forums.cgigroup=linuxprinting.macosx.general;articl e=1446
    Hi all,
    I finally figured out what the issue was, Why it fixes it I can not say,
    but it does.
    On the Shared printer on the Windows side, go to the properties of the Printer.
    Go to the Ports tab, and deselect the "Enable bidirectional Support" (do not
    have it checked). Once this is done and you also do not have any firewalls
    setup on the Windows machine (Windows, MCAfee, Norton, ....). You should be
    able to print.
    Finally!!!!! I hope this helps many many people. As I have had many
    people asking for the solution if I found it.
    Thanks,
    Steven Stuart

  • Wireless printing problem with hp officejet 100 mobile printer from win 7 dell laptop

    My hp officejet 100 mobile printer was working fine with my dell XPS 15 in bluetooth wirelessly until my laptop crashed. Now I can not get it to print internet info except with hard wire connection. Page loads half way and then stops. Must shut down laptop and shut off printer or hard wire and shut off bluetooth. down loaded lastest drivers to no avail. printer will print from cell phone and win 8 computer via bluetooth but not win 7 laptop.

    Sorry you are having problems with printing from the internet.  I have a few more questions to ask you before I can be of much assistance.
    What web-browser are you using?  
    Do you have any problems printing from Word or other non-internet documents?  
    What did you do to fix your computer (system restore, clean install of the OS, etc)?  
    Have you tried an alternate web-browser?
    Make sure to install all of your Microsoft updates to see if that helps.  Otherwise, answer those questions for me please and I will be happy to help.
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • I have been using Adobe Photoshop Elements 11 for two years. I got a new printer and installed it although I did not remove my old printer from my computer. I used this program and my new printer for quite a few months, but today I deleted my old printer

    I have been using Adobe Photoshop Elements 11 for along time now. When I first used the program I had a different printer than I have now. Although I changed printers I never removed the software from my old one. Now this was never a problem until today. When I choose a printer I still had option to use the old one but always chose my new HP Envy 5530 and Adobe never had a problem printing from that new printer. However today I decided to remove my old printer from my computer and now my Adobe cannot find my new printer.  How can I make it find the HP printer?

    Try this --
    Go to the bottom of the link I gave you, and you will see
    click that link and then click the chat button to talk to an Adobe agent

  • I am having trouble printing to an Epson XP600.  It is a new printer and it has been replaced because we thought it was the printer.  Basically, when I print from Excel, only color will print.

    I am having trouble printing to an Epson XP600.  We have replaced the printer and we are still having the same problem.  When I try to print from Excel, only the color prints.  Any suggestions?

    Has anyone else had issues not being able to print black (such as a document)?  My photos print great, but when I try to print a simple black-ink document, it won't work. Any suggestions?

Maybe you are looking for

  • Vertical Text in Firefox

    Is there a way to display vertical text in Firefox? I can do it with CSS3 in IE, but not in FF. Is there a way to generate a dynamic image containing the text, and then reference it with <img src=vertText.cfm?text=myText... I know this can be done in

  • HT1567 my ipod wont sync with itunes

    my ipod will not sync with itunes

  • How do i combine two photos i have in iPhoto together?

    i want to put writing from one cropped image under a logo of another...how?

  • Af:inputListOfValues popup : selecting first row

    Hi, Is there a way to select first row inside lov popup, the by default behaviour is it selects the rowHeader rather than row itself. When the lov popup is opened , there is no focus on table resides in the popup - to focus on table, user has to pres

  • JSP Support in CEP

    Is there JSP support in CEP? I'm receiving "JSP support not configured" when the webapp is deployed as <jetty-web-app> in config.xml From the console there's also : <NO JSP Support for /webapp, did not find org.apache.jasper.servlet.JspServlet> Did s