Print preview of smartform in word format (editable)

Hi Everybody,
I have a smartform. I want, when i click on the print priview , it should display in Ms word format and that to editable.
Plz help.
Thanks,
Mohammadi.

hi,
1.convert smartform output to a word document using the function module "'RSPO_DOWNLOAD_SPOOLJOB'.
2.Check the print options for smartform.
3.Refer This:Re: print priview in smartforms
Regards,
Shiva Kumar

Similar Messages

  • Print Preview of smartform  with device type EPESCP9

    Hi all,
    I have created a z smartform to print commercial invoice.
    I am using dot matrix print Epson FX-2170 to print invoice.
    For this printer the device type is EPESCP9.
    So I created an output device having device type EPESCP9.
    I have assigned the required Format type to the device type and the page format which is assigned in the smarform to the Format type.
    But I am not getting any print preview of the invoice when  I select this output device.
    I am only able to get print preview when I select an ouput device having device type SAPWIN.
    Please provide solution to get preview in device type EPESCP9.
    Edited by: Vinod Iyer on Apr 24, 2008 6:08 PM

    Hi,
    1.I think You are assigned the Printer details in SPAD.
      2.The page format and Printer settings are correctly done ,then it will come.But,the main problem is ,the page format is not supposed to match.Please check that page format in smrtform and Printer settings.
    3.If posible see those settings in I18n also.
    Regards,
    Shiva.

  • Error while displaying print preview of smartform in VL03n

    Hi all,
    i created one smartform & print program . i assigned this in NACE tcode for ZD05 output type.
    Then i am trying to see the print preview in VL03n  while doing issue delivery output.
    But i am getting error like ' Output could not be issued'. Please suggest where i am doing mistake. Thanks.
    Regards
    sumitra

    Hi,
    Follow below Steps:
    1) Double Check your program and smartform names where you are attached in nace  transaction.
    2)check your templates and tables having formatting issues.
    3)Finally create dummy of your smartform. then delete one by one window in smartform check it and trace out in which window error is existing.
    even i faced same problem.
    in my case i gave wrong line and column numbers under the template node texts. it won't show the error in smart form but while executing transaction out put could not issued.
    Thanks,
    Satheesh.

  • Printout is different then print preview in smartforms

    hi all,
    i had created one smartform, but when i check the print preview it is showing desire output but when i print the form second page data is coming in BOLD,
    can someone please help me in this.??
    points will be rewarded as per the solution.
    thansk in advance.

    Hi,
    Try to create the style and assign that style in the output options of that particular text and also select the text mentioned in the general attributes and assign the character type fo thtat text.In order to create the stly so to smarform tcode select style radio button mention your style name zxyz (etc) now press create you will fine paragraph and character format folders.Now right click on character format folder and select create node now give your format name  description for the character format now slect font tab and mention the font name and size(this is what you have use in general attributes text selection) this created character format will be found once you mention your style name in the output options(ZXYZ).Hope i am clear.
    Reward if helpful.
    Regards,
    Harini.S

  • Updation of table after Print and Print-Preview in smartform

    Hi,
    I am having a requirement where i need to print multiple deliveries with the sales order data each delivery on a new page using smartform.
    Now , i am using SSF_OPEN, SSF_CLOSE Fm's for the same. I need to update a Z table after the user clicks on PRINT from the pop-up or print from the print preview screen.
    I tried using the output_info parameter in the smartform where i read from a post that the OUTPUTDONE parameter becomes "X" in the job_output_info when the user clicks print wither in the two ways said before.
    This does not work out in case if the FM'S SSF_OPEN and SSF_CLOSE are used.
    Kindly help me on the same.
    Thanks in advance

    yes i tried that..using the AT new event for a Delivery and then a command to go to the NEW PAGE, but somehow when i execuet the form, i could not see the layout..so in the debug i saw the subrc after the FM is run..it says SUBRC = 2 i.e. internal error. I am not able to figure that out.
    So i had to use these open and close, nowi just want to update a z table if the user clicks on the print button (print preview screen) after using the print preview .
    Kindly suggest.
    Thanks.

  • Problem in print preview of smartform

    hi all,
    when i transport my smartform from dev system to production system. In the print preview , the numeric values are getting reduced to *.
    i.e *99 where as the correct value wa 267542399.
    where as the print priview of the same smartform on dev is working fine.
    kindly let me knw how to solve this problem.
    expecting your answer!!
    rgds

    Hi,
    You need to take the long field than the current field, in the DEV system the length is sufficient for the value but in the Test system the value is coming more then the Field length, so take the same length of that field so that that will work in every system
    Regards
    Sudheer

  • Print preview in smartform

    hi all,
    i have a problem  while using the print preview. the problem is im unable to see the print preview when i select the form and execute i dont know what is the problem. i have tried giving lp01 locl but it shows only plain page not only my z form but also for standard one .can any one help me in this regards.
    thanks in advance.
    anupama

    Check the number of pages it is showing. I think you have selected the SAP Cover Page option and it is shoing an extra page at the start.

  • Print preview + sending smartform through attachment

    Hello experts,
    I have one smartform whose output is to be sent as email attachment.
    THe porblem is that i need to have preveiw also with email funtionality.
    When i give GETOTF paramter as 'X',it doesnot show preview and when i m passing it as blank,then it is not triggering a mail.
    May we have both functionalities at the same time.
    If yes ,how?

    Hi Anurodh,
    1. First call the smartform passing GETOTF as X and  NO_DIALOG as X, by doing this you get the the OTF table which you can send as an attachment.
    2. next once you are done with your mail send logic, call the smartform again only for preview
    even this looks like a redundant one but there is no way out.
    hope this helps.
    venkatesh.

  • 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

  • Standard text printing missing on Smartform

    Hi All,
    I am using standard text in Smartform.
    Standard text contains 'terms and conditions' hence it's used for printing in second page.
    For printing standard text one window other than Main window has been created in second page.
    Now when I am taking print preview of smartform only two pages are visible and on second page complete standard text is not displayed. As standard text is of two pages then rest missing text should come on third page as a continuity.
    But missing standard text is not getting diplayed.
    Any suggestion what shall we do to print complete standard text.
    Regards,
    Amit
    Edited by: Amit  Singh on Nov 25, 2010 11:38 AM
    Edited by: Amit  Singh on Nov 25, 2010 11:39 AM
    Edited by: Amit  Singh on Nov 25, 2010 11:39 AM

    I tried to use the 2nd option provided by you but still this prolem is not resolved.
    Missing Standard text is not going in a new page.
    I tried to expand the window size and now entire text is coming in a single page. But by this way page window is not same as in a first page.
    Is there any otherway to print the rest missing text in next page of the smartform.
    Regards,
    Amit

  • About mismatch in print layout in direct print and  print preview and pdf!

    Hi ,
    I have created one smartforms,when I run the standard trasaction VF03 and select any output type  and then when I click on print preview button,and then when  I put  PDF!  in address bar  ,the print preview will convert in  PDF format,it will show output without bold   and comes only in normal fonts.
    Also, when I run transaction VF03 and direct click Print button, then  it shows print as per requirement , but it overwrites some part on the end of page where company address is priprinted on stationary,so how can i show print format same in both condition without overwriting?
    Thanks.

    HI friend,
    The one which is coming in the print (hard copy) is the correct one.
    Print preview may be different.
    So if the print is coming in overlapping format means check whether the windows are aligned properly. Because if you have given any data in main window and when it grows it over laps on another window.
    If that's is correct check the printer settings for it. Only these would cause the print to be distorted.
    Check this and revert back if you have any issues we will help you.
    Thanks,
    Sri Hari

  • Unable to print in 100 MM     36 MM format.

    Hi All,
    We are facing a print problem where we are unable to print in 100MM X 36MM Page Format(ZSTICKE which is created) This is of customized type, With LOCL output device the spool request is not getting generated. However we are able to see the print preview.
    while printing it gives a error "**Error while calling the smartform**"
    Now we tried to run a print with A4 (DINA4) size page format and it worked, we are able to see the print preview and also print.
    Could you please let us know what could be the issue as it works with A4 but not with customized page format(It however gives print preview even with customized page format
    Thanks in Advance.
    Vijay

    Hi Vijay,
    In SPAD Tcode u have to assign the page format to the printer and then only it will works. other wise it will show error.
    Regards,
    Sathis

  • No print preview in PSE13

    I have used previous versions; so I know the printing process.  But with the download of PSE 13, I have had several problems.  The latest is the print preview.  It is blank.  What can I do to get the print preview?

    Try resetting preferences via Edit>Preferences>General.
    Reset, then relaunch the program.

  • Download smartform as PDF, suppress Print/Preview dialog

    Hi Experts,
    Facing some issues in downloading PDF converted from Smartform.
    In the program I am trying directly download a smartform converted into PDF format and save it in local system.
    When ever I am trying to execute the program it shows up the Print/Preview dialog before showing the Save As dialog.
    I have passed control_parameters-getotf = 'X' to the smartform runtime FM, which ideally should have suppressed the Print/Preview dialog and return the otfdata.
    Here the entire code is...
    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    The program other wise works absolutly fine .
    Please advise.
    Thanks
    Jahan
    Edited by: Rob Burbank on Apr 8, 2010 11:10 AM

    Helloo Guyz...
    I am exactly trying the same, but the Print Dialog is still coming ...
    See here is my code ..
    cont_param-getotf = 'X'.
    cont_param-no_dialog = 'X'.
    cont_param-preview = 'X' .
      CALL FUNCTION fm_name
        EXPORTING
          control_parameters = cont_param
        IMPORTING
          job_output_info  = otfdata
        TABLES
          s_bukrs             = s_bukrs[]
          s_gjahr              = s_gjahr[]
          s_rebzg             = s_rebzg[]
          s_kunnr             = s_kunnr[]
        EXCEPTIONS
          formatting_error  = 1
          internal_error      = 2
          send_error          = 3
          user_canceled    = 4
          OTHERS              = 5.
    even after this ..during execution the the Print Dialog is coming..
    I have no idea what esle I am missing..
    Thanks

  • Smart form print preview in PDF format

    Hi ABAP Experts,
    I have 2 requirements
    1) I want to print preview of a smartform in pdf format
    2) I also want to attach a local pdf file to the smartform which is displaying in the pdf print preview format
    or to rephrase:
    I want a pdf attached to a smartform which i want to open in the pdf print preview format.
    Regards,
    Niloufer

    Use following function modules:
    Please see the below code to download a PDF file on to your computer.
    PERFORM F_CONVERT_OTF.
    FORM F_CONVERT_OTF .
    PERFORM F_CALL_SMARTFORM. " Call the smartform to get data in I_OTF_FINAL
    **appending the otf data into the final table & save the pdf file.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = C_PDF_U      "Value is 'PDF'
        IMPORTING
          BIN_FILESIZE          = L_BIN_FILESIZE         "L_BIN_FILESIZE TYPE I,
        TABLES
          OTF                   = I_OTF_FINAL
          LINES                 = I_PDF_TAB    "It is of type TLINE
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          ERR_BAD_OTF           = 4
          OTHERS                = 5.
    * Check if the file is already existing.
      CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'
        EXPORTING
          FNAME                = L_FILE1   " Path where file is saved
       IMPORTING
         EXIST                = L_RESULT
    *   ISDIR                =
    *   FILESIZE             =
       EXCEPTIONS
         FILEINFO_ERROR       = 1
         OTHERS               = 2
    PERFORM F_GUI_DOWNLOAD USING L_FILE.
    ENDFORM.
    FORM F_GUI_DOWNLOAD  USING P_FILE TYPE STRING.
    CONSTANTS: C_BIN(10)       TYPE C VALUE 'BIN'.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = P_FILE     "same as L_FILE
          FILETYPE                = C_BIN
          CONFIRM_OVERWRITE       = C_X   "value 'X'
        TABLES
          DATA_TAB                = I_PDF_TAB
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          OTHERS                  = 22.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    <removed by moderator>
    Edited by: vishalmurgai58 on Mar 6, 2012 1:43 PM
    Edited by: Thomas Zloch on Mar 6, 2012 - please do not ask for ...

Maybe you are looking for

  • CIF - Master Data Transfer from ERP to SCM(SNC)

    Hi, I am very new to SAP SCM. Can anyone please provide me documentation links , helpful material for the CIF customization in SNC for Master Data Transfer. e.g If I need to send a predefined value for Business Logical System from ERP to SAP SNC i.e

  • Unable to upload files via Wi-Fi.

    My phone C3-00 is running on latest update v08.71. I'm unable to upload files on wi-fi. When I start any service like Facebook on opera mini or any browser (I'm also unable to use Mail & Communities via wi-fi) and try to upload file (pic. of max. siz

  • CRM 7.0 Portal Integration

    Hello All, I need to integrate CRM 7.0 <-> Portal. Read this article - http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/206cd953-41cf-2b10-7dbc-8a4d36664de5?QuickLink=index&overridelayout=true and the pre-requisites section says tha

  • Levels in org plan

    hi i have seen some levels in org plan like SAG, COS, REQUISITION. may i know what it does and purpose. regards srmsri

  • Upgraded to FF 15.0 lost all my bookmarks, how can I restore them?

    running Vista and FF desktop