How to avoid Priner prompt while calling smartform

Hi All,
I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
wa_outputoptions-tddest = 'LP01'. "Printer name
wa_outputoptions-tdnewid = 'X'. "New request
wa_controlpara-device = 'PRINTER'. "Device
wa_controlpara-no_dialog = 'X'. "No dialog
Even after these settings I am getting prompt which asks printer name and other details.
Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
Thanks in Advance.
Regards,
Vijay

hi,
try this....
DATA :  control TYPE ssfctrlop.
control-no_dialog = ''.
control-preview   = ''.
control-no_open   = 'X'.
control-no_close  = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
  ARCHIVE_PARAMETERS       =
  USER_SETTINGS            = 'X'
  MAIL_SENDER              =
  MAIL_RECIPIENT           =
  MAIL_APPL_OBJ            =
  OUTPUT_OPTIONS           =
control_parameters       =<b> control</b>
IMPORTING
  JOB_OUTPUT_OPTIONS       =
EXCEPTIONS
formatting_error         = 1
internal_error           = 2
send_error               = 3
user_canceled            = 4
OTHERS                   = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • How to avoid printer name prompt while calling Smartform

    Hi All,
    I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
    wa_outputoptions-tddest = 'LP01'.  "Printer name
    wa_outputoptions-tdnewid = 'X'.     "New request
    wa_controlpara-device = 'PRINTER'.   "Device
    wa_controlpara-no_dialog = 'X'.          "No dialog
    Even after these settings I am getting prompt which asks printer name and other details.
    Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
    Thanks in Advance.
    Regards,
    Vijay

    Hi Vijay,
    Try like this.
    CALL FUNCTION fm_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
    <b>   control_parameters         = wa_controlpara</b>
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       <b>output_options             = wa_outputoptions
       user_settings              = space</b>
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = tab_otf_data
      JOB_OUTPUT_OPTIONS         =
      TABLES
        it_tab                     = itab[]
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    Regards,
    SP.

  • How to avoid authorization checks while debugging

    Hi,
    Can anyone let me to know how to avoid authorization checks while debugging
    for a standard transaction?
    -B S B

    Hello BSB,
    To start the debug put /hs will start the system debug.
    Then place the break points aat STATEMENT -- MESSAGE and F8
    So now the system will stop at the point where it throwing the error message change the value of SY-SUBRC to 0 from 4.
    Regards,
    Vasanth

  • How to avoid the prompt when verifing signature?

    I sign the doc with my cert.
    The cert is not trusted by Acrobat/Reader itself so when i try to verify the signature Acrobat/Reader will prompt the user cert is not trusted.
    My question is how to avoid this prompt through Acrobat SDK or how to add my cert to trusted cert list through Acrobat SDK?
    Thanks.

    Patrick Leckey wrote:
     You will also see the BER Decoding error when you have a self-signed peer-to-peer cert in your Windows Cert Store, even if it is not the signature you are using to sign.
    Start > Run > certmgr.msc
    Look for any certs that have "peer-to-peer" in the Intended Purpose column
    Remove that cert
    Restart Acrobat
    Give that a shot.
    Patrick,I have not found the Intended purpose of cert names "peer-to-peer".
    But I have just found the cert which will cause the signature failure.
    The key is the cert can not be removed.
    I'm very curious that why a cert has no relationship with the signature could cause the signature failure?
    Is it a BUG of Acrobat/Adobe Reader?
    If not how can i operate successfully?
    Thanks.

  • How to avoid password prompt in shell script for zip password protection

    Hi
    I am trying to set password protection to my oracle database export backup. Once the backup completed, it should compress with a password protection. Thats the plan. Initialy we were using the gzip for the compression. Then realized that there is no password protection for the gzip. Started using zip option. I tried using
    zip -P <password> filename
    But it was throwing below error.
    -bash-3.2$ zip -P expreports REPORTS_2013FEB14.dmp
    zip warning: missing end signature--probably not a zip file (did you
    zip warning: remember to use binary mode when you transferred it?)
    zip warning: (if you are trying to read a damaged archive try -F)
    zip error: Zip file structure invalid (REPORTS_2013FEB14.dmp)
    Not quite sure why.
    Then I used zip -e REPORTS_2013FEB14.dmp.zip REPORTS_2013FEB14.dmp
    But this prompting for the password. As I am trying to put the command in the script. It will be tough if it prompts for the password.
    I would like to know how to avoid the password prompting by saving somewhere or how the code should be written. Tried using expect feature of shell script. Below was the code I tried. It didnt work.
    [oracle@SF40V6636 test]$ cat repexp.sh
    zip -e REPORTS_imp.log.zip REPORTS_imp.log
    expect "Enter password:"
    send "imprep"
    expect "Verify password:"
    send "imprep"
    So please help in avoiding this password prompt or let me know how to change the code.
    Thanks
    SHIYAS M

    How about using gpg and adding a secret key to the requirement of a password? No one should be able to decrypt your file, not by knowing only the password.
    1. Generate a public and private key pair:
    $ gpg --gen-key
    When it shows "We need to generate a lot of random bytes…" open another terminal session and type "dd if=/dev/sda of=/dev/null" to create traffic. When the public and secret key created and signed you can Ctrl-C the dd command.
    To see what you have created:
    $ gpg --list-keys
    2. Encrypt and gzip your stuff:
    $ tar zcf stuff.tgz file_or_folder
    $ gpg recipient "Some Name" encrypt stuff.tgz
    $ rm -f stuff.tgz
    3. Decrypt and extract the archive:
    $ gpg batch yes --passphrase "password" -d stuff.tgz.gpg > stuff.tgz
    $ tar zxvf stuff.tgz
    Again, knowing the password alone will not let anybody decrypt your stuff.

  • How to compare a parameter while calling a function?

    Hello,
    I have a powershell script with a function doing a switch process. While calling the function in the script I want to compare if the parameter is contained in the switch condition of the function.
    function test{
    [CmdletBinding()]
    Param(
    [Parameter(
    Mandatory=$False,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$False
    [string]$InputValue
    $Param = switch($InputValue){
    A {"string1,string2,string3"}
    B {"string1,string2,string3"}
    C {"string1,string2,string3"}
    Return $Param}
    If ((test($search)) -match ""){
    $scrDynMSGArry = (test($search)).Split(",")
    $NV = [PSCustomObject]@{
    Param = $ParamString1 = $scrDynMSGArry[0]
    String2 = $scrDynMSGArry[1]
    String3 = $scrDynMSGArry[2]
    Error message is: InvokeMethodOnNull for doing the split and reading the array.
    I think there is a problem doing the comparison but have no idea to solve this.
    Can anybody help?
    Regards, Doreen

    This appears to be what you are trying to do:
    \_(ツ)_/
    From how he is wording things, it sounds to me that if I pass $search the letter F, he wants to check to see if the switch statement contains a case for F, and if not do something. I do not think this can be done but he could always have a Default case,
    returning something to indicate they need to choose something else, or the default parameters needed for whatever he is doing to work.
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet
    She please ;-)
    But clayman2 is right: $search can be F, G, ... but I want to use the function "test" only if its A,B or C.
    I thought if $search is F it does not enter the if part beacause the condition is not true:
    If ((test($search)) -match "")
    You think thats not possible?
    Would it be better to compare $search with my conditions (A, B or C are defined and known) for itself and then enter the function "test"? Can I have or conditions in the if part like
    If ($search -eq "A"){$scrDynMSGArry = (test($search)).Split(",")
    $NV = [PSCustomObject]@{
    String1 = $scrDynMSGArry[0]
    String2= $scrDynMSGArry[1]
    String3= $scrDynMSGArry[2]
    elseif ($search -eq "B"){$scrDynMSGArry = (test($search)).Split(",")
    elseif ($search -eq "C"){$scrDynMSGArry = (test($search)).Split(",")

  • How to avoid duplicate data while inserting from sample.dat file to table

    Hi Guys,
    We have issue with duplicate data in flat file while loading data from sample.dat file to table. How to avoid duplicate data in control file.
    Can any one help me on this.
    Thanks in advance!
    Regards,
    LKR

    No, a control file will not remove duplicate data.
    You would be better to use an external table and then remove duplicate data using SQL as you query the data to insert it to your destination table.

  • Problem while calling smartform in webdynpro

    Hi Experts,
    I  am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen
    I m following the following steps for calling smartform in webdynrpo.
    I am calling the smartform by
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM_NAME'
    importing
    fm_name = fname
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3
    if sy-subrc  0.
    Error MESSAGE
    endif.
    call function fname
    exporting
    control_parameters = lv_control_parameters
    output_options = lv_output_options
    user_settings = space
    pernr = stru_input1-zpernr
    reinr = stru_input1-zreinr
    pdvrs = stru_input1-zpdvrs
    importing
    job_output_info = lv_ssf_output
    exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5
    if sy-subrc  0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    But it is not passing otfdata and it is returning 1 in sy-subrc.
    Please help me to solve this issue.

    I m not using any image.
    I have checked through debug and the function module is not transfering any file to OTF table.
    Please suggest me..
    Edited by: zakirriyaz on Nov 4, 2011 9:47 AM

  • Getting run time error while calling smartform

    hi,
    i am getting run time error of "maintain output device in your master data" while calling smart form.
    p_output_options-xsfcmode = 'X' .
      p_output_options-xsf = space .
      p_output_options-xdfcmode = 'X' .
      p_output_options-xdf = space .
      p_output_options-tddest = 'LP01'.
      p_output_options-tdnewid = 'X'.
      p_output_options-tddelete = SPACE.
      p_control_parameters-no_dialog = 'X' .
      p_control_parameters-getotf = 'X' .
      p_control_parameters-DEVICE = 'PRINTER'.

    Hi Neha
    Your program looks out for the default printer configured against your user (Check SU01 : Constant tab ). You dont seem to have maintained it properly as a result of which you get this message. You will have to configure your printer device to overcome this error.
    Choose menu: System -> User Profile -> Own data.
    On the Defaults tab, give LOCL code for the output device.
    You can also check the output device setting in transaction SPAD.
    Regards,
    Uday

  • HT5661 how to set pic display while calling to contact ?

    how to set pic display on calling to contact person ?

    Hello HaD,
    The image control is installed with either the Vision Development Module or the NI-IMAQ driver, and is not a standard component found in LabVIEW.  If you have questions about the image display control or vision functions it would be better to post in the Machine Vision forum:
    http://forums.ni.com/ni/board?board.id=200
    In regards to your question, this menu is not available as a runtime property, and therefore the user of program will not be able to set it directly through the control.  Instead, you will need to allow the user to set it programmatically in LabVIEW by use of a property node. 
    To create this property node, right-click on the image display icon on your program's block diagram, and select:
    Create » Property Node » Palette » Palette Type.
    You will then be able to change the value of this property by right-clicking on the property node icon and selecting "Change All To Write".  To create a control on the front panel that the user change at runtime, right-click on the “Palette Type” input, select:
    Create » Control
    If you have any questions about the application architecture required to implement this design, please continue to post in the LabVIEW forum.
    I hope this helps.
    Best regards,
    Jasper

  • How to avoid Duplicate Records  while joining two tables

    Hi,
    I am trying to join three tables, basically two tables are same one is like history table, so I wrote a query like
    select
    e.id,
    e.seqNo,
    e.name,
    d.resDate,
    d.details
    from employees e,
    ((select * from dept)union(select * from dept_hist)) d
    join on d.id=e.id and e.seqno=d.seqno
    but this returing duplicate records.
    Could anyone please tell me how to avoid duplicate records of this query.

    Actually it is like if the record is processed it will be moved to hist table, so both table will not have same records and I need the record from both the tables so i have done the union of both the tables, so d will have the union of both records.
    But I am getting duplicate records if even I am distinct.

  • How to avoid permission prompt?

    dear friends,
    I created an addressbook application. i am using file to store details. on reading and writing data the application prompt Permission alert. i want to avoid this Permission prompt. If anyone know how to handle this plz guide me.
    guna.

    Hi sameer,
    I have raised this issue before and also i have posted this issue to SAP.
    till now i don't get any solution.
    my issue is similar to this,
    download without save dialog
    Rgds,
    Jothi.P

  • How to skip first screen while calling transaction

    Hi all,
    I am using interactive alv.
    if i select one line and press details
    that must go to another screen.
    In that i must skip first screen and directly go to the details of that first screen.
    suppose i am using the code as follows
    call transaction mm01 and skip first screen
    this is giving me error.
    how to solve the problem.
    thanks and regards,
    giri.

    hi giri,
    For ur requirement, u can use SKIP FIRST SCREEN addition for CALL TRANSACTION Command.
    Before this, u have to use SET PARAMETER ID Command to pass the required values for transaction.
    Example, In transaction VA01, we have to set parameter AUN to pass the sale order number to the transaction.
    <b>
    AT LINE-SELECTION .
    SET PARAMETER ID 'AUN' FIELD w_vbeln.
    CALL TRANSACTION 'VA01' AND SKIP FIRST SCREEN .</b>
    where w_vbeln contains the sale ordre number. Now VA01 runs for this sale order number..... And AUN is the PARAMETER to be set before calling VA01 TCODE.
    similarly, check the PARAMETER associated with MM01 Tcode and initialize that parameter and call the code in the similar way.
    To check parameter Id of MM01,
    1) Enter MM01 Transaction
    2) Press F1 on Material Field
    3) Select Technical Info
    4) u can find Parameter ID associated with this field.
    check these links for full details.
    call transaction...
    http://help.sap.com/saphelp_47x200/helpdata/en/78/21761c51ce11d189570000e829fbbd/frameset.htm
    at line selection,
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba2c435c111d1829f0000e829fbfe/frameset.htm
    get/set parameter:
    http://help.sap.com/saphelp_nw04/helpdata/en/5b/7bc3775d1111d295ad0000e82de14a/frameset.htm
    Reward me if useful........
    Harimanjesh AN

  • How do I dial letters while calling with Skype?

    Hi! I needed to dail several letters during a phone call, as part of a recognition serial number, but I do not know how to do that! Could anyone help me out? Thank you! I searched similar questions, but all I got is how to dial letters as part of the phone number. Unfortunately, I have to dial the specific letter instead of having the phone/Skype figure it out for me (e.g. I need to input "E" but I cannot just dial "3" to have Skype figure out and pick "E" among D, E, and F...) Anyone?? Thank you so much!!

    Contact sprint for direction on how to use the calling card.

  • How to supress dialog box when calling smartforms and just create a spool..

    Hello Experts,
    I want to supress the dialog box where you can print preview or print your smartforms. What
    I want is to just create a spool file for this one. Think of it as smartforms running in background.
    Thank you guys and take care!

    Hi again Vishwa,
    I modified my code according to your last reply but it still wouldn't work. The dialog still pops up without the print and print preview buttons. Below is my code:
    MOVE 'X'    TO ltyc_control-no_open.
        MOVE 'X'    TO ltyc_control-no_close.
        MOVE 'X'    TO ltyc_control-no_dialog.
        MOVE 'X'    TO ltyc_options-tdnewid.
        MOVE 'X'    TO ltyc_options-tdnoprev.
        MOVE 'X'    TO ltyc_options-tdnoprint.
        MOVE 'LOCL' TO ltyc_options-tddest.
        MOVE space  TO ltyc_options-tdimmed.
        CALL FUNCTION 'SSF_SHOW_DIALOG'
          EXPORTING
    *        ARCHIVE_PARAMETERS         =
            user_settings              = ''
            output_options             = ltyc_options
            control_parameters         = ltyc_control
    *        OK_BUTTON                  = ''
          IMPORTING
    *        E_ARCHIVE_PARAMETERS       =
            e_output_options           = ltyc_options
            e_control_parameters       = ltyc_control
          EXCEPTIONS
            formatting_error           = 1
            internal_error             = 2
            send_error                 = 3
            user_canceled              = 4
            OTHERS                     = 5.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = lcc_z2574ffi_ra_cimb
    *        VARIANT                  = ' '
    *        DIRECT_CALL              = ' '
          IMPORTING
            fm_name                  = ltyc_function
          EXCEPTIONS
            no_form                  = 1
            no_function_module       = 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.
        CALL FUNCTION ltyc_function
          EXPORTING
            control_parameters = ltyc_control
            output_options     = ltyc_options
            user_settings      = ''
            im_adrnr           = gtyc_adrnr
            im_name1           = gtyc_name1
            im_name2           = gtyc_name2
            im_str_suppl1      = gtyc_str_suppl1
            im_str_suppl2      = gtyc_str_suppl2
            im_str_suppl3      = gtyc_str_suppl3
            im_post_code1      = gtyc_post_code1
            im_city1           = gtyc_city1
            im_vblnr           = gtyc_vblnr
            im_zaldt           = gtyc_zaldt
            im_swnes           = gtyc_swnes
          TABLES
            im_regup           = gt_regup
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Edited by: Viraylab on Nov 26, 2008 10:55 AM

Maybe you are looking for