How to avoid the printer device option screen when calling smartform?

Dear gurus
i have create a smartform and i have called it from my program.
i dont want to show the printer device options how can i achieve that ?
below is the code for calling my smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 = 'ZSNAK_VF03_PRINTING'
   IMPORTING
    fm_name                  = smart_form_function_nm
   EXCEPTIONS
     no_form                  = 1
     no_function_module       = 2
     OTHERS                   = 3
  CALL FUNCTION smart_form_function_nm
    EXPORTING
      itab1              = itab1
      temp4              = temp4
      temp3              = temp3
      ref_doc_no         = ref_doc_no
      po_no              = po_no
      printno            = printno
    TABLES
      itab_tab           = itab_tab
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.
Regards
Saad Nisar.

Hi,
check this link
smartforms  -   print option
Regards and Best wishes.

Similar Messages

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to control the print pages in se71 form or smartforms

    Dear All:
             I have a issue for control the print pages in se71 form or smartforms.
    For example:my report used form or smartforms to print.it have 12  total pages.but user want to print the .3rd  page.3rd  page is customized.
             How can I do it?
    Thanks
    Sun

    Hi,
    By using command node, with some command we can handle this.

  • CUPS print job options fail when called from lp (UNIX command line)

    Under Leopard this command-line print request fails to respect the specified job options:
    lp -o number-up=2 -o page-border=double <filename>
    Though it worked great in Tiger, the number-up and page-border job options are now disregarded. I have tried lots of things (and wasted lots of paper) such as setting them permanently with lpoptions (and they do appear changed when the lpoptions command is repeated), using lpr instead of lp, reinstalling the printer via the CUPS localhost web interface, enabling non-Bonjour scanning with the hack to the CUPS preference file, deselecting "Last Printer Used" for the default printer in the System Preferences -- nope.
    I have not tried other job options; I assume that whatever is breaking these two is breaking all the others, and even if it isn't, these two are what I want.
    Is something new in Leopard overriding lpoptions job options? How do I make it stop? It is sooooo aggravating when something that used to work fine breaks. The printer is an HP LaserJet 4000N connected by Ethernet and discovered with AppleTalk.
    Thanks for any advice!

    Thanks John, I did search but somehow missed that thread.
    However it did not help. With or without the "-p printername" argument lpoptions does make a persistent change to its own data:
    +$ lpoptions+
    +media=Letter sides=one-sided finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=2 auth-info-required=none job-sheets=none,none printer-info=Barrow printer-is-accepting-jobs=1 printer-is-shared=0 printer-location='Local Zone' printer-make-and-model='HP LaserJet 4000 Series' printer-state=3 printer-state-change-time=1209495301 printer-state-reasons=none printer-type=2134228 page-border=double+
    You can see that the printer "Barrow" has remembered "number-up=2" and "page-border=double". Regardless if I give any of these commands:
    +lpr <filename>+
    +lpr -P Barrow <filename>+
    +lp <filename>+
    +lp -d Barrow <filename>+
    none of them show the results of these option settings (and somewhere in the forest another tree is cut down).

  • How to prevent the printed page from displaying when printing to pdf

    I have Acrobat 7.0 Pro running on XP Pro. Immediately after I print an Excel, Word or text file to pdf, the pdf output automatically opens on my screen. Is there a way to turn this off? Thanks!

    Turn off the viewing option in printer properties.

  • How to avoid the page to move up when I click the button on the Tableview?

    Hi, EP fellows.
    I currently have 3 tableViews and 1 header form set in one jsp page (I know, it may not be a good design to put three tableView in one jsp page.....but for the sake of avoiding client side eventing between each tableViews..I combined them into one jsp page). I set the Load/Navigation value to be URL. 
    Here is the problem. Everytimes I click on the Navigation button (Up/Down) to navigate the tableView data to another page, the whole page will move up and away from the table that I navigating.
    I know it is bacause the page get refreshed, and go to the first item of the page. In this case, how do I avaoid the page to move up and away form the tableView? As it is really look bad when user click on the button, they have to scroll back to the tableView they click.
    Thanks for advices.
    Kent

    As far as i remember,this javascript function pops user a dialog to save a file:
    javascript: document.execCommand('SaveAs','1',null);
    But i m not sure will it pop up for pdf, just try to google javascript to save a pdf file.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • How can I print a whole email document and not a "screen shot" like I get in the Print Preview option.

    How can I print a whole email document and not a "screen shot" like I get in the Print Preview option. I'd like to print from "file" and print" like I can on other browsers (IE, for example). When I try to print from Firefox it grabs all my info (file folders, etc.) from the left side of the page. I need just the email information, not the entire screen information. Thank you!
    -Bruce

    I agree; I should, but I can't :) I have an orange Firefox drop down that I go to to print, and it allows me to select "print", "print preview" and "print setup", where I can change the margins. It always defaults to a full screen shot (I use Yahoo) and does not show just the email. I don't need to print what is on the left side of the screen or anything other than the email (I can achieve these things by using file-print from IE, so I know it is doable, and I am still going into Yahoo and using their email when I do it).
    Hope this helps. I'm not a fan of IE, but I really don't like the print properties I'm getting here (I'm a long time Mozilla user, but I'm losing too much info with this option and can't afford that anymore).
    Thanks for the help!
    -Bruce

  • How to enable the printer option in print priview screen in script

    Hi All,
    Please tell me how to enable the printer option in script print priview screen.
    Thanks & Regards
    Murali

    hi
    the print option TDNOPRINT has to be intial  (' ').  NOT 'X'
    TDNOPRINT  CHAR  1  0  No printing from print preview
    this will do.
    Gr., Frank

  • How to use the print option for photos?

    How to use the print option for photos.  I have a wireless printer but how do I set it up?

    http://www.apple.com/support/iphone/assistant/airprint/

  • How can I get all the print on my screen to be larger?

    How can I get all of the print on my screen to be larger?

    Thank you for helping me with the size of the print on my screen. The suggestion you made works well with the email font. I really wanted all the print on my computer to be larger. (Some of the print seems to be way too small.) Someone suggested I change the resolution settings. I did this, and changed it to 1024 X 640. That changed the size of the font on the toolbar at the top of the page, and that is what I really wanted, as well as all the other print on my screen. Nonetheless, I would like to thank you for your very helpful and prompt reply to my question.
    Sincerely,
    Wayne10

  • HT201270 MORNING COMMUNITY, anyone know how to make the i4s forget a network - when the device won't give you that option?

    MORNING COMMUNITY, anyone know how to make the i4s forget a network - when the device won't give you that option?

    if you dont have the options to forget network you can reset your network settings, but than the device forget all networks
    settings > general > reset > reset network settings

  • How can we access the 'print booklet' options in CS6 without a printer online?

    I cannot access the print setup option in ‘print booklet’ in CS6 to change the paper/image orientation from portrait to landscape. I am trying to save it as a .ps file so I can take a print ready pdf to the printers. But the resulting pdf that saves now is cropping my A4 (to be A5 after stapled) 2up saddle stitched booklet. As in the spread stays landscape, but the A4 paper in portrait. Can anyone help me please?
    *sooooo frustrated*urgent*

    thats the fix i was  loooking for!!!! i found it just bedore i saw your reply though. but thanks a bunch!!!!!!!!!
    for anyone else who might be looking for the same thing this video helped me and has a link to file you need  - http://www.youtube.com/watch?v=D0Ogk-uBHls

  • This printer is referenced by the printer profile option.

    Hello,
    I am trying to delete a printer in the Printers screen, and getting this message:
    "This printer is referenced by the printer profile option. You cannot delete a printer that is referenced."
    I ran the first select statement to identify the users with this printer in their profiles, and cleared the printer from their profiles.
    I ran the second select statement to identify any scheduled jobs going to this printer, and cancelled and rescheduled the jobs to another printer.
    I then did some research, and found the third select statment to find the request sets, and moved them to another printer.
    I am still getting this profile error. Where else can there exist a profile that is preventing the printer from deleting?
    SELECT fpovl.PROFILE_OPTION_NAME,
    fpovl.USER_PROFILE_OPTION_NAME,
    fpov.profile_option_value,
    fu.user_name
    FROM fnd_profile_options_vl fpovl,
    fnd_user fu,
    fnd_profile_option_values fpov
    WHERE fpov.level_id = '10004' -- user level
    AND fpovl.profile_option_id = fpov.profile_option_id
    AND fpov.level_value = fu.user_id
    AND fpov.profile_option_value LIKE '%et27m451%';
    select
    fu.user_name,
    nvl(conc.description, prog.user_concurrent_program_name) concurrent_job_name,
    frvl.responsibility_name,
    conc.printer, conc.requested_start_date, conc.*
    from apps.fnd_concurrent_requests conc,
    apps.fnd_concurrent_programs_vl prog,
    apps.fnd_responsibility_vl frvl,
    apps.fnd_user fu
    where conc.concurrent_program_id = prog.concurrent_program_id
    AND frvl.application_id = conc.responsibility_application_id
    AND frvl.responsibility_id = conc.responsibility_id
    and conc.requested_by = fu.user_id
    and conc.printer LIKE '%et27m451%'
    and status_code = 'Q';
    select r.user_request_set_name, s.user_stage_name,
    c.user_concurrent_program_name, p.request_set_id, p.printer
    from fnd_request_sets_tl r, fnd_request_set_stages_tl s,
    fnd_request_set_programs p, fnd_concurrent_programs_tl c
    where p.request_set_ID = r.request_set_ID
    and p.request_set_stage_id = s.request_set_stage_id
    and p.concurrent_program_id = c.concurrent_program_id
    and printer like '%et27m451%';

    Please see these docs.
    How To Effectively Remove An Oracle Applications Printer [ID 370372.1]
    Getting Error Message When Trying to Unregister a Printer [ID 105260.1]
    How To List E-Business Suite Profile Option Values For All Levels Using SQLPlus [ID 201945.1]
    Thanks,
    Hussein

  • How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)

    How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)

        I'm sorry to hear you no longer have access to your pictures ItzKB11. I know they're important, we'll do everything we can to help. However, since you did not back them up to any source and the screen does not work, we only have a couple options. Try using the USB cable to tranfer to PC:
    From the Device to a Computer
      • Launch Windows Explorer.
    Using the computer keyboard, press Windows E (  E) keys.
    Alternatively, right-click Start then click Explore.
      • Using Windows Explorer, navigate to:
      • SCH-I545 > Phone
      • Utilize the computer to copy video/picture files from the following folders into the desired folder(s) on the computer's hard drive:
      • DCIM
      • Download
      • Movies
      • Pictures
      • Disconnect the USB cable from the computer.
    If you're unable to retrieve them that way, use this http://vz.to/1zyIQwo.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

Maybe you are looking for

  • Error: While downloading the concurrent program

    I am trying to download the concurrent program using FNDLOAD command and I getting the error. Can anyone help me to resolve this FNDLOAD Command > FNDLOAD apps/PASSWORD@RTCDV1 O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XXAR3006_PROCA_CP.ldt

  • How to see open items for vendor.

    Hi, What condition I should put to select values from Bseg to select open item amount for vendor. Regards Mave

  • Converting documents to CS3 [JS]

    I need to ensure that all documents that my CS3 server sees, ends up as CS3 documents. Thus I've written a small prototype script which I expect should convert all documents to CS3 .indd files: var dir = new Folder("/spool/"); var a = dir.getFiles("c

  • Combining Partial Messages

    My wife sent me an email with a .pdf attachment from her PC using Outlook Express. I received the message in three individual emails labeled as 1/3, 2/3, 3/3 with the following text in the message body: "Partial message, part 1 of 3 To read this mess

  • How to install firefox instead of explorer on a freash win xp install

    I am rebuilding my win xp pro pc after a trojan horse killed it (it was ugly!). I want to avoid installing Internet Explorer at all and install Firefox as my only browser. How can I get a complete installation file so I can run it from a disc and get