[SOLVED] Problems with setting default printer in Libreoffice

Everytime I print in Libreoffice it complains about me not having set the default printer. Where do I do that in Libreoffice or is it refferring to my setup in cups? Also in systemsettings under KDE4 when I try to manage my printer and I try to set it as default I get the following error:
Der opstod en fejl under CUPS-handlingen: "client-error-forbidden".
EDIT: Fixed by setting default under cups administration.
Last edited by fettouhi (2013-12-08 14:48:04)

mahen wrote:
bkadoctaj : this is actually exactly what I did as well. It works, although there is still a strange behaviour compared to under Ubuntu for instance :
- The printer wasn't detected, I had to add it from the CUPS web interface
- Libo complains about "no default printer" although I definitely set it as default in the aforementioned interface
(I use cups-usblp and splix-svn due to my specific hardware)
Hmm, weird... as far as I can tell LibO is using my CUPS-defined default printer as its default.  Thanks for the feedback - you made me glad that I wasn't posting something irrelevant lol.
Possibly a stupid question but your user is a member of the lp group, right?  I don't have anything set for "Allowed Users" in CUPS but you could also try adding your user there.  Curious to hear of a solution if you find one.

Similar Messages

  • Obiee 11g . problem with set default as columnname in interaction tab

    Hi Obiee gurus ,
    I have small problem with set default option in interaction tab in column properties. actually my problem is , i changed one column bold save as set default option bold and how to revert back to my column option. when i create new analysis with same name . it takes set default option for that column.
    can Please give some suggestion for this problem.
    regards
    Srinivas

    Hi Srinivas,
    i guess this will be same for 11G
    Refer
    http://blogs.oracle.com/siebelessentials//2008/08/remove_systemwide_default_sett.html
    thanks,
    Saichand.v

  • Problem in setting default printer in smartform

    i want to set the default printer from Program not from User Default device.
    i am using below fields to set...still system taking printer from user defaults...
    please tell me what more parameters we need to pass,....
    OUTPUT_OPTIONS-TDNEWID = 'X'.
      OUTPUT_OPTIONS-TDIMMED = 'X'.
      OUTPUT_OPTIONS-tddest  = 'AFR1'.
    contraol_param-NO_DIALOG = 'X'.
      contraol_param-PREVIEW = 'X'.

    in the fm u need to make USER SETTING parameter as ' ' most probably it is set to 'X' right now.
    кu03B1ятu03B9к

  • [SOLVED] Problems with setting up 32-bit chroot environment

    Recently I've moved to Arch64 and decided to build chroot environment in order to have a working flashplugin, Java and some other applications without messing up system libraries of two different architectures. I've followed directly instrucions from the wiki, but unfortunately still can't make it work. I'm stuck with
    Kod:
    bash-3.2# /etc/rc.d/arch32 start
    :: Starting Arch32 chroot [DONE]
    bash-3.2# xhost +local:
    No protocol specified
    xhost: unable to open display ":0.0"
    bash-3.2# chroot /opt/arch32
    I've googled a lot, asked on Polish Arch Linux forum, but so far I wasn't able to find a working solution. Can someone more experienced give me a hand with this?
    Last edited by Zibi1981 (2008-11-14 22:35:48)

    I have a working 32 bits chroot on a 64 bits system. My /etc/rc.d/arch32:
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    case $1 in
    start)
    stat_busy "Starting Arch32 chroot"
    mount --bind /proc /opt/arch32/proc
    mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
    mount --bind /dev /opt/arch32/dev
    mount --bind /dev/pts /opt/arch32/dev/pts
    mount --bind /dev/shm /opt/arch32/dev/shm
    mount --bind /sys /opt/arch32/sys
    mount --bind /tmp /opt/arch32/tmp
    mount --bind /home /opt/arch32/home
    add_daemon arch32
    stat_done
    stop)
    stat_busy "Stopping Arch32 chroot"
    umount /opt/arch32/proc/bus/usb
    umount /opt/arch32/proc
    umount /opt/arch32/dev/pts
    umount /opt/arch32/dev/shm
    umount /opt/arch32/dev
    umount /opt/arch32/sys
    umount /opt/arch32/tmp
    umount /opt/arch32/home
    rm_daemon arch32
    stat_done
    restart)
    $0 stop
    sleep 1
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    I have the arch32 daemon in my /etc/rc.conf and I run this when I want to use the chroot:
    #!/bin/sh
    /etc/rc.d/arch32 start
    xhost +local:
    chroot /opt/arch32 su -l username -c "linux32 zsh"
    Is it similar to your setup?

  • WIndows 8.1 printer error: windows cannot print due to a problem with the current printer set up

    My HP OFFICEJET 8500 PRO was working just fine wirelessly until I installed the Windows 8.1 update from the Microsoft.  Now I cannot print at all.  I get an error that says,  "windows cannot print due to a problem with the current printer set up".  I have tried reinstalling and a ton of other solutions to no avail.  Can someone PLEASE Help!

    Hello there, @jesseangelique ,
    Welcome to the Community!
    I would love to help you with the printing issue you're having, since the Windows 8.1 that was done.
    Please run the Print and Scan Doctor. Write me back with the results or post a screen shot of the results and I will have a look at them.
    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.
    Also, let me know which Officejet 8500 Model you have:
     HP Officejet Pro 8500 All-in-One Printer - A909a
     HP Officejet Pro 8500 All-in-One Printer - A909b
     HP Officejet Pro 8500 Premier All-in-One Printer - A909n
     HP Officejet Pro 8500 Wireless All-in-One Printer - A909g
    Hope to hear from 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!

  • Setting default printer with printers deployed via print management

    Would like to set default printer on a windows 7 workstation to a printer deployed through group policy using print management.  However whenever machine reboots the defualt changes to a local printer XPS or something else.
    HOw can I set the default printer to one of the deployed printers?

    Even though this is a "machine" connection, the connection is created in each users security context.  Default printers are tied to user profiles and settings.
    I'm sure what is happening is the connection is getting created after the system sets a default or the network path is not yet available when the default printer is set.
    You can use prnmngr.vbs to get and set the default.  If get returns XPS printer, then set can change to one of the valid connections.
    Alan Morris Windows Printing Team

  • Problems with setting up my ISP's mail server in Windows Live Mail and Thunderbird

    The laptop is a G60-535DX with Windows 7  64 bit. I've managed to setup my gmail account fine in Live Mail, but when setting  up my ISP' mail server, it doesn't work. I get the message that the information was entered correctly, and I see the 'connecting' at the bottom of the page, and then 'error', and clicking on it shows a socket error #10061. In Thunderbird, I get a timeout error message. I've entered all the incoming and outgoing server information correctly, (I've done this over 8-9 times now), the ports are the defaults(110,25), no SSL, no authentication. I've talked with my ISP several times. Just a couple of hours ago was the last time. Their only other possibilities were that Live Mail had problems with setting up more than one account, that Live Mail needed updating, that Windows 7 was a new operating system and there were 'kinks'. I removed the gmail account, set up the ISP's mail by itself; didn't help. I checked for Live Mail updates, but found out that they all come from Windows updates(which are current).  The folks on PCQ&A inform me that they have 3 or 4 accounts with Live Mail. I can get my mail, by logging onto my ISP's website, but that' kind of a nuisance. I posted this in Seven Forums and they didn't have any ideas. As I said, I also can't get my mail server to work in Thunderbird, either.  I don't know what else to try. (short of activating the recovery partition and starting from scratch). Any ideas would be more that welcome.
    Thanks,
    Steve

    Stevehiker wrote:
    Nevermind, it's fixed. One of the guys on PCQ&A suggested going to my ISP's website to see if they had a support page. They did and it stated that under certain circumstances that for the login ID the whole email address should be entered. For XP and Outlook Express one only uses the first part of the email address (your name); so just for grins I entered the whole address, name and all and everyting worked. Called my ISP and was told that that wasn't the way it's supposed to work. Well----
    Thanks anyway,
    Steve
    Mine works the same way_must enter full email address as login. AT&T?
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Group Policy - Computer Startup Scripts - Add/Set Default printer

    Good Morning.
    Let's say we have 2 offices, A and B, and only 1 user.  The user is using Roaming Profiles.  Each office has its own printer.
    What I am trying to do, is make a Startup script that is specific to the COMPUTER being logged into so when any user logs into that computer, they get the printer in that office defined and set as default.
    I am able to do this successfully with my script but ONLY if i have the script be on the USER side of GP (i.e. in the Logon script section)
    That is great that that is working however, when my user goes to Office B, they still get mapped to Office A's printer if I use that method.
    So I figured I could just modify my GP and run the same script from the STARTUP section of the computer, rather than the LOGON section of the user.  It does not work.
    Here is my script:
    Set WRFCUNetwork = CreateObject("Wscript.Network")
    PrinterPath = "\\fileserver\MAINTELLER"
    PrinterDriver = "PrinterDriver"
    WRFCUNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WRFCUNetwork.SetDefaultPrinter "\\fileserver\MAINTELLER"
    This is where I Have the script placed:
         Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)
    Once i'm in there, I double click Startup, click Add, and select my script which is named:
         MainPrinterSetup.vbs
    I have this GP applied to ONE OU, and that OU has ONE computer in it (my test computer)
    I login with a brand new user called "testuser" (creative, huh?) and basically nothing happens
    except they log in and have some Microsoft Document Image Writer printer set as default (which by the way sure does slow the PC down to the point of it almost being broke if anyone actually tries to print to that by accident)
    No Main Teller Printer, no anything.
    The strangest part about this is, if i apply this script to the user LOGON scripts, it works fine, the printer is there, and is set as default. (but see above why that wont work for my situation)
    So obviously the script works fine, but I guess i'm missing something when it comes to applying GP's to Computers rather than Users.
    Can anyone shed some light as to why the script is not running (i'm guessing the script isn't even attempting to run, rather than failing, but i have no way to know that)
    Thank you in advance!!
    Derek Conlon
    Network Administrator
    WRFCU
    EDIT:  Here are the PC's info that i'm working on:
         Server:  Windows Server 2003 Standard Edition (where my GP's are created and managed with AD)
         Target PC:  Windows XP Professional SP3
    EDIT #2:  I manually navigated to the Script file after logging in and "opened" it and it added and set the default printer no problem.  the issue is definately with the script running at startup.

    I wanted to clarify a few things:
    1. While it is true that printer connections are usually per user, it is definitely possible to create "global printers".  There are a number of ways to do this, but two methods that come to mind are using:
    a. "Rundll32 printui.dll,PrintUIEntry" option with the "/ga" switch.  The "/ga" switch is the key here since it allows you to deploy printers "per machine" instead of "per user".  More information
    about this is available at:
    http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm
    http://technet.microsoft.com/en-us/library/ee624057%28WS.10%29.aspx
    http://www.computerperformance.co.uk/Logon/logon_printer_computer.htm
    http://www.robvanderwoude.com/2kprintcontrol.php
    b. The Print Management console that is available in Windows 2003 R2 and higher can help you deploy printers "per machine" in addition to "per user".  More information about this is available at:
    http://www.czsolution.com/print-management/print-management/print-management-console.htm#DeployingPrintersByGroupPolicy
    http://technet.microsoft.com/en-us/library/cc753109%28WS.10%29.aspx
    2. As Guy mentioned, Group Policy Preferences can help set the default printer.  But there is another way to accomplish this.  The problem with the computer startup portion is that it runs before the user logs in.  And applying this script
    in the login script section would not work per computer unless you used loopback processing.  So another way to do this is to place a script that sets the default printer into the "All Users" startup folder.  Items in the "All Users"
    startup folder run for any user that logs into the computer, but it runs in the user's context.  So, this script would effectively set the default printer on a "per machine" basis.  The script method is a cruder way to approach the problem,
    but it will help get the job done.  Here are some resources on setting the default printer via script:
    http://www.intelliadmin.com/index.php/2007/08/set-default-printer-from-a-script
    http://www.computerperformance.co.uk/ezine/ezine17.htm

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • Problems with your HP printer after upgrading to Windows 8.1

    If you are experiencing problems with your HP printer after upgrading to Windows 8.1 please click on the below link and install the HP Print and Scan Doctor and run the utility to fix the issue.
    www.hp.com/go/tools.
    I was an HP employee
    If I have helped you solve your issue please mark it as solved
    **Say Thanks By Clicking on the Kudos Star**

    Hi.....my laserjet 1536dnf mfp was working perfectly with win 8 pro....then I installed win 8.1 pro and now the computer ,which is part of a network,can not communicate with the scanner of the printer--it prints just fine. On another computer (running win 7 ) on the same network, the scanner and all other printer functions  work just fine.
          I have tried installing the latest drivers from HP......scanner still not "communicating" with computer.....also temporarily disabled firewall.....please help...all the best -David G (gossat)

  • Problem with countinuous paper printing in dot matrix printer

    Hi All,
      I have problem with dot matrix printer (Devise Type EPESCP) while printing continuos printing. If  i am printing 2 or more than that prints at a time, 2nd page is printing 5 lines up.
    I have developed one smartform for this and i have used A4 size page format.
    I have tried to change the Printer initialization code to 86 lines for DINA4.  Still no change in continuous printing.
         Printer initialization
         Reset after exit
         Cover page
         First Page
         Start of even page
         Start of odd page
         Start of page
         End of first page
         End of even page
         End of odd page
         End of page
         Start of line on an even page
         Start of line on an odd page
         Start of line
         End of line on an even page
         End of line on odd page
         End of line
    Printer initialization
    # reset
    \e\0x40
    # select character table 3 -> PC 437 character set
    \e\0x74\0x03
    # set line spacing 6 LPI
    \e\0x32
    # set page length 86 lines
    \e\0x43\0x46
    # cancel bottom margin
    \e\0x4F
    # set left margin to 0
    \e\0x6C\0x00
    # select LQ quality
    \e\0x78\0x01
    # select non-proportional spacing
    \e\0x70\0x00
    Can any one help me.
    Thanks,
    Vishnu

    Hi Vishnu,
    Above you have the following commands:
    set line spacing 6 LPI
    \e\0x32
    set page length 86 lines
    \e\0x43\0x46
    46 HEX = 70
    So the above settings mean 70 lines at 6 LPI = 11.66 inches.
    So is the paper length 11.66 inches? If not, you should adjust the settings accordingly.
    Regards,
    Aidan

  • Set Default Printer based on user setting using Powershell script

    Hi 
    I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in.
    This is because local printers are set as default printer (PDF Creator Programs) when we all use Network Printers so this means a user has to set default printer to the network printer all the time.
    I have found this script to start with:
    $Printer = Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select name | out-file C:\temp\Printer.txt
    But the out file looks like this:
    name
    \\PrinterserverName\Accounts01
    Which I dont see how it can be used on another script plus there are spaces after\Account01 
    Any Ideas please?
    M
    Maelito

    Hi Maelito,
    According to your description, you want to export the default printer name to text file, then read this printer name from text file and set the default printer via Powershell:
    #save printer name to text file
    Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select -ExpandProperty name | out-file C:\temp\Printer.txt
    # read printer name from text file and set default printer
    $name=get-content C:\temp\Printer.txt
    (Get-WmiObject -Class Win32_Printer -Filter "Name='$name'").SetDefaultPrinter()
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Cannot print due to a problem with the current printer

    Cannot print (anymore) due to a problem with the current printer is the message I get every time I try to print something out. I tried to reinstall the printer's software, I changed the cables, but nothing happened. It seems to be something related to the printer setup utility. Any big idea on how to solve this? I was printing without problems until this afternoon. I have a HP Laserjet 1022 and sometimes I use Adobe Acrobat Writer. None is currently working.
    Thanks for any help.
    Power Book G4   Mac OS X (10.3.9)  

    I just had the opererational system (10.3.9) reinstalled . Back to normality again.

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • Problem with the default selection screen condition

    hi guys,
    I have got some problem with the default screen given by the PNP logical database, P0000 infotype automatically populated according to the condition given in default screen.
    Reg,
    Hariharan

    Don know what u r trying to acheive.
    1) when u have specified PNP in the logical databse field of attributes of program, the SAP wil proivde u default PNP screen and here u can also add ur paramters if u want.
    2) in the program u have to declare like
    INFOTYPES: 0000,0001. "Etc
    for all the infotypes u want to use in the program.
    3) it is the GET PERNR event which wil fil all the p0000 and p0001 (internal tables for al the infotypes declared via INFOTYPES syntax as shown above)
    4) after tht get pernr, u now have data in P tables and u can use it for further reporting.
    5) refer below dummy code -
    REPORT  ZPPL_PREVEMPLOYERS   message-id rp
                                 line-size 250
                                 line-count 65.
    *Program logic :- This Report is used to Download all the Previous
    * Employer (IT0023) records of the employees
    *eject
    *& Tables and Infotypes                                                *
    tables: pernr.
    infotypes: 0000,
               0001,
               0002,
               0023.
    *eject
    *& Constants                                                           *
    constants: c_1(1)       type c               value '1'   ,
               c_3(1)       type c               value '3'   ,
               c_i(1)       type c               value 'I'   ,
               c_x(1)       type c               value 'X'   ,
               c_eq(2)      type c               value 'EQ'  ,
               c_pl03       like p0001-werks     value 'PL03'.
    *eject
    *& Selection-Screen                                                    *
    parameters: p_file  like rlgrap-filename default 'C:TempABC.xls',
                p_test  as checkbox default c_x               .
    *eject
    *& Internal tables                                                     *
    * Internal Table for Output
    data: begin of t_output occurs 0    ,
           pernr like pernr-pernr       ,
           nachn like p0002-nachn       ,
           vorna like p0002-vorna       ,
           orgeh_stext like p1000-stext ,
           plans_stext like p1000-stext ,
           begda like p0023-begda       ,
           endda like p0023-endda       ,
           land1 like p0023-land1       ,
           arbgb like p0023-arbgb       ,
           ort01 like p0023-ort01   .
    data: end of t_output           .
    *eject
    *& Variables                                                           *
    data: o_stext like p1000-stext,
          p_stext like p1000-stext.
    *eject
    *& Initialization                                                      *
    Initialization.
    * Initialize Selection-Screen values
      perform init_selction_screen.
    *eject
    *& AT Selection-screen                                                 *
    at selection-screen .
    * Check if Test run selected, download file name should be entered
      if p_test is initial.  "
        if p_file is initial.
          message e016 with 'Please enter file name'
                            'specifying complete path'.
        endif.
      endif.
    *eject
    *& Start-of Selection                                                  *
    Start-of-selection.
    get pernr.
      clear t_output.
    * Read Infotype 0
      rp-provide-from-last p0000 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * Check if employee is active
      check p0000-stat2 in pnpstat2.      "pernr Active
    * Read Infotype 1
      rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * check if employee belongs to PL03
      check p0001-werks in pnpwerks.  "belongs to PL03
    * Check if emp belongs to Active Group
      check p0001-persg in pnppersg.
    * Read Infotype 2
      rp-provide-from-last p0002 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * Read Org Unit Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'O'
              objid                   = p0001-orgeh
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = o_stext
          EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    *Read Position Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'S'
              objid                   = p0001-plans
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = p_stext
         EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    * Gather all the required information related to the emp
      move: pernr-pernr to t_output-pernr,
            o_stext to t_output-orgeh_stext,
            p_stext to t_output-plans_stext,
            p0002-nachn to t_output-nachn,
            p0002-vorna to t_output-vorna.
    * Gather previous Employee details
      loop at p0023.
        move-corresponding p0023 to t_output.
        append t_output.
      endloop.
    *eject
    *& End-of Selection                                                    *
    end-of-selection.
      perform print_report.
    * Downlaod the file
      if not t_output[] is initial.
        if p_test eq space.
          perform download_file.
        endif.
      else.
        write: 'No records selected' color col_negative.
      endif.
    *eject
    *& Top-of-page                                                         *
    Top-of-page.
    * Print Header
      perform print_header.
    *eject
    *&      Form  download_file
    * Description :
    FORM download_file .
      DATA: full_file_name    TYPE string,
            z_akt_filesize    TYPE i     .
      full_file_name = p_file.
    *  download table into file on presentation server
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = full_file_name
          filetype                = 'DAT'
          NO_AUTH_CHECK           = c_x
          codepage                = '1160'
        IMPORTING
          FILELENGTH              = z_akt_filesize
        CHANGING
          data_tab                = t_output[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          not_supported_by_gui    = 22
          error_no_gui            = 23
          OTHERS                  = 24.
      IF  sy-subrc               NE        0.
        MESSAGE e016 WITH 'Download-Error; RC:' sy-subrc.
      ENDIF.
    ENDFORM.                    " download_file
    *eject
    *&      Form  print_report
    *Description:
    FORM print_report .
      data: i       type i,
            w_count type i.
      sort t_output.
    * Print the report
      loop at t_output.
        i = sy-tabix mod 2.
        if i eq 0.
          format color col_normal intensified on.
        else.
          format color col_normal intensified off.
        endif.
        write:/1     t_output-pernr          ,
               10     t_output-vorna(25)     ,
               35    t_output-nachn(25)      ,
               61   t_output-orgeh_stext     ,
               102  t_output-plans_stext     ,
               143  t_output-begda           ,
               154   t_output-endda          ,
               168   t_output-land1          ,
               178   t_output-arbgb(40)      ,
               219   t_output-ort01          ,
               249   space              .
      endloop.
      uline.
      Describe table t_output lines w_count.
      Skip 2.
      Write:/ 'Total No of Records Downloaded: ' color col_total,
              w_count.
    ENDFORM.                    " print_report
    *eject
    *&      Form  print_header
    *Description:
    FORM print_header .
      skip 1.
      Uline.
      format Intensified on color col_heading.
      write:/1   'Pers. #'        ,
             10   'Last Name'     ,
             35   'First Name'    ,
             61   'Org Unit'      ,
             102  'Position'      ,
             143  'Beg Date'      ,
            154   'End Date'      ,
            168   'Cntry Key'     ,
            178   'Prev Employer' ,
            219  'City'           ,
            249   space          .
      format intensified off color off.
      uline.
    ENDFORM.                    " print_header
    *eject
    *&      Form  init_selction_screen
    *Description:
    FORM init_selction_screen .
      refresh: pnpwerks,
               pnppersg,
               pnpstat2.
      clear:   pnpwerks,
               pnppersg,
               pnpstat2.
      pnpwerks-sign   = c_i.
      pnpwerks-option = c_EQ.
      pnpwerks-low    = c_pl03.
      append pnpwerks.
      pnppersg-sign   = c_i.
      pnppersg-option = c_EQ.
      pnppersg-low    = c_1.
      append pnppersg.
      pnpstat2-sign   = c_i.
      pnpstat2-option = c_EQ.
      pnpstat2-low    = c_3.
      append pnpstat2.
    ENDFORM.                    " init_selction_screen

Maybe you are looking for