Value pass to Smartform when Print/Preview

Hi,
I've a custom print program and smartform. All my selecting data codes are in Smartform. How do I let Smartform knows whether I'm doing a preview or print? What values should I pass into Smartform?
I'd like to achieve something as follows:-
IF print preview.
  DO a.
ELSE.
  DO b.
ENDIF.
Please share your thoughts.

Hi Brad,
Actually it is not the data selected that determines the print preview. Let me give a clearer scenario.
When user clicks Print Preview, user able to see a preview of the form. However, when user clicks Print, form is printed and some data is saved to a custom table.
Currently, both print preview and print will save the data to the custom table. So I'd like to know how to prevent data being saved into the custom table when user performs a print preview.
Thanks.

Similar Messages

  • Text in samrtforms when print preview display as ####

    Dear friends,
    I have got the problem about smartforms, I have created my own smartform with original language ‘TH’ and created the text node with Thai and English including Numeric Character. But when I executed the form to print preview, any texts cannot be read, its display as ###### neither I logon with TH nor EN Language. Please advise.
    Ps. any texts in text node when seeing in smartforms can be read normally, it got the problem when print preview.
    More information of my smartforms:
    1. Language Attributes: Original is TH, Translate to all language, do not tick any checkboxes of Access area.
    2. SAP version is ECC 5.0, Basis and ABAP Support Package is 014 Release 640, Application Support Package is 008 Release 500.
    3. Kernel Release 640 Patch Level 101, Oracle 8.1.7, DBSL version 640, Patch Level 101.
    4. OS Windows 2000 Service Pack 4
    Thank you in advances,
    SeMs

    Hi!
    Which printer do you use?
    Check in the transaction spad which printer and printerdriver you use. Dobbleclick on the printerdriver and check which codepade is assigned.
    I think it has to be one of the following codepages:
    8600     Thai Codepage ISO988/2533
    8604     Microsoft Windows 874 for Thai
    8611     Thai Printer Codepage 1 (EPSON ESC/P2)
    8616     Printer HPLJIIID (Thai)
    8617     Thai Postscript printing
    8634     Thai Printer codepage (THSAPWIN)
    Pleas try this.
    BR
    Silvio Hey

  • Error in smartform when printing multiple pages

    Hi,
    I m using a smartform which have two pages in it,
    i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
    it runs fine and diplays two pages i m using.
    but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
    Please help me out to resolve the issue.

    Re: error in smartform when printing multiple pages
    dharani tadikonda
    Thanks for this answer. It is absolutely correct.

  • Converting Smartforms to PDF and displaying Smartforms on print preview

    Hi,
    How to convert smartforms to pdf?
    How to attach this pdf to email?
    How to attach this pdf to the email and at the same time can print preview the smartforms?
    Thanks.

    Hi Navi,
    Code Snippet for Simple Mail
    *& Report  ZZ_TEST                                                     *
    REPORT  zz_test                                 .
    INCLUDE zz_test_top.
    INCLUDE zz_test01.
          FORM entry                                                    *
    -->  RETURN_CODE                                                   *
    -->  US_SCREEN                                                     *
    FORM entry USING return_code us_screen.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen.
      CASE retcode.
        WHEN 0.
          return_code = 0.
        WHEN 3.
          return_code = 3.
        WHEN OTHERS.
          return_code = 1.
      ENDCASE.
    ENDFORM.                    "entry
    *&  Include           ZZ_TEST_TOP                                      *
      TABLES : nast,
               tnapr.
    TYPES : BEGIN OF t_SOUDNAMEI1.
            INCLUDE STRUCTURE SOUDNAMEI1.
    TYPES : END OF t_SOUDNAMEI1.
    Internal Table declarations
      DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
      i_tline TYPE TABLE OF tline WITH HEADER LINE,
      i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
      i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *Objects to send mail.
      i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
      i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
      i_lips LIKE lips OCCURS 0 WITH HEADER LINE,
      i_SOUDNAMEI1 TYPE STANDARD TABLE OF t_SOUDNAMEI1.
    Work Area declarations
      DATA:w_objhead TYPE soli_tab,
      wa_control_parameters TYPE ssfctrlop,
      wa_output_options TYPE ssfcompop,
      w_return TYPE ssfcrescl,
      w_doc_chng TYPE sodocchgi1,
      w_data TYPE sodocchgi1,
      w_buffer TYPE string,"To convert from 132 to 255
      wa_SOUDNAMEI1 TYPE t_SOUDNAMEI1,
    Variables declarations
      w_form_name TYPE rs38l_fnam,
      w_len_in LIKE sood-objlen,
      w_len_out LIKE sood-objlen,
      w_len_outn TYPE i,
      w_lines_txt TYPE i,
      w_lines_bin TYPE i,
      retcode      TYPE sy-subrc,
      xscreen      TYPE c,
      w_spld TYPE usr01-spld,
      w_receiver TYPE SOXNA-FULLNAME,
      w_OBJ_RECORD TYPE OBJ_RECORD,
      w_user type sy-uname,
      w_email TYPE ad_smtpadr.
    Constants Declaration
      CONSTANTS : c_x TYPE c VALUE 'X',
                  c_atrate(1) TYPE c VALUE '@'.
    *&  Include           ZZ_TEST01                                        *
          FORM PROCESSING                                               *
    FORM processing USING proc_screen.
      SELECT * FROM lips
        INTO TABLE i_lips
        WHERE vbeln = nast-objky.
    Call Function module to Getfunction Module name Generated by Smartform
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = tnapr-sform
        IMPORTING
          fm_name            = w_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        retcode = sy-subrc.
      ENDIF.
      CLEAR : wa_control_parameters,
              wa_output_options.
      CASE nast-nacha.
        WHEN '1'.
          wa_control_parameters-device    = 'PRINTER'.
        WHEN '7'.
          DATA: l_email TYPE ad_smtpadr.
          wa_output_options-tdnoprev = c_x.
          wa_control_parameters-getotf  = c_x.
    To get the default output device maintained in the
    User profile
         SELECT SINGLE spld FROM usr01
          INTO w_spld
          WHERE bname EQ nast-usnam.
          IF sy-subrc EQ 0.
            MOVE w_spld TO  wa_output_options-tddest   .
          ENDIF.
          wa_output_options-tdnoprev = c_x.
          wa_control_parameters-getotf  = c_x.
    To get the email address maintained for the particular output
          CALL FUNCTION 'NAST_GET_MESSAGE_OBJECT_RECV'
            EXPORTING
              pi_objkey             = nast-tdname
            IMPORTING
              pe_addr               = w_receiver
            CHANGING
              pc_objhandle          = w_obj_record
            EXCEPTIONS
              maildata_not_readable = 1
              OTHERS                = 2.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          IF w_receiver NA c_atrate.
    To retrieve the E-Mail Id in case we get the User name from NAST
            CLEAR wa_soudnamei1.
            REFRESH i_soudnamei1.
            MOVE w_receiver TO wa_soudnamei1-fullname.
    To get the user name
            CALL FUNCTION 'SO_NAME_CONVERT_API1'
              EXPORTING
                name            = wa_soudnamei1
              TABLES
                names           = i_soudnamei1
              EXCEPTIONS
                user_not_exist  = 1
                parameter_error = 2
                x_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.
            CLEAR wa_soudnamei1.
            READ TABLE i_soudnamei1 INTO wa_soudnamei1 INDEX 1.
            MOVE wa_soudnamei1-sapname TO w_user.
    To get the e-mail Id maintained in the user profile
            CALL FUNCTION 'FTR_CORR_CHECK_EMAIL_SAP_USER'
              EXPORTING
                i_user              = w_user
              IMPORTING
                e_email_address     = l_email
              EXCEPTIONS
                mail_address        = 1
                determination_error = 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.
            MOVE l_email TO w_receiver.
          ENDIF.
          MOVE  w_receiver TO w_email.
      ENDCASE.
      wa_control_parameters-no_dialog = c_x.
      wa_control_parameters-langu     = nast-spras .
      wa_output_options-tdteleland    = nast-tland.
      wa_output_options-tdtelenum     = nast-telfx .
      wa_output_options-tdsenddate    = nast-erdat .
      wa_output_options-tdsendtime    = nast-eruhr .
      wa_output_options-tddataset     = nast-dsnam .
      wa_output_options-tdsuffix1     = nast-dsuf1 .
      wa_output_options-tdsuffix2     = nast-dsuf2 .
      wa_output_options-tdimmed       = nast-dimme .
      wa_output_options-tddelete      = nast-delet .
      wa_output_options-tdautority    = nast-tdautority.
      wa_output_options-tdcovtitle    = nast-tdcovtitle .
      wa_output_options-tdcover       = nast-tdocover .
      wa_output_options-tdreceiver    = nast-tdreceiver.
      wa_output_options-tddivision    = nast-tddivision.
      wa_output_options-tdcopies      = nast-anzal .
      wa_output_options-tdnewid       = c_x.
      wa_output_options-tdarmod       = nast-tdarmod.
      wa_output_options-tdnoarmch     = c_x.
      CALL FUNCTION w_form_name
        EXPORTING
         archive_index      = toa_dara
         archive_parameters = arc_params
          control_parameters = wa_control_parameters
          output_options     = wa_output_options
          user_settings      = ' '
        IMPORTING
          job_output_info    = w_return
        TABLES
          it_lips            = i_lips
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF nast-nacha EQ 7 AND sy-subrc EQ 0.
        i_otf[] = w_return-otfdata[].
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
            max_linewidth         = 132
          IMPORTING
            bin_filesize          = w_len_in
          TABLES
            otf                   = i_otf
            lines                 = i_tline
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 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.
    Convert PDF from 132 to 255.
        LOOP AT i_tline.
    Replacing space by ~
          TRANSLATE i_tline USING ' ~'.
          CONCATENATE w_buffer i_tline INTO w_buffer.
        ENDLOOP.
    Replacing ~ by space
        TRANSLATE w_buffer USING '~ '.
        DO.
          i_record = w_buffer.
    Appending 255 characters as a record
          APPEND i_record.
          SHIFT w_buffer LEFT BY 255 PLACES.
          IF w_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
        REFRESH: i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
        CLEAR w_objhead.
    Object with PDF.
        i_objbin[] = i_record[].
        DESCRIBE TABLE i_objbin LINES w_lines_bin.
    Document information.
        w_doc_chng-obj_name = 'Smartform'.
        w_doc_chng-expiry_dat = sy-datum + 10.
        CONCATENATE 'Delivery' 'Note'
        INTO w_doc_chng-obj_descr.
    *w_doc_chng-obj_descr = 'Smart form output'.
        w_doc_chng-sensitivty = 'F'. "Functional object
        w_doc_chng-doc_size = w_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
        CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet
        i_objpack-head_start = 1.
    Number of lines of an object header in object packet
        i_objpack-head_num = 0.
    Start line of object contents in an object packet
        i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
        i_objpack-body_num = w_lines_txt.
    Code for document class
        i_objpack-doc_type = 'RAW'.
        APPEND i_objpack.
    Packing as PDF.
        i_objpack-transf_bin = 'X'.
        i_objpack-head_start = 1.
        i_objpack-head_num = 1.
        i_objpack-body_start = 1.
        i_objpack-body_num = w_lines_bin.
        i_objpack-doc_type = 'PDF'.
        i_objpack-obj_name = 'Smartform'.
        CONCATENATE 'Delivery' 'Note' '.pdf'
        INTO i_objpack-obj_descr.
        i_objpack-doc_size = w_lines_bin * 255.
        APPEND i_objpack.
    Document information.
        CLEAR i_reclist.
    e-mail receivers.
        i_reclist-receiver = w_email.
        i_reclist-express = 'X'.
        i_reclist-rec_type = 'U'. "Internet address
        APPEND i_reclist.
    sending mail.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = w_doc_chng
            put_in_outbox              = 'X'
          TABLES
            packing_list               = i_objpack
            object_header              = w_objhead
            contents_bin               = i_objbin
       contents_txt               = i_objtxt
            receivers                  = i_reclist
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 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.
      ENDIF.
    ENDFORM.                    "processing
    OTF to PDF
    ========================================================================
    Program1
    *& REPORT  zpmm_print1
    REPORT  zpmm_print1.
    DATA : gw_ssfcrescl TYPE ssfcrescl.
    DATA: gt_otf TYPE STANDARD TABLE OF itcoo ,
          gt_tline TYPE STANDARD TABLE OF tline,
          gv_len LIKE sood-objlen,
          gw_ssfctrlop TYPE ssfctrlop, "for CONTROL_PARAMETERS
          gw_ssfcompop TYPE ssfcompop. "for OUTPUT_OPTIONS
    DATA  fm_name TYPE rs38l_fnam.
    gw_ssfctrlop-getotf = 'X'.
    gw_ssfctrlop-no_dialog = 'X'.
    gw_ssfcompop-tdnoprev = 'X'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = 'ZPMM_1'
      IMPORTING
        fm_name            = fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    IF sy-subrc <> 0.
    <error handling>
    ENDIF.
    CALL FUNCTION fm_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = gw_ssfctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       output_options             = gw_ssfcompop
       user_settings              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = gw_ssfcrescl
      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.
    gt_otf[] = gw_ssfcrescl-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
        max_linewidth         = 132
      IMPORTING
        bin_filesize          = gv_len
      TABLES
        otf                   = gt_otf
        lines                 = gt_tline
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 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.
    DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\swet.pdf'.
    CALL FUNCTION 'DOWNLOAD'
      EXPORTING
        bin_filesize     = gv_len
        filename         = gv_filename
        filetype         = 'BIN'
        filetype_no_show = 'X'
      IMPORTING
        act_filename     = gv_filename
        filesize         = gv_len
       cancel           = ''
      TABLES
        data_tab         = gt_tline.
    Program 2
    *& REPORT  zpmm_print2
    REPORT  zpmm_print2.
    DATA : gw_ssfcrescl TYPE ssfcrescl.
    DATA: gt_otf TYPE STANDARD TABLE OF itcoo ,
          gt_tline TYPE STANDARD TABLE OF tline,
          gv_len LIKE sood-objlen,
          gw_ssfctrlop TYPE ssfctrlop, "for CONTROL_PARAMETERS
          gw_ssfcompop TYPE ssfcompop. "for OUTPUT_OPTIONS
    DATA  fm_name TYPE rs38l_fnam.
    gw_ssfctrlop-getotf = 'X'.
    gw_ssfctrlop-no_dialog = 'X'.
    gw_ssfcompop-tdnoprev = 'X'.
    CALL FUNCTION '/1BCDWB/SF00000041'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = gw_ssfctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       output_options             = gw_ssfcompop
       user_settings              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = gw_ssfcrescl
      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.
    gt_otf[] = gw_ssfcrescl-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
        max_linewidth         = 132
      IMPORTING
        bin_filesize          = gv_len
      TABLES
        otf                   = gt_otf
        lines                 = gt_tline
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 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.
    DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\swet.pdf'.
    CALL FUNCTION 'DOWNLOAD'
      EXPORTING
        bin_filesize     = gv_len
        filename         = gv_filename
        filetype         = 'BIN'
        filetype_no_show = 'X'
      IMPORTING
        act_filename     = gv_filename
        filesize         = gv_len
       cancel           = ''
      TABLES
        data_tab         = gt_tline.
    =========================================================================
    Cheers
    Mohinder Singh Chauhan

  • Getting a Spool Order when PRINT PREVIEW is selected

    Hi!
    In order to solve another problem I have, I need to find a solution to the following issue:
    I need that when the user clicks on "Preview Print" at the print options of a SapScript, the system creates a spool order.
    I'm getting a spool order only when the user PRINTs the form, not when the PRINT PREVIEW is selected.
    There is a way to make the system to create a spool order, no matter if the user is printing or viewing the form???
    Thanks in advance!
    Bettina

    Hi Bettina,
    To achieve this before calling smartforms function module, declare below data.
    data: gst_control_parameters type ssfctrlop,
            gst_output_options type ssfcompop,
            gt_job_output_info type ssfcrescl,
            gt_output_options type ssfcresop.
    Now before calling the generated smartforms function module pass below parameters
    gst_control_parameters-no_dialog = 'X'.
    gst_control_parameters-getotf = 'X'.
    gst_control_parameters-preview = 'X'.
    Finally pass the parameter as below
    control_parameters = gst_control_parameters
    output_options = gst_output_options
    job_output_info = gt_job_output_info
    job_output_options = gt_output_options
    Regards
    Abhii
    Edited by: Abhii on Dec 10, 2009 4:48 PM

  • User gets odd behavior when print previewing calendar

    User calls with an odd problem.
    She is using 32 bit IE 9 with our SP 2010 farm.
    She goes to her department calendar. She sees events.
    She presses Print Preview. No events are shown on the page.
    She tries to export the data to Outlook - it tells her there is too much data.
    She calls me.
    I look - her default view is running into the resource throttling of the farm. So I try to create a unique view that only shows this week's events.
    It works fine for me. Print preview and printing work as well.
    When she looks at it in her browser, it works fine.
    When she tries to print preview - no events show up on the preview page.
    She tries to export from the new view - Outlook gets no events.
    She is using IE9, so the IE7 comments in old threads are not relevant.
    I set the web part configuration to 12 inches as one conversation suggestions. That doesn't help.
    Does anyone else have any ideas of things to try?

    When I look at the custom calendar within SharePoint Designer, the page has a ListView Web Part but not an XsltListViewWebPart.
    I have tried several times to step through blog entries that describe editing the page, setting the view of the web part, etc. At one point whatever I tried turned the calendar view into a list view ... sigh. I created a new calendar view and made it
    the default.
    I have asked the user to try the print preview out today to see if it works for her after I created the new view.
    The really odd thing about all of this is that at least 2 people don't have the problem with not seeing event data in the print preview.
    It _almost_ sounds like some sort of machine specific issue she is having.
    I wonder if I should ask the admins to repair Office 2010 on her machine to make certain the DLLs are all working properly.

  • Automatically prompt to save PDF when Print Preview for Purchase Order?

    We recently upgraded to EP7.
    I have an end user that does our PO's.
    She swears up and down that she used to be able to go into any given PO, be it new or existing, and click on the print preview button. She says when she did this she was prompted to save or open the file.
    She is set to PDF Preview when doing a print preview of the PO.
    When we first upgraded the system, it was broken. When she tried to do this it would give you a Page Cannot Be Displayed error as in unable to find the page. We learned that there was an issue with name resolution within the system. We fixed this and now she can view the files as PDF when doing a print preview.
    But she still claims it did not used to work like this that when she went to preview she would be prompted to save or view which worked great for her because she could click save, save it to her computer, and then email it to whomever she needed to send it to.
    Seems clear to me that that when you do PDF Preview that an SAP browser session is created and sent to an web site (internal to SAP of course) to view the PDF. How can I tell SAP to give me the option to view or save?
    For now the user is repeating the output when she needs to reprint another copy of the PO.
    I should also say that we use Free PDF Creator. After setting her default printer to this, she says that now when she creates a new PO, it is working like before. So its possible that the prompt was the one from PDF Creator.
    The user says she swears she could simply print preview would allow her to save local. I never saw it for myself prior to the upgrade.
    Anyone seen this before or can offer any clues? Is there away to issue output at print preview?

    How did you fix 'page cannot be displayed' error?
    It looks like issue was at browser/pdfreader side.

  • FF windows goes blank white and freezes if I click a link in another application when Print Preview is open in FF (Win 7 64-bit)

    Possible bug: FF dumps my session if I try to open an external link without closing print preview view. I had left the Print Preview screen open in FF after printing a web page, and I clicked a web link in another application, which would have normally opened in a new tab in FF. However, only the Print Preview window was displayed and when I clicked "Close", the FF window when all white. Back/backspace wouldn't work and I had to close FF and start a new session. I tested this a few times and it happens every time. I didn't think to test whether this happens in Safe Mode.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • SMARTFORM PDF PRINT PREVIEW - URGENT!!

    Hi All,
    I have a requirement to get a print preview of the smartform in the pdf format and have the option to either print it or save it.
    meaning - the adobe application must automatically open and in it, there must be a window to display the smartform in the PDF format.
    the code i have so far is as below
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = W_FORM_NAME
    IMPORTING
    FM_NAME = W_FMODULE
    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.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    gst_output_options-tddest = 'FRNT_End_Print'. "Frontend printer
    gst_output_options-tdnewid = sy-prnew.
    gst_output_options-tdimmed = 'X'.
    gst_output_options-tddelete = sy-prrel.
    clear gst_control_parameters.
    gst_control_parameters-no_dialog = 'X'.
    gst_control_parameters-getotf = 'X'.
    gst_control_parameters-preview = 'X'. "Deactivate preview!
    *Call the original function module.
    call function w_fmodule
    exporting
    control_parameters = gst_control_parameters
    output_options = gst_output_options
    importing
    job_output_info = gt_job_output_info
    job_output_options = gt_output_options
    tables
    tbl_amt = final_tab
    exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    if sy-subrc ne 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    T_OTF] = gt_job_output_info-OTFDATA[.
    call function 'SSFCOMP_PDF_PREVIEW'
    exporting
    i_otf = t_otf
    exceptions
    convert_otf_to_pdf_error = 1
    cntl_error = 2
    others = 3.
    if sy-subrc ne 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    The adobe application is launched but the window inside does not hold anything.
    i get a pop-up inside the adobe window with the message " FILE DOES NOT BEGIN WITH '%PDF-' ".
    Any suggestions are greatly appreciated.
    hoping to hear from you all.
    thank you.
    Sandeep

    Hi,
    Check the foll code it does the same thing.........
    Give a simple form(without any parameters) to check the code..........
    DATA: v_form_name           TYPE rs38l_fnam,
          wa_control_parameters TYPE ssfctrlop,
          it_job_output_info    TYPE ssfcrescl,
          v_bin_filesize        TYPE i,
          it_otf_data           TYPE tsfotf,
          it_doctab_archive     TYPE TABLE OF docs  WITH HEADER LINE,
          it_lines              TYPE TABLE OF tline WITH HEADER LINE.
    PARAMETER p_sform   TYPE tdsfname OBLIGATORY DEFAULT 'Put ur form name here'.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = p_sform
        IMPORTING
          fm_name            = v_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
        wa_control_parameters-no_dialog = 'X'.
        wa_control_parameters-getotf    = 'X'.
        CALL FUNCTION v_form_name
          EXPORTING
            control_parameters = wa_control_parameters
          IMPORTING
            job_output_info    = it_job_output_info
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
        IF sy-subrc = 0.
          it_otf_data = it_job_output_info-otfdata[].
          CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
            EXPORTING
              i_otf                    = it_otf_data[]
            EXCEPTIONS
              convert_otf_to_pdf_error = 1
              cntl_error               = 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.
        ENDIF.
      ENDIF.
    Cheers,
    jose.

  • Error when print/previewing joutnal report

    I am gettign the following error when trying to view a journal report PLEASE HELP!
    Can't open the log file
    Show Details:
    Error Reference Number: {CAC41EC9-7F12-46FA-A900-EB5E57E802D8}
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMActions.cpp;Line: 72;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMCESAction.cpp;Line: 28;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: Actions.cpp;Line: 385;Ver: 11.1.2.1.000.3082;

    Hi,
    How the issue was fixed, it would be great if you can provide the resolution steps.
    It seems i'm too getting the same issue, when i'm trying to open a HFM report in workspace the report prompts to select a member but when i'm clicking the prompt button then it is throwing the error.Error is as below
    Respond to prompts
    *[1033] Native:- 2147219967 error reference number {FF339D8B-E1CC-4E57-9D4A-C4EF051D76B6}*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: CHsvADMDriverACM2.cpp;Line:2500;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1491;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1245;Ver:11.1.1.3.500.3124*
    HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1203;Ver:11.1.1.3.500.3124*

  • How do we view smartform output without clicking print preview

    how can we view form without using print preview
    Thanks in advance

    Use 'TEST' button (F8) that is placed on the toolbar - have to use it few times to get to the preview.
    You can fill there your data fields (or not) and see preview of the smartform
    (use 'Print preview' when it will ask about the printer)
    It's also helpful for debugging problems (f.e. table width isn't matching window width) when the form is not printing in it's main program - it writes You the problem.

  • Text visibility only in Print Preview Mode & Should not come in Hard copy !

    Hi All,
    Is it possible to have a text which is visible only in Preview but should not come in Printed hard copy ?
    Regards
    Ajay

    Hello,
    In the FM OPEN_FORM of your print program you will be passing whether it's print preview or not in the Options parameter
    i.e.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        FORM       = 'Z_SAMPLE'
        OPTIONS    = itcpo
    Just have an if statement in the SAPScript to only print this when that value = 'X' (i.e. IF &itcpo-tdpreview& eq 'X').
    Regards,
    Michael

  • Print preview vs print

    Hi Experts,
    I have a problem when trying to see the result of mijn sapscript or smartform via print preview.
    The result of the print preview is very different from the real print (if i print the same form).
    By sapscript i get the text : display text as abap list in the screen of the print preview.
    Via print preview i cannot see the frames for example ..etc.
    How could i solve this problem?
    Thanks in advance.

    Hi,
    Please ensure that you are giving the same printer name for both print & View, as the device type used in that printer will decide how it is displayed. i.e. your print preview may be different if you use 2 different printers having different device types.
    Regards
    Raju Chitale

  • Print out different from print preview (for THANGSAN font)

    Save Our Environment. Save Yourself.
    Hi Experts!!
    I have created a smartform and print program which should actually print some Thai characters and English characters too. I created a smartstyle and have some 10 paragraph formats and are all have THANGSAN font. So, I am printing all the thai and english characters in THANGSAN font only.
    When print preview is seen, the output is very fine, but when being printed, the thai characters are appearing fine but the english characters' font is being changed to somehting else (courier or arial). Why is this happening so? Because of this, all the output is being merged and looking very weird.
    The smartform is created in EN and is translated to all languages. All user has logged on to SAP in EN language.
    Can somebody please help me out with whether the problem is with THANGSAN or the printer?
    P.S. The smartform is actually similar to the standard script Z_RVINVOICE01 in which only THANGSAN is used.
    - I'm not an environmentalist. I'm an Earth warrior.

    Save Our Environment. Save Yourself.
    Hi Sandra,
    Thanx for the reply. I do not have authorization for SMARTFORM_TRACE. Though I entered by debugging, I did not understand what should be done there.
    But as you said I created a spool. Can you please help me in how to check that RAW thing?
    Thanks a lot.
    - I'm not an environmentalist.  I'm an Earth warrior.

  • Problem with Print Preview  Urgent!

    Hello BW Experts,
    1.I am trying to use the Print functionality for web printing.In the print preveiew i see all the text in black and white.It is completely different from the page that is displayed in the browser.
    --I tried using the same print stylesheet but it does not work.
    2.In the print preview how do i change the default header line height to some other value.
    3.If i select file>print preview in internet explorer it is treating the logo as a different page,so the logo is printing in seperate page followed by the text.
    I appreciate all your help.
    Thank you all!
    Raj

    Thanks deepak for the reply.
    I am using the stylesheet and media = print but i still have the problem.
    This is the javascript function i am using
    <head>
    <link href="/sap/bw/Mime/BCT/StyleSheets/ServicePortalBWReports.css" type="text/css" rel="stylesheet"/>
    <script>
    <script language=javascript>
    function callPrintHelpService(parameter, cell_type, filter, parameter1, parameter2, item, dataprovider, x, y) {
    var print_service = "Z_PRINT_HELP_SERVICE"
    <!--if ( parameter == "inches") print_service = "Z_PRINT_HELP_SERVICE_IMP";
    var cmd = url + "&DATA_PROVIDER=DP&HELP_SERVICE_CLASS=" + print_service;--->
    SAP_BW_URL_Get();
    if( dataprovider == "DP") window.open(url, "Print", "width=800, height=600, menubar=yes, toolbar=no, scrollbars=yes, resizable=yes"); }
    </script>
    <!-- Query description in the window title bar --->
    <title>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TITLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="REPTXTLG"/>
             <param name="ONLY_VALUES" value="X"/>
             <param name="ELEMENT_NAME" value="REPTXTLG"/>
             ITEM:            TITLE
    </object>
    </title>
          <link href="/sap/bw/Mime/BEx/StyleSheets/ServicePortalBWReports.css" type="text/css" rel="stylesheet" media="print"/>
    </head>
    1.---can you please be more specific where i need to change the default header height value.
    2.In the print preview of the report it looks fine but when i say file>print preview from internet explorer it is considering the logo as seperate page .Do i need to make any settings somewhere.
    3.In the print preview it remains same eventhough i use the same stylesheet as that of the report.
    Please advice.
    Thank you,
    Raja

Maybe you are looking for

  • Firefox crashes immediately on certain sites and after a minute otherwise. It was working fine yesterday...

    For some reason, Firefox doesn't consider this a crash, so it didn't give me a crash report. Also, whenever this happens, a window pops up saying, "Firefox has stopped working. Windows is checking for a solution... A problem caused the program to sto

  • HT1918 what can i do if i have forgotton my answers to the security questions?

    recently got a new iphone due to some internal speaker issues with my old one... After getting it all setup and transfering my songs etc... over... when i go into the Apple Store or Itunes it asks me to answer some security questions to verify myself

  • Item not relevant for billing

    I am using batch determination and while doing the billing for the item , i am getting an error log item is not billing relevance, As my batch determination item cateogry is YTAN, in that i have billing relevance indicator as BLANK, plz guide me for

  • LOV is Extracting By It-self in 3-tier

    Could anyone can tell the reason forthis :- I have written some code for calling the LOV in different-2 conditions For that I had written the below code -      if :blk_detail1.nu_serial_no = 1 then           if :blk_head.ch_reference_type = 'O' then

  • Laptop "auto-mute" when i plug in HDMI cable

    Hi, I am facing some problem with my laptop audio... have been using it connected to my LCD TV for the past couple of months. Suddenly the mute button cannot be disabled whenever i plug in my hdmi cable. once i remove it, it automatically unmute. Hel