Changing Printer Default Setting

Hello Folks,
I got a requirement to change the printer default settings, but its not reflecting in ALV Reports.
Any inputs? want to change layout to X_65_255
Here is the coding i have done.Please let me know on Corrections.
    DATA: l_t_params LIKE pri_params,
          l_valid  TYPE c,
          l_f_repid      LIKE sy-repid.
    DATA: l_days       LIKE pri_params-pexpi VALUE 5,
          l_count      LIKE pri_params-prcop VALUE 1,
          l_list_text  LIKE pri_params-prtxt,
          l_text(12)   TYPE c.
*&--FETCH DEFAULT PRINTER FOR A USER
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
*&--IF DEFAULT PRINTER DOESN'T EXIST SET IT TO 'LOCL'.
    IF usr01-spld IS INITIAL.
      usr01-spld = 'LOCL'.
    ENDIF.
*&--GET THE EXISTING DEFAULT PARAMETERS
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        no_dialog      = 'X'
      IMPORTING
        out_parameters = l_t_params.
*&--MODIFY THE EXISTING DEFAULT PARAMETERS
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination    = usr01-spld
        immediately    = 'X'
        copies         = l_count
        list_name      = l_text
        new_list_id    = 'X'
        line_size      = 255
        abap_list      = 'X'
        line_count     = 65
        layout         = 'X_65_255'
        receiver       = sy-uname
        no_dialog      = 'X'
      IMPORTING
        out_parameters = l_t_params
        valid          = l_valid.
    alv_print-print_ctrl-pri_params = l_t_params.
    CALL METHOD g_o_grid->set_table_for_first_display
      EXPORTING
        i_bypassing_buffer            = 'X'
        is_variant                    = alv_disp_variant
        i_save                        = 'A'
        i_default                     = 'X'
        is_layout                     = alv_layout
        is_print                      = alv_print
        it_toolbar_excluding          = alv_excl_func
      CHANGING
        it_outtab                     = $alv_outtab[]  "because with
        it_fieldcatalog               = alv_fieldcat
        it_sort                       = alv_sorttab
      EXCEPTIONS
        invalid_parameter_combination = 1      "header line when density
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.

Hi,
Ofcourse, its different issue...Can you explain me why you have used the below code
*&--GET THE EXISTING DEFAULT PARAMETERS
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
IMPORTING
out_parameters = l_t_params.
I mean you are importing the existing default parameters but you are not modifying the parameters in l_t_params. I hope you are not required above code.
Satya

Similar Messages

  • How do I change the default setting on  the 'view scale'?

    I'll try submitting this a second time - it didn't seem to go through the first time.
    I have an iMac G5 (OSX 10.4.4.), my first encounter with Apple. I find that the default size that text displays on screen in the wordprocessing application is too small for my eyes (I ain't as young as I used to be ...). The text always displays in what seems to be about font 8 or 10, no matter what size I set the document font (it will print in the size I set, but not display in it).
    I have discovered that I can change the display size by using the 'view scale' tab in the lower left corner of the window. Size 140 suits me just fine. Problem is that I have to change the view scale each time I open a new document.
    Can anyone tell me how to change the default setting on 'view scale' ?
    iMac G5   Mac OS X (10.4.4)  

    Welcome to Apple Discussions
    You can create default documents with the settings you want for each type of AppleWorks document. I wrote a user tip, New, blank documents with your settings, that details how to do this.
    Peggy

  • How can I change the default setting for downloading photos from email?

    How can I change the default setting for downloading photos from emails I receive?  It shows the default as Photoshop Elements 4.0 and is not supported by this system.  That was my last computer!!
    Thanks,
    Sheila

    That has nothing to do with styles nor Pages, it is a System/Printer Driver setting.
    You can experiment to see if the Printer Settings stick with your document, but in the past this has not worked.
    Peter

  • How do I change the default setting from Pages to MS Word for Mac?

    How do I change the default setting from Pages to MS Word for Mac?

    https://discussions.apple.com/message/13008817#13008817

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • Change the default setting for report painter reports.

    HI All
    Can we change the default setting in SAP/R3  in the report painter reports  for the selection screen options?
    If yes,Please let  me know how we can change the default settings.
    Thanks in Advance
    Best regards
    Venu

    HI
    We have a report developed in the report painter for profit center accounting and we have selection screen for this report.
    Few of the selection screen fields parameter are set by default and we need to change the default setting for the selection screen fields parameters.
    How and where do we  set or change the default parameters for the selection screen ?
    Thanks in advance
    Best Regards
    Venugopal

  • When I download Microsoft word documents (if have word 2007), I have somehow changed the settings and it downloads them in wordpad, and the format is very bad and I can't read a lot of the document. How do I change the default setting back to using Micro

    When I download Microsoft word documents (if have word 2007), I have somehow changed the settings and it downloads them in wordpad, and the format is very bad and I can't read a lot of the document. How do I change the default setting back to using Microsoft Word 2007 to open these documents?
    == This happened ==
    Every time Firefox opened
    == about a few weeks ago - I had tried to open some docuuments saved on a mac, my PC (which runs Windows 7), used word pad to open these, and this seems to have changed the default settings somehow.

    See this:
    [http://support.mozilla.com/en-US/kb/Managing+file+types]

  • Change the default setting of 'Match entire cell contents' in Excel 2007

    Hi,
    I am using Excel 2007 on Windows 7 and need to search the contents of cells in a large spreadsheet on a regular basis.
    When I open the Find and Replace dialogue box, the Match entire cell contents option is always checked. I deselect this to search for the cell contents I require. If I then enter any values into a cell and try to search for another cell,
    the Match entire cell contents option is activated again.
    Is there a way to change the default setting for this checkbox to be off rather than on?
    Thank you,
    Nitin Suneja

    Hi Chad,
    I will check if it is something localised to the spreadsheet itself as it is shared by a number of people and all are having this problem with this sheet.
    Thanks for looking into this for me.
    Nitin.

  • Does Adobe plan to change the default setting and start trusting the Windows Certificate store?

    there are rumors that Adobe will be forced by the European authorities to change their default setting in Adobe Reader and automatically trust the European qualified CAs, or even the entire Microsoft Windows trust store.
    I wonder if it is just a wishful thinking of some of the players in the market, or is it something that we should expect sometimes soon?

    Pretty sure that's just wishful thinking. Microsoft doesn't even trust Microsoft, so to speak. Ever turn User Account Controls to the highest setting and then run Windows Update? Windows tries to warn about updates from their own site, through their own updater (IE), which is the ONLY way to access or run the updates.
    Until Microsoft can ELIMINATE the possibility of bieng spoofed, and until we one day live in a virus free world, trust will always be an issue. Be it Adobe, or Roxio, or Mozilla, or....

  • Change printer default settings

    I have and HP Officejet Pro 8600.  The print default setting is to print colour.  How do I set the default setting to Black Ink  
    Regards

    Go to Devices and Printers, right click the printer, click Printing Preferences then go to Advance tab, usually there is an option there that you have to set to print only in grayscale. Hit Apply then ok, then close the window.

  • How do I change the default setting on messages I print in "Mail".

    I know I can use the Font box on the tool bar and change each individual message but I don't want to have to do this. I can't adequately see the present default setting. I am sure it is something simple, but being new to the Mac I can't seem to find the right solution.

    Go to Mail>Preferences>Fonts and colors and set your font permanently there.

  • Change Printer Default Page size to A4 from Letter in Firefox

    Firefox overides printer default page size every time I print. I need Firefox to print to A4 but it automatically sets the Page size to Letter. I have to manualy change the size each time I print.
    There are no options in Firefox to change this setting permanently. I am running the latest version of Firefox on Windows XP.
    In control panel the default page size is set to A4 which Internet Explorer and other applications use correctly.
    Thanks,

    I solved it! For anyone having a similar problem try this.
    Change the default printer, choose another one.
    Change something in that printer and close firefox.
    Reopen firefox and choose yet another printer (not the first one).
    Change something in that printer and close firefox again.
    Reopen firefox and choose the first printer. Select A4 as default paper and close firefox one last time.
    Reopen firefox and the problem should be gone. Weird, innit?

  • Change printing default presets?

    Whenever I print, currently on an Epson NX420, I have to go in and change one of the presets for color options to OFF (no color adjustments) and I'd like this to be the default. Some pages seem to take a very long time to print if I haven't changed this setting.
    I can create a new preset; but would like to change the default altogether.

    You can change the printer defaults via the CUPS web page. But by default, the CUPS page is blocked. To enable it, open Terminal and type "sudo cupsctl WebInterface=yes" (without the quotation marks). Enter the admin password when prompted and then refresh the browser view.
    With CUPS web page open, select the Printers tab and then select the printer you want to modify. Then from the Administration drop menu, change to "Set Default Options".
    This will show a new page with four menu headings (links); Options Installed, General, Banners and Policies. Select General.
    Scroll down the list until you find the option you want to set as default.
    With the option select you then need to scroll down the list to the bottom of the page where you will see the ‘Set Default Options’ button.
    When you click the 'Set Default Options' button you will then be presented with an authentication window. Enter the account name and password that has been set as the admin for this Mac. And then press the Log In button. You will then see another page stating that the information change is completed.
    You can now exit the CUPS admin page and check that the change is set.

  • Change printer default settigns for all sheets

    We are running Office 2007/2010/2013. Normally, our client send us an excel file with 20 or 30 jobs (sheets).
    Our Canon printer default settings is 2 sided on 1 page. When we change the default settings from 2 sided to 1 sided, we need to do it one sheet at one time. In other words, we need to do it 20 or 30 times for that excel file. We wonder
    how to change the settings from 2 sided to 1 sided that will change whole book settings.
    Bob Lin, MCSE & CNE Networking, Internet, Routing, VPN Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com

    right click sheet1=>select all sheet=>set print on one side.
    KR

  • Crystal Reports changes printer symbol set to ANSI

    Is there a setting somewhere that keeps Crystal from changing the symbol set on my printer to ANSI, so I can let it use the Internal default?

    No, it's likely a print driver issue. Ask them or install the latest driver for your printer

Maybe you are looking for