Smartforms  -   print option

hi
i have done an requirement in smartforms.
i dont need the dialog box (which contains output device name, page selection etc) when i take the print (smartforms).

Hi,
Please code it like below, just pass 'user_settings = space' in Smartform FM..
DATA : l_t_control LIKE ssfctrlop,
l_t_out TYPE ssfcompop.
l_t_out-tddest    = 'LOCL'.
l_t_control-no_dialog = 'X'.       ---> To avoid that window we should this parameter...
l_t_control-preview    = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = l_c_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = l_f_fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc = 0.
CALL FUNCTION l_f_fname
EXPORTING
control_parameters = l_t_control
output_options = l_t_out
user_settings = space ---> To avoid that window we should this parameter...
p_langu = p_langu
TABLES
g_t_item = g_t_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Hope it helps!!
Rgds,
Pavan

Similar Messages

  • Smartforms : Print options selections

    Hi Experts,
        while executing a   smartform , a pop up window  of print options will appear where in we select print or print preview.
        when we select Print Preview , the preview of the form appears. now the problem is while in the print preview, if I select
        Print , the Pop up window of print options is not appearing.
        How to bring the pop up of print options while in the print preview mode if print is selected.
    Thanks in advance.

    Hi
    When you select print preview you will get a popup and you can select the print preview and then you can see the output.If you click on the print then the printer should be configured to that output type also. So you check the box New Spool Request and click on print. then you go to SP02 and see the output in pdf format.Also check wheather any changes have been done in the smartform
    Regards
    Srinath

  • Printer Option is Inactive in Smartform

    Hi all,
    In my smartform, Printer Button is inactive and I'm not able to take a print out from there.
    How I can take a print of this form. Please help.
    Thanks
    Devinder

    Hello
    You have to look ur Print Parameter (Control and compose) there must be a some setting issue. it should like
    """""""""""""""""""""""""""PRINT COnTROL""""""""""""""""""""""""""""""""""""""""""""""""""
      ls_control_param-preview = ''.
      ls_composer_param-tdimmed = 'X'.
      ls_control_param-no_open = 'X'.
      ls_control_param-no_close = 'X'.
      ls_control_param-no_dialog = 'X'.
      ls_control_param-device = 'PRINTER'.
      ls_composer_param-tddest = tdest.
      ls_composer_param-tdnoprint = 'X'.
    *ls_composer_param-TDDELETE = 'X'.
      CALL FUNCTION 'SSF_OPEN'
        EXPORTING
          output_options     = ls_composer_param
          control_parameters = ls_control_param
          user_settings      = ' '
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    CALL FUNCTION fname
        EXPORTING
          is_nast                    = nast
          output_type                = output_type
          control_parameters         = ls_control_param
          output_options             = ls_composer_param
          user_settings              = ''
          IMPORTING
             job_output_info            = ls_job_info
        TABLES
          sitab_inv                  = itab_inv
          sit_dd                     = it_dd
        EXCEPTIONS
             formatting_error           = 1
             internal_error             = 2
             send_error                 = 3
             user_canceled              = 4
             OTHERS                     = 5.
      CALL FUNCTION 'SSF_CLOSE'
      IMPORTING
            DOCUMENT_OUTPUT_INFO       =
               job_output_info        = ls_job_info
          EXCEPTIONS
            formatting_error = 1
            internal_error   = 2
            send_error       = 3
            OTHERS           = 4.

  • Smartform where the Print Option is not needed

    hi all,
    we have a requirement where the Print Screen Option should not appear.
    we used noopen = 'X' but it is not working. sy-subrc comes as 2(internal error)
    basically the client simply wants the OTF Table for PDF Conversion..
    we have the PDF Code anyway,, all we want is to automatically skip the Print Options.
    points will be rewarded.
    Mouli.

    You can control print pop up by passing contorl parameters
    Try this code         
    x_control_parameters-no_open   = 'X'.
    x_control_parameters-no_close  = 'X'.
    CALL FUNCTION p_fmname
      EXPORTING
      ARCHIVE_INDEX =
      ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS   = X_CONTROL_PARAMETERS
      MAIL_APPL_OBJ =
      MAIL_RECIPIENT =
      MAIL_SENDER =
      OUTPUT_OPTIONS =
       USER_SETTINGS        = u2018Xu2019
       V_SPRAS              = G_SPRAS
       IS_AR_DATA           = P_ADR_DATA
      EXCEPTIONS
       FORMATTING_ERROR     = 1
       INTERNAL_ERROR       = 2
       SEND_ERROR           = 3
       USER_CANCELED        = 4
       OTHERS               = 5.
    IF SY-SUBRC <> 0.
       <error handling>
    ENDIF
    Hope this help
    Regards
    Bikas

  • Smartforms Printing

    Hi Gurus,
    We have stuck with issue, we have created new Z-smartforms based on standard CRM_ORDER_CONFIRMATION_01.
    We have defined action for sending mail, mail is used new smartform which we defined in action conditons.
    once the action triggered we could see txn SOST all the email action,now business want to take print ourt from the transaction.
    When we go for print option by suppling the output device the system gives the error message "Output device LOCL is not type PDF1".
    What we need to do take print?
    Your help will be highly appreciated, thanks in advance.
    Regards,
    muki

    When you get to print preview screen, select goto->list display.  Then press the print button on the action bar (not menu bar).  It will print the OTF document to your default printer.
    Note, you may also need to change the DEVICE_TYPE setting in Format Conversion (SCOT)
    - Tim

  • Passing Default printer options to SF through printer program

    DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
              output_options TYPE ssfcompop,"Smart Composer (transfer) options
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Iam using above code to assign printer options default to smart forms such that user need not select the printer in the runt time.It works well but only when there is no user input required.When the user has to input data for Eg:user enter range for pernr,the program display information between the range.The above code is not working,I have to select the printer again.Can anyone tell me why?
    Thanks.

    DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
              output_options TYPE ssfcompop,"Smart Composer (transfer) options
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Iam using above code to assign printer options default to smart forms such that user need not select the printer in the runt time.It works well but only when there is no user input required.When the user has to input data for Eg:user enter range for pernr,the program display information between the range.The above code is not working,I have to select the printer again.Can anyone tell me why?
    Thanks.

  • Smartforms - Printing Label

    Hello All,
    I´m developing a smartform to print information in a label that has 6cm height.
    My problem is that when I print the informaton the smartform prints information of the next label on the previous information. It seems that the smartform understands my label has 5cm of height.
    How can I 'enlarge' the height of the window or table so smartform will print the correct information on the next label ?
    Thanks in advance.
    Best regards,
    Marcelo Perine

    Matt,
    The smartform receive information in Form interface -> Tables -> ZTB0014
    Each register of this table is printing in one label. Then, my problem is that the smartform is printing two registers in one lable. It´s seens that the new-page function ins´t working.
    Main window
    -Loop
    --Table
    ---Text1
    ---Text2
    --Command
    Main - Output options
    Left margin 0,00 CH
    Upper margin 0,00 LN
    Width 82,00 CH
    Height 15,00 LN
    Loop
    Internal table ZTB0014 INTO EST0014 
    Table
    Table width 80,00 CH
    Horizontal alignment Left 0,00 CM
    Minimum Height 0,00
    Line1 50,00 CH | 30,00 CH
    Text1
    (1) Recebedor das Mercadorias.    
      &EST0014-NAME1&                 
      &EST0014-STRAS&                 
    &EST0014-ORT01& - &EST0014-REGIO&
      &EST0014-ORT02&                 
      CEP &EST0014-PSTLZ&             
    (4) Transportadora                
      &EST0014-TRANS&                 
    Text2
    Volume             
      &EST0014-VOLUM&  
    Command
    X Go to new page %PAGE1                                            
    Reset paragraph number P1
    Message was edited by: Marcelo Perine
    Message was edited by: Marcelo Perine
    Message was edited by: Marcelo Perine

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How to Hit Request of Invoice NO In print Option Conditionaly

    Dear Friend
    i want display to my print option enable and disable according to condition.So i have done some code in my Sql Query.Print Option is display me enable and disable condiotanly correctly but where Print option is ebalbe to print ,When i press print Link then it does not display me invoice details in PDF File to print .My Invoice no do not Hit invoice no as request to Print.
    What Shou.ld i do to pass invoice no to print Invoice.
    My print code which i have use to print
    CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    Here Request of inoice No Does not Hit.
    *P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO*My Code
    This is my View code which i use in my Sql Query Report.View Name *VW_INVOICE_DTL_REPORT*
    SELECT   am.INVOICE_NO,
               CASE WHEN am.INVOICE_TYPE = 'C' THEN 'BLUE' END the_color,
               CASE
                  WHEN am.CURR_CODE = 'GBP' THEN 'GREEN'
                  WHEN am.CURR_CODE = 'EUR' THEN 'purple'
               END the_gbp,
               am.INVOICE_NO AS invoice,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.CONSULTANT_NAME,       
    DECODE (am.INVOICE_TYPE,
                       'I', (NVL (SUM (al.AMOUNT), 0)),
                       (NVL (SUM (al.AMOUNT), 0)))
                  AS SUM,
               um.user_name,
               cm.name,  
             NVL (am.inv_dtl_amt, 0) AS CONTROLSUM,
               CASE
                  WHEN NVL (am.inv_dtl_amt, 0) <> NVL (SUM (al.AMOUNT), 0)
                  THEN
                     'RED'
               END
                  the_sum, 
               Inv_in_apps (Am.Invoice_no) AS apps_FLG
        FROM   AR_INVOICE_MAS am,
                AR_INVOICE_DISTRIBUTION_DTL al
       WHERE       am.invoice_no = al.invoice_no(+)
    GROUP BY   am.ID,
               am.invoice_no,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.inv_dtl_amtThis is my Report SQL Query
    select
    VID.*
                  CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    CASE VID.APPS_FLG
                  WHEN  'N'
                  THEN
                     '<a href="f?p=&APP_ID.:5:&SESSION.:MODIFY:&DEBUG.:5:P5_SBU_CODE,P5_INVOICE_NO:
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':"><img src="#IMAGE_PREFIX#edit.gif" alt="Edit"></a>'
                  WHEN 'Y'
                  THEN
                     '<img src="#IMAGE_PREFIX#edit.gif" alt="Invoice Transfered">'
               END
                  AS the_Edit,
               CASE VID.APPS_FLG
                  WHEN 'Y'
                  THEN
                     '<font color ="Gray"></b>Revenue</b></font>'
                  ELSE
                     '<a href="f?p=&APP_ID.:41:&SESSION.:MODIFY:&DEBUG.:41:P41_sbu_code,P41_Invoice_no:'
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':">
    <font color =GRAY><b>Revenue</b></font></a>'
               END
                  AS Revenue
    FROM VW_INVOICE_DTL_REPORT VIDHow to Do This ?
    Thans
    Edited by: Vedant on May 17, 2013 12:03 AM

    I can, but I am usually not using my mbp at home and I wouldn't like to carry a keyboard around with me just to hit a right alt key. I am sure there's a solution for this...
    Thank you

  • How to print a selection of pages from a 3000   page PDF without having to scroll two wheels! Also is there a way to set printer options for just black and white? Seems like there is a lot missing here?

    I have been using this for school work as much as possible and have come across a problem. With my lack of knowledge for apple it seems as though I can't navigate myself to a easy answer. The problem hits when I am printing pages off of a large document, and I don't want to print the entire document in color but I have no way "that I can find" for a black and white print option...
    ----- also a larger issue, when printing I need to select 1 page or even 20 pages... The time it takes to use a scroll wheel and the fact if you try and scroll fast sometimes you click off the screen then you have to start scrolling all over again... It seems like you would beagle to input from say page 1224 to 1236.... Instead I have a scroll a wheel? Just doesn't make sense...?
       Can someone please help solve this for me!

    Yes, that fixed it, thanks! I had no idea they clashed like that. I ruthlessly purged all other tables of contents, and then used Layout > Table of Contents to create a new one, and it worked.
    It made more sense after seeing in this thread that table of contents styles are more like presets or entities than styles.

  • Print option in BI Report

    Hi
    When i click on the print version in the portal, i can take the printout of the report in the PDF format.
    When i have only 6 columns in the report then all fit in one page. But if i drill down and add one more column to the report and try to do the print (Landscape), I get only first 6 columns in the report.
    Is there any mechanism where in we can say fit to one page or shrink to the page in portal?
    Regards

    Hi
    Thanks for the replies
    Fit to page option is not working. Its not displaying all the contents in one page
    When i say print by default its opening up the PDF file in which there is a report data.
    Where do we do the setting that PDF to be generated when a print option is clicked in EP?
    Regards
    Annie

  • How to set print option for a Billing document using T-code VF02

    Hi All,
    Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
    regards
    Anand.

    Enter the billing documents detail
    Goto Goto> Header>Output.
    Check the status for your output type in this screen.
    If it is green then come back to the VF03 screen.Enter the billing document number.
    Click on Billing document-->Issue output to.
    Press (CtrlShiftF1) or click on the icon beside "Print options".
    Here you can see the print preview.
    If the status is red then click on the processing log.Here you will get the error messages.
    If the status is in yellow colour,then click on the "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
    Enter the billing document no
    Go to Menu option -> Go to -> Header -> Output
    In that screen you have to add relevant output type. (Standard output type is RD00)
    Add that & press enter key
    Highlight that line & press "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Press "Back" Button
    again select that line & go to "Communication method" button
    Set "Logical destination" as LOCAL"
    Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
    Press "Back" Button
    Save
    Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
    You can see that output type line appear.
    select that line & press "Print Preview" button or (CTRLSHIFTF1)
    You can see the print preview.
    Alternatively you can use VF31 to print multiple print outs at same time.
    If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
    Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
    Then normal way, print the billing from SAP.
    It'll automatically send to your PDF writer. You can save it to the path you want,

  • I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    Hi mafiose15,
    Thanks for visiting Apple Support Communities.
    Restoring your iPod to factory settings is the best way to try and get it back to working order. You can use the instructions below to restore it:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    You can find the instructions in this article:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    All the best,
    Jeremy

  • Error:Crystal report Print option in xeon processor

    i am using a server with windows 2008 server and xeon 5520 series processor. windows in 64 bit with 16 Gb of ram.
    everything is working fine except the print option in crystal report..
    i tried installing crystal report basic runtime but it says that it doesnt supprt xeon processor .
    kindly solve this issue .
    Thank you in advance

    You'll have to supply a whole bunch more detailed info. Telling me that you have 2008 server and xeon 5520 series processor, windows in 64 bit is like telling your mechanic that you have a blue car with 4 wheels and it does not work. No info re. engine, of make or what the problem is... And with that info, you want your mechanic to fix the car...
    1) What CR / BO SDK are you using?
    2) what version of the above are you using?
    3) What updates for (1) above are you using?
    4) What development language are you using?
    5) How are you deploying the runtime for (1) above?
    6) What is the precise error message you are getting?
    Think about the info I would need to accurately reproduce the issue. What info would probably be good to have?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • 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/

Maybe you are looking for

  • TYPICAL REPORT REQUIREMENT

    hi experts, Below there is a function spec so please can anybody send me the code for this requirement?can anybody send me the steps for thsi atleast? please its urgent 1.1 Functions in Detail The function of this report is to produce a summary buy o

  • Help: APEX - PL/SQL Function

    Hello, i need some help with a SQL statement. I have the follwing Table "TABF": ID Number, B_Number varchar2(10), G_Type varchar2(10), Site varchar2(50), Event varchar2(50), Date varchar(10), Dataset varchar2(50), Mode varchar2(50), Topic varchar2(10

  • Load the bussiness data

    Hello everyone:   I start the update by Infopackage,but it can not finish successful and system message as follow: Processing in Warehouse timed out; processing steps mising Diagnosis Processing the request in the BW system is taking a long time and

  • Cannot sign in to iTunes account via iTunes on Macbook Pro

    I can sign in to the discussion forums here (obviously), I can connect via the store on my iPhone with no problem.  Same password in each case - yet on my MacBook Pro [v. 10.0.4 (4)] iTunes simply pops the Sign In box back up. Of particular interest

  • Cannot access Admin Web Tool !!! need suggestion!

    i did install OSB on the DB 11g machine which is running Win 2008 Server. All services are up and running the only problem is that I can not got to Web Tool. Inte observiced log file I have next event: Copyright (c) 1992, 2007, Oracle. All rights res