Output_options in SF; selecting output device

Hi all,
i've been struggling with the following, maybe anyone can help?
In a smartforms i want to, dynamically determine the printer for output.
Whatever i do, i cant get it to work. I have set 'print directly' OFF so i can catch the printjobs in the spool. When i look in the Spool, allways the default printer is selected. And when i delete my default printer, i get an error while printing saying i have to define a printer.
This is what i tried so far:
-set USER_SETTINGS to SPACE in the form
- set OUTPUT_OPTIONS-DDEST to the short printername
- set the OUTPUT_OPTIONS-TDPRINTEr to the long printer name
- i even tried the following code which comes with a popup to select th eoutput device..
data : g_dest TYPE rspopname,
g_printer TYPE rspoptype.
*FM to accept the device type and returns the short name of the output device
CALL FUNCTION 'EFG_GET_PRINTER'
EXPORTING
x_no_dialog = ' '
x_obligatory = 'X'
IMPORTING
y_tddest = g_dest
EXCEPTIONS
cancelled = 1
failed = 2
OTHERS = 3.
*device type name for the output device
SELECT SINGLE patype "#EC CI_NOFIELD
FROM tsp03d
INTO g_printer
WHERE padest = g_dest.
output_options-tddest = g_dest.
output_options-tdprinter = g_printer.
The result is allways the same: in the Spool, it has the default printer defined...
What am i doing wrong?
Is it wrong to send the jobs to the spool, where i've deactiveted 'print directly'?
Is it wrong to look at the spool-job for determining on which printer it will be printed?
Hope someone can help!
thanks
Joris Bots

Hi Ravi,
My default printer in Own data is set to let's say PR2007.
I'm not sure what other default printer you mean.
What i want is to send the smartform to a printer
depending on the user's printer in its Own Data.
so if a usre has defined printer PR2007, then the smartform should go to PR2557
if the user has defined printer PR3004, then the form should go to PR3557, etc.
Thank you for your help
Joris
Message was edited by:
        Joris Bots

Similar Messages

  • How to avoid the screen of selection output device

    Hi all,
    Who can tell me how to avoid the screen selection output device when running a smartform.
    Best regard.

    Hi,
          data: wa_SSFCTRLOP  type SSFCTRLOP.
           wa_SSFCTRLOP-DEVICE = 'PRINTER'.
           wa_SSFCTRLOP-NO_DIALOG =  'X'.
           wa_SSFCTRLOP-PREVIEW = 'X'.
        in the function module
       call function '....
       exporting
       CONTROL_PARAMETERS = wa_ssfctrlop
    regards,
    Santosh Thorat

  • TS1574 I have no sound on my iMac.    When I select the upper key on the keyboard or select 'output devices' in the System Preferences file, it says "no output devices found".     Any ideas as to I can turn on the sound?

    I have no sound on my iMac.    When I select the sound keys on the upper row of my keyboard or select 'output devices' tab in System Preferences, it says "no output devices found".    Any idea where I am not looking to get sound back?

    Thank you for your responses.    I found the 'sound' icon in the menu bar and found it was turned down low.   I adjusted the sound there and this worked; however, I'm not sure why this didn't show in my System Preferences or why I couldn't adjust the sound from the keyboard.    Those function keys basically became un-usable for me.   Thank you again!

  • Selecting output device

    Is there any way to select the output device for ITunes?
    I have several, and don't want the one for music to be the same as the default one for the windows sounds.

    Hi Ravi,
    My default printer in Own data is set to let's say PR2007.
    I'm not sure what other default printer you mean.
    What i want is to send the smartform to a printer
    depending on the user's printer in its Own Data.
    so if a usre has defined printer PR2007, then the smartform should go to PR2557
    if the user has defined printer PR3004, then the form should go to PR3557, etc.
    Thank you for your help
    Joris
    Message was edited by:
            Joris Bots

  • Selecting the sound output device

    Hi, is there any way to select which sound output device to use from an Adobe AIR application? If there is, I can't seem to find it (using either the manual, the forums or Google).
    Any help will be greatly appreciated.
    Thanks,
    Michiel

    A new Idea has been added to the Adobe Idea's website for this discussion.  Please vote if you are interested and would find this valuable!
    Select output device for audio

  • Order confirmation issue output through output device sent email

    Hi:
         We set a output device type is eMail. When I print out order confirmation that I can to select output device 'email' and will display a field of email address to input email address.
         That is work in PRD, but in the DEV alway can't display the field of email address. Can anyone to tell me why?
    Best Regards,
    Nicole

    Dear Chen,
    This issue may related to output program so please take help of ABAPer to fix the issue.
    I hope this will help you,
    Regards,
    Murali.

  • Output device type

    Hi All,
    To get the print of a PO one device type is getting selected, but we came to know that we need to select another device type so that we can take the printout of the PO with out any problem. But i am not sure where to change the device type in the PO.
    Thanks,
    Raju

    Hi Raju,
    You can change the device type using transaction SPAD - Spool Administration.In here select Output devices and select the printer which you are using to print the PO, then change the device type.You may need the necessary authorization to do this.If your output device is not listed, then you can create a new one. For a list of device types, see SAP Note 8929 in the SAP Service Marketplace.
    Award points if found useful.
    Thanks,
    Praveen

  • Select audio device to play back sound

    flash media server ,provide property Microphone.names that
    retrieves an array of strings reflecting the names of all available
    sound capture devices.
    is there is any property that detect output device attached
    to system so i can select which one to play back sound.
    for example:-
    i need to play back mp3 file in flash.
    but i have more one output device installed in my pc.
    the question is:-
    is there is any way for falsh to list all (or detects) audio
    output device installed in my pc then let me pick one of them to
    play back sound by selected output device?
    thanks ...........plz don't late to replay me

    This is a a delayed response to this discussion but I thought I would share my problem with this.
    I have a USB audio interface, which I have configured as the default sound device on my iMac (OSX Lion). This works well in all applications, except Flash.
    I have the device configured at quite a high bit rate.
    Flash doesn't like this - it makes very strange noises. The only work around I have found is to disable the sound interface when I am working in Flash, and use the built in speakers on my iMac.
    It works, but I'm the kind of guy that likes things to just work =)
    e.g. if iTunes can play mp3s through my sound interface, why can't Flash?
    To be honest I think Adobe need to do a lot of work on the audio side of things with Flash. Not just playback - something a bit more flexible like Premier would be cool. Flash isn't dead yet. Come on Adobe!
    A lot of the work I am doing at the moment requires building animation to a pre-recorded audio file.

  • The device is in use by another process - error - cannot select Multi Output Device - Mac OSX 10.8.2

    Dear Adobe Users!
    Please help!
    I'm using Adobe Audition CS5.5 on a Mac - OSX 10.8.2 (latest version of Mountain Lion) and I'm trying to select a Multi-Output device.
    This was working FINE last few days - today, I get an error. I've tried to re-install Adobe Audition and that hasn't fixed the problem. When it first started up it said it couldn't find any audio devices at all.
    Please can you help? I'm getting a message saying the device is being used by another process - but it's not being used by anything else at all!
    Hope you are able to help! I use the multi output device option so I can record what I can hear. I spent two days trying to sort that out after it all-of-a-sudden didn't work last Thursday.
    Now just spent last two hours trying to get Adobe to recognise the Multi Output device - it's been working fine last few days!
    Many thanks if you're able to help!
    - Rory

    Durin,
    May have sussed it! It seems that Built-in output was the way to have it for Audition CS5.5 to record what I'm hearing! Yes, the multi-device needs to be used - but in another settings.
    Here's how I have each section configured and it now works!
    First of all, in Audition > Preferences > Audio Hardware:-
    Then, on the Mac's OS - System Preferences > Sounds (input settings)
    Then Output settings :-
    Then Midi Settings found in Finder > Applications > Utilities > Audio MIDI set up
    All now seems to be working! I'll let you know if anything further happens!
    I was certain I had the output device as Multi Device Output on Adobe before, perhaps it should've been set to Built-in Audio all along. Anyway, I re-installed my Mac from Time Machine, logged in as another user and it worked under that profile, then logged back in as me - and am using the settings in the pics above and all seems to be working!
    It's been a long week, perhaps I was just going around in circles and didn't actually test these particular settings yesterday in this order after all.
    Thanks again for your help! Sorry if I've caused any confusion!

  • Cannot select Airplay Device for Output Audio

    I can't select my chosen AirPlay device for Output Device. It shows up as one of the options in the Sound System Preference, the Sound Selector in the Menu Bar or the AirPlay selector in iTunes (version 11.0.1). But, when I select it, it automatically re-selects the built-in speakers. Rebooting is the only way to restore this functionality. Even then, it seems to work for a time, then quits working. This problem has been reported elsewhere with no resolution that I'm aware of. Any ideas?

    Every get an answer to this?

  • VB6 Using MCI Commands to Select MIDI Output Device for Playback in Windows 8.1

    I have written a MIDI Player program in VB6 that uses the multimedia control.  In Windows 8.1, I understand that midimapper is no longer available so the third party softwares which can set the output devices for MIDI do not work as they did for
    Vista and Windows 7.  I found this Microsoft example code that selects sound cards using MCI code and was able to modify the code to show me the MIDI output devices.  In particular I need to output to a USB to MIDI cable.  Can this code be modified
    to do just the PLAY function for midi out to the USB to MIDI cable?  I do not need the record side of the program.  Here is the MS article number since I can not post the link to the the VB6 program:  q182799
    With a modified code to play midi, I can then pull the necessary code into my MIDI Player Program.  Thank you for the help on this.

    Hi,
    For Visual Basic 6 questions, read the post at the following address
    http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Kate Li
    TechNet Community Support

  • Selecting separate input and output devices!

    hi, i have logic pro 8 and cant find out how to select separate devises for input and output!
    for my output (and input when recording drums) i use a alesis multimix 16 (16 track firewire desc) but for recording guitars and bass and poss vocals i would like to use my line 6 x3 live as my input devise but still using the alesis for monitoring.
    is this possible? cant figure how to do it.
    any help is great help! cheers, Dan

    In Logic 9 you can easily select different input and output devices in the Preferences Devices area. In Logic 8 you must create an aggregate device -
    http://support.apple.com/kb/HT1215
    JG

  • Selecting audio output device in iTunes.

    I currently have two sound cards installed.
    My computer is defaulting to playing sound through one of them, but I would like to play iTunes through the other.
    Is there a way to select the audio output device that iTunes outputs to?
    I have no been able to find the option anywhere.
    Thanks!

    Hi 
             What program are you refering to ??  Or do you mean you have deleted the driver for your Audio/output device ?? 
                                                        Checkurtech
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

  • Cant select airplay device for output audio

    Every now and then I can not select airplay device for output audio, its there as an option but I cant select it.
    Restarting coputer helps, but very anoying.
    Also found this soulution here: http://forums.macrumors.com/showthread.php?t=1412191
    Killing coreaudio fixed it for me without a reboot:
    sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
    This seems to be a common issue, so PLEASE solve it

    We are only users here...  file a report with Apple....
    http://www.apple.com/feedback/
    Regards,
    Shawn

  • Skip selection screen output device

    Hi Guys,
    Question. Is there anyway that i could skip the output device screen selection and straight go to 'print preview'? at the same i wish to set the printer to 'LOCL'. Thanks in advance
    Regards

    hi ,
    In your sap script you would be having open form,write form and close form you have to declare before open form...
    i have pasted a sample code here you can check it.....
    REPORT  ZV_DELIVERY_SLIP_PRINT                  .
    Tables:
    tables: likp,vbak,adrc,vbpa,kna1,sadr,ITCPO,LIPS.
    parameters: p_vbeln like likp-vbeln obligatory,
                p_proj(50) type C,
                p_node(50) type c,
                p_pal(50) type c default 'PALLET 1 of 2',
                p_ldest like nast-ldest default 'LOCL',
                p_imme type c default 'X'.
    Start-of-selection.
      perform 100_collect_db_recs.
      perform 200_collect_adrc_details.
    *&      Form  100_collect_db_recs
          text
    -->  p1        text
    <--  p2        text
    FORM 100_collect_db_recs .
      select single * from LIPS where vbeln = p_vbeln.
      if sy-subrc ne 0.
        write:/02 'Delivery does not exist!'.
        stop.
      else.
        select single * from vbak where vbeln = lips-vgbel.
        if sy-subrc ne 0.
          write:/02 'Sales Order does not exist!'.
        endif.
      endif.
    ENDFORM.                    " 100_collect_db_recs
    *&      Form  200_collect_adrc_details
          text
    -->  p1        text
    <--  p2        text
    FORM 200_collect_adrc_details .
      SELECT SINGLE *
      FROM VBAK
      WHERE VBELN EQ vbak-kunnr.
      SELECT SINGLE *
      FROM KNA1
      WHERE KUNNR EQ vbak-kunnr.
      SELECT SINGLE ADRNR
        INTO vbpa-adrnr
        FROM VBPA
       WHERE VBELN EQ vbak-vbeln
         AND PARVW EQ 'WE'.              " Sold to party.
      SELECT SINGLE NAME1
        INTO sadr-name1
        FROM SADR
       WHERE ADRNR EQ vbpa-ADRNR.
      SELECT NAME1 NAME2 NAME3 NAME4 STREET CITY1 CITY2 PO_BOX
                                 STR_SUPPL1 POST_CODE1 FROM
        ADRC INTO (ADRC-NAME1, ADRC-NAME2,ADRC-NAME3,ADRC-NAME4,
                    ADRC-STREET,ADRC-CITY1,ADRC-CITY2,ADRC-PO_BOX,
                    ADRC-STR_SUPPL1,ADRC-POST_CODE1)
                    WHERE ADDRNUMBER = vbpa-ADRNR.
        EXIT.
      ENDSELECT.
      if sy-subrc = 0.
        perform open_form.
        perform start_form.
        perform write_form.
        perform end_form.
        perform close_form.
        Write:/02 'Delivery Label Printed!'.
      else.
        write:/02 'Error Collecting Address Details!'.
      endif.
    ENDFORM.                    " 200_collect_adrc_details
    *&      Form  open_form
          text
    -->  p1        text
    <--  p2        text
    FORM open_form .
      itcpo-tdnewid = 'X'.
      itcpo-tdimmed = p_imme.
      itcpo-tddest  = 'LOCL'.
      itcpo-tddataset = 'DELB'.
      itcpo-tdsuffix1 = p_ldest.
      itcpo-tdsuffix2 = lips-vbeln.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          application                 = 'TX'
         archive_index               = space
         archive_params              = space
          device                      = 'PRINTER'
          dialog                      = ' '
          form                        = 'ZV_DEL_LABEL'
          language                    = sy-langu
          options                     = itcpo
        EXCEPTIONS
          canceled                    = 1
          device                      = 2
          form                        = 3
          options                     = 4
          unclosed                    = 5
          mail_options                = 6
          archive_error               = 7
          invalid_fax_number          = 8
          more_params_needed_in_batch = 9
          OTHERS                      = 10.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " open_form
    *&      Form  start_form
          text
    -->  p1        text
    <--  p2        text
    FORM start_form .
      CALL FUNCTION 'START_FORM'
        EXPORTING
          startpage = 'FIRST'
        EXCEPTIONS
          form      = 1
          format    = 2
          unended   = 3
          unopened  = 4
          unused    = 5
          OTHERS    = 6.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.                    " start_form
    *&      Form  write_form
          text
    -->  p1        text
    <--  p2        text
    FORM write_form .
      CALL FUNCTION 'WRITE_FORM'
            EXPORTING
                 element                  = 'TEXT'
                 function                 = 'SET'
                 type                     = 'BODY'
                 window                   = 'MAIN'
       IMPORTING
            PENDING_LINES            =
            EXCEPTIONS
                 element                  = 1
                 function                 = 2
                 type                     = 3
                 unopened                 = 4
                 unstarted                = 5
                 window                   = 6
                 bad_pageformat_for_print = 7
                 OTHERS                   = 8
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " write_form
    *&      Form  end_form
          text
    -->  p1        text
    <--  p2        text
    FORM end_form .
      CALL FUNCTION 'END_FORM'
        EXCEPTIONS
          unopened                 = 1
          bad_pageformat_for_print = 2
          OTHERS                   = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " end_form
    *&      Form  close_form
          text
    -->  p1        text
    <--  p2        text
    FORM close_form .
      CALL FUNCTION 'CLOSE_FORM'
        EXCEPTIONS
          unopened                 = 1
          bad_pageformat_for_print = 2
          send_error               = 3
          OTHERS                   = 4.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " close_form
    regards,
    karthik.

Maybe you are looking for

  • Macbook to Panasonic Viera HDTV issues :( HELP!

    Hi I recently bought the correct cables to connect my macbook to the TV using HDMI. The macbook connects to the TV and I can see this because in the system preferences 'Display' Panasonic TV settings come up. The thing is there is no macbook picture

  • Variant Creation for the Back Ground Jobs

    Hi experts 1) What are the settings we need to consider in the Variant Creation for generating CVC's, Planning Area Initialization, Calculate Proportional Factors and Loading planning area. 2)I believe  Process flow to create process chain: Generate

  • Tree view in collapsed mode by default

    Hello Experts, Could you please explain how to get a tree view collapsed by default? My scenario: When looking for a Marketing Segment, the system displays the result with a tree view in expanded mode, containing all the Profile Sets with their profi

  • Ipod classic having trouble to connect my car USB

    I use to connect everyday in my new camry 2012 but recently it is not connecting through USB . when i plugin into USB it just shows charging . when i connected to my laptop its works fine. i checked with my wife iPhone , it is working fine in my car

  • PROBLEM to INSTALL ITUNES64 for Windows 8.1

    I downloaded the new itunes64 for windows 8.1 ASUS laptop however the installation is not happening saying " this app cant run with your pc , check another version with the publisher software". I do have the previous itunes version