Printing in BSP

Hi all
I ve created a BSP application which incorporates the BPS web interface for entering the commentary for the data in transaction cube. When i exceute the BPS web interface, i am able to see the documents for required selection criteria for example document for certain plant in particular cal/year month. Say if it shows up 20 documents for particular plant inthe screen. I want to print all the 20 documents when i click print button. How is it possible to do it,, Can anyone please provide me the code or document to do this. 
Can anyone please tell me what code i ve to do to accomplish this.
Ill assign points for it
Regards
Dinesh,

Dinesh,
IE print will print only what is on the screen .. I am not able to make out what the issue is ..
is it :
1. Page has scrolling and hence you are unable to print properly
2. Something you expect to be printed is not getting printed ..?
also I suggest you post the same in the BSP forum and the BPS forum for better results..
Hope it helps..
Arun
Assign points if helpful

Similar Messages

  • Issue while printing the BSP page haveing radio buttons.

    Hi Experts,
    I have a BSP page which has radio buttons. When i try to print the page using browser print, the radio buttons are not getting printed.
    Could someone help me regarding this.
    Thanks & Regards,
    Karthik MD

    when you use radiobutton in BSP (<htmlb:radioButton) they are rendered as images. so to get it printed , in your browser (IE) go to tools->internet options->advanced->printing and check the check box against "print background colors and images".
    now try printing it should be fine.

  • How to generate output requests (Print) from BSP ?

    How to trigger an Print output controller from BSP ?
    i have designed certification letter in BSP page and if i trigger print button in BSP am passing the required parameters to the SAP spool,and letter is generated in SAPSCRIPT. Ans am able to trigger a print from the spool request.
    But how to trigger the ouput controller from BSP Itself .
    regards ,
    Message was edited by: J
    Solved . I have missed some Printer params .
    Message was edited by: J

    Hi,
    Refer this link.
    How to Print HU and its contents
    Vishal

  • Triggering Print from BSP

    I have generated one letter in BSP ,
    my requirement is ,if i fire a print for that letter from EP , it shd go to the printer of his department after 3 hrs,and that can be collected from him later .
    *Valuable Pts will be Awarded
    Rgds,
    J

    Hi Jung ,
    Thanks for your BLog ...
    It seems very helpful.
    I have created an BSP extension 'Zdialog' and created one Element 'printdialog' .
    But am unable to use the type 'SFPOUTARC' for arcMode and
    'SFPPRIP' for defaultParams.
    My requirment is to send the certification letter displayed in BSP to R/3 printer spool .
    Pls help me in this regard .
    Awaiting for ur reply.
    Rgds,
    J

  • Printing in BSP demo system

    Hi,
    I'm having some problems setting up a printer in my BSP demo system.
    I tried configuring a local output device with device type SAPWIN, device class Standard printer, access method F and host printer __DEFAULT.
    When I print, I get the message "Spool request (number &) sent to SAP printer &" but the spool goes to status "waiting" and the SAPLPD program is not triggered.
    I scoured all the logs I could find (system log and developer trace) but I could find no real help.  I do get some error messages and these are as follows...
    <b>System Log</b>
    Spool: RT_INSERT Reports Error 64 for Table
    <b>Developer Trace</b>
    A Mon Feb 19 21:38:45 2007                                                  
    A  *** ERROR => RFC: rfctr_open: userinfo->spaprotovers 0 [abrfcsys.c   5345]
    A  *** ERROR => RFC: rfctr_open: userinfo->spaprotovers 0 [abrfcsys.c   5345]
    S  1 pages (List) printed in 0 seconds, avg. 0.0 pages per sec              
    S  Timeinfo 4217/1 (LOCL): 0 1 List ( 0 0 0 0 0 0 )                         
    S  *** ERROR => TSP02W entry for 4217/1 missing [rspopj.c     249]          
    A  *** ERROR => RFC: rfctr_open: userinfo->spaprotovers 0 [abrfcsys.c   5345]
    A  TH VERBOSE LEVEL FULL                                                    
    S  no gui for frontend connection available                                 
    A couple of observations:
    The TSP02W entry does seem to exist with the following values:
      PJIDENT           4217
      PJNUMMER      1
      PJDEST            (Device, ie. LOCL)
      PJOWNER        BCUSER
      PJSERVER       (blank)
      PJSTATUS        2
    I'm not sure if there's supposed to be anything in the PJSERVER field.
    I'm not sure what PJSTATUS "2" means.
    I checked in OSS (well, everywhere actually!) and it seems that SAPLPD may not be relevant for the 620 SAP version.  OSS note 16420 says "<b>IMPORTANT INFORMATION: SAP now only supports SAPLPD for frontend printing in Releases prior to 4.6C.</b>".
    I found quite a lot of references to  new access method "G", however, this does not seem to be an option in the BSP demo system.
    Does anyone out there have any ideas on how to set up a printer in the BSP demo system?  I'm not BASIS and have exhausted all the sources I can get.
    Thanks for your help,      Andy

    Dinesh,
    IE print will print only what is on the screen .. I am not able to make out what the issue is ..
    is it :
    1. Page has scrolling and hence you are unable to print properly
    2. Something you expect to be printed is not getting printed ..?
    also I suggest you post the same in the BSP forum and the BPS forum for better results..
    Hope it helps..
    Arun
    Assign points if helpful

  • Unable to send spool request to printer through BSP

    Hi Experts,
    We have an application build on BSP and provided a button called print in the application. When I press print, in our client requirement, an adobe with details should create a spool as well it should print the document automatically.
    Currently we some how managed to create a spool after pressing print but spool request is not going print automatically, its showing status as waiting with following error message
    "Frontend unavailable"
    Please help me out
    Thanks in advance
    Regards,
    Sridhar

    Hi,
    this will not work!
    If you print local, the GUI starts a local printing program. The browser is not able to start local programs, because of the restictions of Browsers.
    To use Networkprinter should work.
    Best regards
    Renald

  • An Aid For BSP Development

    An Aid For BSP Development
    Hi,
    I have developed a small tool as an aid to BSP Development.
    I describe it briefly here.
    You can see screen shots on www.sapprogrammer.com. Click on BSP Find.
    It turns out that the tool is even more useful than I figured as I wrote it.
    It took over a year to write at weekends and in the evenings.
    As it got more and more powerful I saw that it was enabling me to do things I could not otherwise have done.
    I also believe it would be extremely useful to extend it in some ways that seem to offer themselves naturally now.
    So here’s the description:
    Find a String in a BSP
    (A BSP means here : The BSP in SE80 + its models defined in the BSP + its application class.)
    The program runs thru a BSP and its Models and its Application Class and looks for whatever string of characters you require.
    It produces a legible list showing the places you should go to find that string. (See screen shots).
    Advantages:
    This cuts down work time as a developer enormously.
    In addition, if you seek an empty string the program will list the whole BSP. Thus you can print your BSP.
    Extensions:
    I have since extended it to run over a range of BSPs. You can’t run over many because it takes too long but you can run over 2 or 3.
    What I should like to do now:
    The program proves to be so useful I should like to see if it is possible to:
    *     Integrate it to any extent into the ABAP Workbench. It is purposely completely separate at the moment.
    *     Use it to compare BSP Versions. We have just received Service Packs and a large BSP has been changed. It would be good to have a tool to show the differences between our copy of the old version and the new one.
    Would anyone be interested in cooperation on this? Its probably too much work for me alone. In particular the workbench question would presumably require cooperation with SAP itself?
    Kind regards
    David Lawn

    There is no doubt that this is a very excellent tool. We have had this problem many times before. Often we can see in the HTTP trace the error, but have no way to easily find the source in the server. What we currently do is a hack: we download the source, and search on disk. Very clumsy. In this sense, we can clearly see the value in this tool. I can only support David in saying that this is a very useful tool.
    From the side of the SAP, we can unfortunately not help. I will forward you append to the workbench group to again check. But we have to see the reality that our team is already overcommited for Netweaver '05 development.
    Which does not prevent you from just running this program directly from SE38 (or even better, assign it a transaction code). This does not reduce the true value of the tool.
    If there are people interested in building a small group to help David, it will be good, and I see a lot of interest. Important it that you just clear the licensing aspects. I think that using the forum for communication is ok (if you don't use emails).
    regards, brian

  • Hiding htmlb button from javascript

    Hi all,
    I am printing my bsp page by clicking a html:button. I use javascript self.print for that.
    It works fine.But i want to hide buttons while printing.
    could anyone help me?
    Advance thanks,
    JBP.

    Hi raja,
    I am using Eddy's code only..
    In my case, using this doesn't reflect changes...
    <link rel="stylesheet" href="print_only.css"  media="print">
    But if use,
    <%@include file="print_only.css"%>
    no button is displayed in the page itself...
    My problem is <b> media="print" </b> is not working...
    Rgds,
    JBP.
    Message was edited by: P24101990
    Message was edited by: P24101990

  • Any ideas on a nice BSP view pretty printer?

    Hi there,
    I am wondering whether somebody already tried to extend the SAP standard pretty printer by an own functionality which fits better for pages with mixed content, containing not only BSP-elements but also HTML-tags.
    The standard pretty printer considers everything as plain text which is not a BSP-element and leaves it unaltered. Only BSP-elements are arranged according to their tree structure.
    This produces ugly results for pages with mixed content.
    1.) Requirement
    A Pretty Printer for HTML-based BSP views should cover the following:
    (a) HTML-Tags and BSP-elements together form the chain. As in following example:
    <z:table table_id="testTab" binding="//test/gt_test" rows="5">
      <z:tableBody position="top">
        <colgroup>
          <col width="4%">
          <col width="96%">
        </colgroup>
      </z:tableBody>
      <z:column name="type" header="<%=zcl_bsp_util=>dtel_text_s('EDI_TTYP')%>"
                listPos="10"/>
      <z:column name="text" listPos="20"></z:column>
    </z:table>
    (b) Certain HTML formatting tags like I, B, etc. should not be added to the stack but be treated inline.
    (c) HTML-attribute names should be converted to lower case, the attribute values should be quoted.
    (d) Like for BSP-elements, there should be a threshold after which the attributes should appear in separate lines. Instead of a certain maximum "number of attributes", this could also be a maximum number of characters per line.
    (e) Scripting Tags (<% ... %>) should start at a new line, if the content contains new-lines.
    (f) Evaluation Scripting (<%= ... %>) should be inline, if they are contained within text nodes (and not within HTML oder BSP element nodes).
    (g) The Pretty Printer should be parametrizable (with parameters like indent-depth,... ).
    2.) Exits?
    Of course, one could always use an external HTML editor and write an add-on for that editor which produces the desired result. Or one could take the view content into the clipboard, paste it into a plain text editor like UltraEdit or TextPad which allows external commands, apply an external, self-written pretty printer to it and then paste the result back into the View. But it would be easier to use the "Pretty Printer" button directly to get the result. Therefore the question arises at which point the standard Pretty Printer Functionality could be modified or extended.
    I didn't find an exit. But the pretty-print itself is doubly-decoupled in the standard which minimizes the number of points where an extension has to be made:
    2.a) First decoupling point: The Fcode handler method pretty_printer_ext( ) in cl_o2_page is calling
    dynamically a method in cl_o2_co2_processor:
    * call pretty printer
      create object pp type ('CL_O2_CO2_PROCESSOR').
      appl_str = me->pagekey-applname.
      page_str = me->pagekey-pagekey.
      try.
          CALL METHOD pp->('PRETTY_PRINT')
            EXPORTING
              indent              = 2
              ATTRIBUTE_NORMALIZE = 'X'
              ATTRIBUTE_THRESHOLD = 2
              BSP_UNFORMATTED     = source
              appl                = appl_str
              page                = page_str
            IMPORTING
              test_ok             = test_ok
              BSP_FORMATTED       = pp_source.
        catch cx_o2_co2_exception into o2ex.
    2.b) Second decoupling point:
    The method pretty_print() of class cl_o2_co2_processor (fancy names, by the way. It seems that many former chemistry students had joined the BSP team ),
    there is a second delegation, to a local class, as follows:
      data pretty type ref to LCL_BSP_PRETTY_PRINT.
      pretty = LCL_BSP_PRETTY_PRINT=>getInstance( processor = me ).
    The real logic for doing the Pretty Print, finally, is performed in this local class.
    3.) Implementation.
    Since, up to my knowledge, there is no HTML parser in the ABAP world,
    the implementation could be based on existing HTML Parsers, like the Perl module Parser::HTML, or the Java package http://htmlparser.sourceforge.net/ . The pretty printer could then be called as external OS command.
    Are there any ideas out there? Or is there somebody who already worked in this direction?
    Regards,
    Rüdiger

    For those who are interested. I found out that the Dave Ragget's classic "HTML Tidy" (see <a href="http://tidy.sourceforge.net/">http://tidy.sourceforge.net/</a> )  is available in ABAP! There is a class CL_HTMLTIDY (at least here in my SAP_BASIS 700 system) which wraps calls of HTML Tidy by kernel modules.
    The class is undocumented, but there are 2 OSS notes of this year for it, so it might well be that it is alive.
    HTML Tidy can surely not directly be used for Pretty Printing BSP views, but for designing test cases or for doing things like HTML parsing, it might be a helpful tool.

  • Print a dms document from BSP Page

    Hi,
    I need to send a DMS Document to the local printer directly with out opening it in SAP BSP.
    I was able to download it to Desktop. but requirement is to send it directly to the printer.
    Please help..
    Thanks..

    Hi,
    I need to send a DMS Document to the local printer directly with out opening it in SAP BSP.
    I was able to download it to Desktop. but requirement is to send it directly to the printer.
    Please help..
    Thanks..

  • SRM SUS BSP Page "Compressing" when utilizing Download or Print fucntionali

    Hi  Gurus,
          We are currently facing an issues with multiple BSP application compressing the entire screen while utilizing out of the box print and download fucntionality.These BSP pages are standard SAP SUS applcaition such as Service Entry Sheet and Purchase Order.The standard out of the box Download and Print functionality creates a zip file with either an excel spreadsheet or PDF file.When those buttons are clicked the download pop up confrimation comes up but at the same time the screen is compressed, which causes the remaming sections at the bottom to be "cut off".It's a really weird quirk and we still have not found a solution.Any suggestions would be greatly appreciated.
    Thanks.
    Edited by: Manuel Silva on Sep 24, 2009 7:47 PM

    Dear Ashok,
    Please follow the below steps then it should work.
    1. Call transaction BBP_SUS_BP_ADM to start supplier replication
    monitoring.
    2. If the e-mail address is incorrect, choose Delete. Change the e-mail
    address in the procurement system and replicate the supplier master data again.
    3. If the supplier master data was not created via supplier registration, select New Business Partner. Change the e-mail address in the
    procurement system and replicate the supplier again.
    Still if you are unable to replicate the vendors then let us know.
    Thanks
    Ravi

  • Printing DMS document in BSP

    Hi Experts,
    I am working on a BSP application where i have got a requirement to directly send the document that is stored in the DMS to local printer.
    Can any one help me on this?

    Thanks Manasa.
    But my question is how to get a document from SAP - DMS (say CV03N).  If I get a document then I can convert and make it display on the BSP screen. 
    Thanks,
    Krish

  • Call print function from ABAP/BSP

    Hi all,
    I've an holiday map that is called from portal as a bsp, it open in a new window without the functions "file", etc.. an window only with the top bar (minimize, maximize and close), then, if I press CTRL-P it opens print functionality, how can I call it from a buttom in the BSP !?!?
    Thanks all for the help,
    Best Regards,
    Pedro Rodrigues.

    Hello Pedro,
    the problem here is, that the Internet Explorer provides this image with a given size for the Windows Pinting environment. The easiest way to go is surely to have image wich can fit on the paper, or many printers support "scaling". You should find this on the print dialog >> preferences >> paper / quality >> advanced. /* E.g. oure HPLJ 4050 printer supports this */
    I hope it helps.
    Regards,
    Dezso

  • Print Problem in Appraisal BSP HAP_DOCUMENT

    Hi,
    I'am using HAP_DOCUMNET Biving SP's for appraisal.I created BSP iviews in EP and i'am using them.
    There is a problem i'am facing in this BSP's,when i click on PRINT after creating Appraisal,it will ask me to either open or save in pdf.
    But when i open or save it and open it is giving me this message in Adobe
    "Acrobat could not open u2018webforms.pdfu2019 because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasnu2019t correctly decoded).
    To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF."
    Any body please guide me with a solution.
    With Regards,
    Pradeep.B

    hi ,
    the probelm with adobe (pdf) only(.i.e. pdf attachments are damaged or something) so, check the below links to get more info regrding above error...
    http://www.computing.net/answers/windows-xp/pdf-error-acrobat-could-not-open/118542.html
    http://forum.planetpdf.com/wb/default.asp?action=9&fid=6&read=62004
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=6911
    thnx
    suriya

  • Using LP01 printer for printing smartforms in BSP

    Hi fellow BSPers,
    I have developped a BSP application in CRM which allows users to have a consolidated view on the data in an order.
    Also there is a button which can print a smartform of the order using the PostProcessingFramework of CRM.
    It works great but...
    For printing the user needs to use a printer which is defined in the system.
    As expected most users would like to print on the printer they defined in windows as their default printer. From SAPGUI this can be done using printer LP01 which sends the spool to the client printer deamon.
    Does anybody know how I can use this deamon via BSP?

    I hit similar requirements in the past.  You can't use LP01 because it needs the Gui Framework to communicate with the frontend of course. 
    I like the solution of converting the SmartForm (or Sapscript or Adobe Form for that matter) to PDF.  I then display the PDF out of the BSP application (there are several weblogs on different techniques for displaying PDF and Non-HTML documents - I like the ICM Cached Response and IFrame approach).  The user then can print the PDF with their local printers (or email the document, or save it, etc).  This give considerable flexibility.

Maybe you are looking for

  • How to view excel spreadsheet in java

    Hello Is there a way to open an excel spreadsheet in java? I don't mean reading and writing from an excel file, but instead embedding excel in java. For example instead of launching excel using the Desktop class and opening a new excel window, Java w

  • All I wanted to do was buy a printer and I ended up with your rubbish

    I went out and bought a Printer!! I'm sorry I picked your printer, but hey that's life. I just want something that when I click the "printer" icon on IE8 or in my email it prints the document (hey this is to complicated) What it actually does is prin

  • "Cannot connect to iTunes Store" when trying to sign in to Apple ID

    Whenever I try to sign in to my Apple ID on the app store, it says, "Cannot connect to iTunes Store". I've tried everything here, but nothing seems to be working. It used to work before I signed out of my Apple ID. I have an iPhone 5c on iOS 7.04. He

  • Problem with filter function in tableview

    Hello, I am face the whole day with an issue. I hope to find an expert to solve my problem. I have a table on my view. And in most cases it is a standard functionality to filter the columns via mouseclick (see excel). So what I want is to implement t

  • Invoice approval functionality in R12

    HI I can apply the Invoice approval functionality on invoice matched with receipt? Or it's only applied on invoice not match with Item? Thanks