Controlling printer formatting from within program

Hi Experts,
I have a requirement in which the user wants to that the printer's default setting of format 'X_65_1024'  should be changed to 'X_65_255' in case of if he executes this perticular report.
The output of the report is ALV list display.
Is it possible to control printer's setting from within the program?
I serached and found two FMs.
'SET_PRINT_PARAMETERS' and 'GET_PRINT_PARAMETERS' .
But I am unable to understand how to use these FMs.
Is there any other way to achieve this?
Any pointers to resolve this issue would be very helpful.

Hi,
look here:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm
All Print Parameters are described.
And a little code example:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      destination    = lv_pdest
      copies         = lv_count
      list_name      = lv_lnam
      list_text      = lv_prtxt
      immediately    = lv_flg_prn
      release        = ' '
      new_list_id    = 'X'
      expiration     = lv_days
      line_size      = 255
      line_count     = 65
      layout         = 'X_65_255'
      sap_cover_page = ' '
      cover_page     = ' '
      receiver       = lv_prrec
      department     = lv_prabt
      no_dialog      = 'X'
    IMPORTING
      out_parameters = ls_params
      valid          = lv_valid.
  IF lv_valid <> space.
    NEW-PAGE PRINT ON
      PARAMETERS ls_params NEW-SECTION NO DIALOG.
ENDIF.
Hope it helps.
Regards,
David

Similar Messages

  • TS1647 My Macbook Pro will not print anything from any program. I've reinstalled the drivers. I get an error message in Word that says, "Word could not communicate with printer." Any ideas?

    My Macbook Pro will not print anything from any program. I've reinstalled the drivers. I get an error message in Word that says, "Word could not communicate with printer." Any ideas?

    Be sure to try restarting, if you have not done so since this problem occurred.  You should also power off the printer while you do the restart...
    If that does not help, you can try resetting the printing system.  Open System Preferences Print & Scan (or Print & Fax) pane.  In the sidebar with list of printers, right (control) click anywhere.  Select Reset printing system.  You will have to add back your printers after you do this.

  • Dynamically switch printer tray from concurrent program in Oracle Apps 11i

    Hi All,
    We have a requirement to dynamically switch printer tray from concurrent program .
    In the application we had a printer "*Printer1*" defined ,the printer (physical) printer have two trays and it always pick paper from Lower tray
    To test the functionality I created one more defination " *Printer2*" in the application .
    For this second printer created one more PPd files Printer2PPD2 . In this Printer2PPD2 the value of DefaultInputSlot i gave as Upper,so that printer will pick paper from upper tray
    As we are having the PASTA configuration hence in the "uiprint.txt" entered the definations for Printer2 and also mentioned the PPD file.
    So in the concurrent program i selected Printer2 and executed the program.But instead of picking from upper tray it picked from lower tray.
    I could know this because in upper tray I had counted the number of papers so if the paper would have been picked ,the count would have reduced by 1.
    Please let me know the solution for this issue.
    Thanks and Regards
    Jaydeep

    Please refer following notes:
    Dynamically Switching Printer Trays [ID 66402.1]
    How to Specify a Printer Paper Tray With Pasta [ID 241086.1]     
    thanks

  • Change printing format from landscape to protraite

    user is trying to print billing Document
    How to change printing format from landscape to protraite from SAP level
    Thanks in advacne.

    Hi,
    Check the attributes of the smartforms or sapscripts.
    You can give the option for landscape or potrait format.
    For sapscript, the option is available in the basic settings tab.
    For smartforms, the option is available in the output options in the page window.
    Regards,
    Ankur Parab
    Edited by: Ankur Parab on Dec 22, 2009 5:43 PM

  • Controlling print quality from the touchscreen on the MG6320

    Hello, I have a two-part question. I'm interested in controlling print quality from the touchscreen display.
    1. Can I set print quality (i.e. - choose draft/fast mode) from the touchscreen display?
    2, if I can and do set it there, will my selection apply to all future print jobs until I change the setting again, or will it just apply to the one print job in the queue at the time, etc?
    I hope my questions are clear. Many thanks for your help.
    Solved!
    Go to Solution.

    Hi Ralp51,
    The print quality of documents printed from your computer is controlled be the printer driver on the computer.  The quality cannot be adjusted from the PIXMA MG6320 itself.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Printing checks from payment program F110 with smartforms

    Hi! I am working in ECC 5.0 and I want to print checks from the payment program with a smartform, I created a non standard smartform but when I try to link the smartform with the program by transaction FBZP the available options are SAPScripts only. Is possible to do it?
    Thanks in advance

    Hi! Even I am working in ECC 5.0 and I want to print checks from the payment program with a SAP SCRIPT Form, but the issue is that we hav the standard print program for printing the form and this form is being used by some other custom program....I want to customize the standard print program in the transaction F110 so that It successfully calls that form which is now called by some other program. I've the option of customizing the standard print program as per the program which is calling that Form but I'm not able to understand the flow of either of the print programs. Can anybody guide me here on how to understand the flow of the print and go for the customizing of the standard print program for the payment process?
    Also, the current print program and Form which is being used by some other custom print program is already customized in the transaction FBZP.
    Thanks in advance
    Shamim

  • Printing barcode from ABAP program

    Hi,
    Is it possible to print barcode (using zebra barcode printing) from ABAP program directly without using Smart Form, SAP Script or Adobe PDF Form.
    I have the barcode instructions, I just want to output it to the barcode printer directly.
    Sample instructions to be output to barcode printer:
    FT128,288XG005.GRF,1,1^FS
    FT96,128XG000.GRF,1,1^FS
    FT64,192XG001.GRF,1,1^FS
    FT0,288XG002.GRF,1,1^FS
    FT0,224XG003.GRF,1,1^FS
    FT128,256XG004.GRF,1,1^FS
    FO16,180GB496,0,5^FS
    FO52,37GB450,66,4^FS
    BY4,3,40FT86,320^BCN,,Y,N
    FD>;123456>67FS
    PQ1,0,1,YXZ
    XAID000.GRFFSXZ
    Thanks in advance.

    Hello,
    Yes we can do it..
    Go through this link you will some idea
    http://sapprograms.blogspot.com/2008/11/barcode-printing.html
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm

  • After a recent update of Photoshop CS6 (via Creative Cloud downloader) I cannot print directly from the program. A print error is shown in the printer document queue.  I can print from all other programs including Illustrator. Any solutions to this proble

    When I copy the Photoshop file to another computer with an old version of Photoshop (CS2) I can print OK from it

    Nobody can help you. You have not provided any proper technical information like system info, what printer, what settings etc.. You need to do a lot better before people can even begin to guess and help you.
    Mylenium

  • Printing To PDF Printer Driver from within a program

    Does the Adobe PDF Printer Driver allow parameters for file name and no display of resulting PDF.  I want to print to it and create a specifically named file without being asked for the filename and with a 'preview' display.  If I cannot do this, what do I need?  Is there an SDK, and if so, is there a run time that can be distributed without royalty along with apps developed using the SDK.  I generally use GDPicture control for this but wondered if I could do it with Acrobat.

    Please ask in the Acrobat SDK forum.

  • How can I control print quantities from the main browser?

    So here's the workflow question
    I want to select photos to print but I want to print a different quantity depending on criteria. The photos may be in different albums, etc..
    Selecting them all and trying to set the quantity in the Print Order window is painfully awkward.
    What I really need to be able to do is browse my photos and assign a value to them where the value represents the number of prints that should be created for that photo.
    For example, I can assign those colored lables quite easily by just pressing  CMD-1, CMD-2, CMD3, and so forth.
    So lets suppose I navigate around my photo collection and I assign a color to particular photos where the number of the color represents the desired quantity.
    It's very easy then to create a smart album that just shows the photos that have been tagged this way.
    However, there is no way then to order prints in one go with the appropriate quantities (other than the manual mechanism in Print Order window) and if I order them as separate groups, I have to pay shipping costs multiple times.
    I'm wondering if someone has created an automation script that can use the color (or some other textual tag) that can then be used to submit a print order with the quantities of each photo derived from that color or textual tag?
    I hope this question makes sense, it feels awkward to describe.

    If you have an iPhone, you can go to the app store and get Keynote Remote for free. The trick to make it work smoothly is to first establish your Macbook Air as wireless network. Then you use your iPhone to control the slideshow remotely, by swiping from slide to slide -- even from quite a distance.
    Turn on your Macbook Air's airport (wi-fi), then select Create Network.
    Once your Macbook Air is turned on as a network, open Keynote on your computer and your slideshow, but don't start the "view slideshow" mode just yet.
    Open up Keynote Remote and if it doesn't connect automatically to your Macbook Air then select the network in Options.
    Then start your slideshow from your iPhone -- you will notice each slide appearing on your iPhone as a reference.
    If you still have difficulties linking, go into the Keynote preferences menu on your computer and make adjustments in the tab Remote. (And don't be fooled by the Bluetooth option -- strangely at this point it doesn't work between the iPhone and the Macbook -- only wireless.)
    *Extra: You can enable "speaker notes" to show up on your iPhone below the picture of the slide.

  • Saving/Printing work from within a .swf file

    Okay so here's the deal. I have to create a flash game in
    which users will be creating artwork. When users are done with
    their artwork we want them to be able to SAVE their work, EMAIL it
    to a friend, and PRINT it out all within the .swf file.
    HOW IN THE WORLD DO YOU DO THIS?????? I have been searching a
    researching and going through many forums and tutorials trying to
    see if anyone out there can help but I have come up with nothing.
    Although I did come a across a website that was able to achieve
    what we are looking to do in this flash game.
    Click here to view
    Snowflake Website
    On this website users can make snowflake art the old fashion
    way but this time on the web within a flash site. When users are
    satisfied with their snowflake they can save it and the snowflake
    is added to an ever growing database of user created snowflakes
    that also can be viewed by others at anytime. Users are also given
    the option of emailing their snowflake design to friends and
    downloading their design as a JPEG or and EPS file. You can also do
    the same to any of other numerous snowflake designs with the
    snowflake design database.
    HOW IN THE WORLD DO YOU DO THIS??? I have contacted the
    agency that was responsible for creating this site for their help
    as well but any assistance I can get from you guys would be greatly
    appreciated as well.
    Still quite confused but eagerly awaiting your
    responses.

    Printing object:
    on (release) {
    //creates the object of the class printjob
    var pj:PrintJob = new PrintJob();
    //starts the procedure
    //opens the windows printing window
    pj.start();
    //sets the printing area (i may be made outside the stage,
    so using the A4 area and adding any other information that should
    not appear on screen)
    area = {xMin:0, yMin:28, xMax:465, yMax:296};
    //printing options - true=bitmap / false-=vetor... bitmap
    generates a bigger file, but results in better quality for images,
    vector is smaller and a good option if you work just with text
    options = {printAsBitmap:true};
    //adds the page the the printing queue
    pj.addPage(_root, area, options, null);
    //sends the page to the printer
    pj.send();
    //deletes the object to clear memory (very important)
    delete pj;

  • A better way to print text from within java ?

    Hi, I want to make an app that brints out a bill (part of a bigger project for school) and I already know how to make my object printable and print it, but the "problem" lies in the graphics (or graphics2D) object that the print function uses to draw on the printable.
    The bill contains large amounts of text and as far as I know graphics and graphics2D only have drawString() as method to draw a string, and on top of that it does not support the newline char, so is there a way to print large amounts of text in another way ?
    also, since I'm using numbers and currency, would it be possible to alight text, so that it ends up like this:
    name of item          100.00 Euros
    name of other item       1.00 Euronicely aligned to the left for the names, and to the right for the numbers, the problem is that i'd like to keep that in a nonfixed width font, so calculating the needed position will be hard.
    thanks in advance,
    Boran.

    Within the 2D Graphics system there are methods for dealing with this. Check out the AttrributedCharacterIterator class and the TextLayout class. A good read is
    'Java 2D Graphics' by Jonathan Knudsen published by O'Reilly ISBN 1-56592-484-3 .

  • How to control labview VI from a program not written in LabView on another computer?

    I am tasked with finding a way to control (an existing) LabView application (VI) from another computer (networked together) as part of a larger application which is not constructed in LabView (likely C# .Net Windows app).
    So, I am looking to find a solution that
    a) requires minimal change to the existing stand-alone LabView VI
    b) does not require LabView on the remote (controlling) computer.
    Controlling the LabView application involves communicating various setpoints etc, controlling start / stop, and getting back from the application some measured data values; could be treated as file transfer or data streams.
    Will it be fruitful to look into controlling the VI over TCP/IP? I gather that support exists in LabView for sending and receiving data over TCP connections. This approach would I guess require code to be added to the existing VI to handle commands and requests on the connection; simulating the ability to interact with the front panel.
    Are other options available? I see in the help pages mention of DataSockets and web services among other approaches.
    I am totally new to LabView, so all suggestions gratefully received, but please don't assume any knowledge of LabView.

    You can control LV from other applications using the ActiveX interface from VI Server. Since you want to do this from a remote machine, you would have to enable ActiveX-access using DCOM. This is a rather worksome efford and to my experience not really suggested.
    So i suggest you to define a TCP-based protocol for remote control of your dedicated application. This of course is only valid, if the application is already running on the "server". So your "client" connects, sends commands which are executed by the "server" and data and status information is sent back. And you are correct that this will require (significant) changes to the LV application.
    Web Services are also a valid approach if you can connect to web based applications. LabVIEW utilizes RESTful Web Services architecture. REST provides a lightweight
    protocol accessible to a wide variety of clients. The architecture does not
    require complex message parsing and provides a simple interface for you to begin
    using Web Services
    in LabVIEW.
    Other methods are possible, but i recommend you to pick one of those.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Print Element from within Include that calls Perform with WRITE_FORM

    hello,
    the subject title pretty much says it all.
    i have a standard sap program, and customized sapscript.
    i need to output a new element.
    i have an /:INCLUDE in the sapsript, this include will contain my /:PERFORM statement.
    in my perform code, i will have my WRITE_FORM function module with my ELEMENT
    now everything seems to run, only my element does not get printed.
    any ideas ??

    Hi gigle,
    Have you passed the element to write_form.
    call function 'WRITE_FORM'
    exporting
       element                        = '  '-->(pass the text element)
    Regards,
    Sravanthi

  • Giant print font from internet programs when printing with Firefox

    When printing from any internet application when I use the print hot link or the printer from the tool bar the print is GIGANTIC. A single page prints on 4 pages. I logged in to Internet Explorer and I do not have this problem from that browser. I went to about:config and reset the printer and still the same problem. I have printed from maps.google.com, from my online banking and credit card apps. When printing from email and printing .pds' no problem. When print Word documents, no problem. Something changed in Firefox and I can't find it for the life of and I am wasting a lot of paper. Please advise.

    Please check you are logged in, and try again.
    Why do I get this ERROR message when I try to confirm my question by clicking on the link in the email?

Maybe you are looking for