Smart form output error: PO item text overlaping when we have '-' with char

Hi experts,
when we are usin special character '-' between the two words in PO item text, it is looking fine in Print preview.
But in back end a mail is sent to PR creator as well as conserned user in .pdf format, in that the text os overlaped.
for example: 1.PO item text is like model: EJ110Au2212EMS5Gu2212724K/KU21
2.in the print preview it is ok model: EJ110Au2212EMS5Gu2212724K/KU21
3in the mail in pdf format it is looks like model: EJ110A EMS5G 724K/KU21
Not exactly like 3rd line, but E is inthe box(overlaped) and 7 is inthe box(overlaped) .
help me in that
Thanks and regards
Aumprakash

Hi,
In debugging try deleting the special character '-' from the internal table value and then again type the "-" value there and chech the PDF generated in the background.
Regards,
harish

Similar Messages

  • Smart form Output error

    Hi,
    I am using a standard smart form to get the sales invoice but when I execute transaction  VA01 and some order number and see issue output to print preview then this error is coming " system message 047 from workarea SSFCOMPOSER does not exist."
    Where can be the possible error in smart form.
    Thanks

    hi
    check here .
    may be useful to u [Link|Sytem message 047 from work area SSFCOMPOSER does not exist]

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • Sandard Smart Form output into PDF format.

    Hi to all,
    Any one please guide me, how  to convert  sandard Smart Form output into PDF format.
    Regards,
    Thanesh

    hi thanesh,
    the below code may help you.
    data: FM_NAME TYPE RS38L_FNAM.
    DATA:       W_BIN_FILESIZE TYPE I,
          T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
          T_PDF_TAB TYPE TLINE OCCURS 0 WITH HEADER LINE,
          W_FILESIZE TYPE I,
          WA_CTRLOP TYPE SSFCTRLOP,
          WA_OUTOPT TYPE SSFCOMPOP,
          T_OTFDATA TYPE SSFCRESCL.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = <ur form name>
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = FM_NAME
    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.
    WA_CTRLOP-GETOTF = 'X'.
    WA_CTRLOP-NO_DIALOG = 'X'.
    WA_OUTOPT-TDNOPREV = 'X'.
    call function <function module generated for ur form>
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = WA_CTRLOP
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = WA_OUTOPT
       USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = T_OTFDATA
      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.
    T_OTF[] = T_OTFDATA-OTFDATA[].
    call function 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = 'PDF'
       MAX_LINEWIDTH               = 132
      ARCHIVE_INDEX               = ' '
      COPYNUMBER                  = 0
    IMPORTING
       BIN_FILESIZE                = W_BIN_FILESIZE
      BIN_FILE                    =
      tables
       OTF                         = T_OTF
        LINES                       = T_PDF_TAB
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 4
       OTHERS                      = 5
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'WS_DOWNLOAD'
    EXPORTING
       BIN_FILESIZE                  = W_BIN_FILESIZE
      CODEPAGE                      = ' '
       FILENAME                      = 'D:\TEST11.PDF'
       FILETYPE                      = 'BIN'
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
       FILELENGTH                    = W_FILESIZE
      tables
        data_tab                      = T_PDF_TAB
      FIELDNAMES                    =
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_WRITE_ERROR              = 2
       INVALID_FILESIZE              = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    if sy-subrc = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    WRITE: / 'SUCCESSFULLY CONVERTED'.
    endif.

  • Word Format of Smart Forms Output

    Hi,
    We want the Smart Form output in DOC format. If we are using the function module 'CONVERT_OTF', the output is perfect when downloaded as PDF with all background pictures and formats but when we are downloading in DOC format all the formatting and background pictures are absent.But we need all formatting options like boxes, fonts and background pictures in the downloaded DOC format.
    If any of you have worked on the same please reply
    Thanks in advance.

    As far as I know there is no way to convert the smartform into word, without loosing the format and pictures.
    But you may convert the pdf output to word by a third party solution. Use SolidConverter. Version 1 is free and it is the best converter I have seen.
    If it helps please give points.

  • Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/char.bin Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/dicrc Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/matrix.bin Open error 5: "Input/outp

    Please can any one help.
    All sound has disappeared from my imac, it just 2 years old, I've run disk warrior and disk repair/verify and this is what come up.
    ARe there any solutions?
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/char.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/dicrc
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/unk.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/unk.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/char.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/dicrc
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/unk.dic
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeDirectory
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeRequirements
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeResources
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeSignature
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/_CodeSignature/CodeRequirem ents
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/PlugIns/AppleSM56KU SBModemFamily.kext/Contents/_CodeSignature/CodeRequirements
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/Resources/English.l proj
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/Resources/English.l proj/InfoPlist.strings
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/_CodeSignature/Code Requirements

    Whew, generally those errors would indicate a serious Hard Drive problem, but possibly RAM or Logic Board... any other drives connected?
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029

  • Error message an error occurred while signing in " when I worked with Create PDF and at the signed

    Error message "an error occurred while signing in " when I worked with Create PDF and at the signed in status. Please help so that I can continu my work.

    Hi Stacy,
    Thank you for your attention.
    I have been working with Create PFD under normal procedures including
    sign-in and several documents had been finished. However, when continued
    creating another document the computer took a long time to pprocess and
    finally a mesage appeared: "An error occurred while signing in" and stopped
    there. I clicked the OK button and start creating again and the same
    message appeared once more. I tried to log off and log in again in no
    avail. So I went to the help site and called for help.
    Later, I decided to reboot the computer and tried once more. This time it
    worked and I continued creating. Thanks.
    laozhao39

  • Error in opening the PDF file created from the smart form output.

    Hi All,
    i have a simple smart form which takes 3 values like customer no, name and no of times customer called and gives an out like
    Customer 0001000000 with name Ravi called 5 times today.
    I have to send this output to mail as an attachment.
    for this i am coding as below.
    ******Call the SSF Function module
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = Form name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = lv_fmname
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    lv_partner_number = '0001000000'.
    lv_name_org1 = 'Ravi'.
    lv_z_no_calls_day = '5'.
    lw_ctrlop-getotf = 'X'.
    lw_ctrlop-no_dialog = 'X'.
    lw_compop-tdnoprev = 'X'.
    lw_compop-tddest = 'LP01'.
    *******Call the Form Function module and get the OTF of form output
    CALL FUNCTION lv_fmname
    EXPORTING
    name_org1 = lv_name_org1
    partner_number = lv_partner_number
    z_no_calls_day = lv_z_no_calls_day
    control_parameters = lw_ctrlop
    output_options = lw_compop
    user_settings = ' '
    IMPORTING
    job_output_info = w_return
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    i_otf] = w_return-otfdata[.
    *********Now here if i look in to the OTF data i got in debug it has the data i aniticipated along with some other data.
    the output is in the format
    TDPRINTCOM(2) TDPRINTPAR(70)
    ST XXXX.. customer 0001000000 with
    name.....
    i have my data in the above format spread in three lines of the output otf table where XXXX... is some number.
    ***********To convert to PDF Format
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = lv_len_in
    BIN_FILE =
    TABLES
    otf = i_otf
    lines = i_tline
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5
    *********For testing purpose i created a file on the desktop with the the data in i_tline. it created PDF file but when i tried to open it it's giving an error.
    i_objtxt = 'test with pdf-Attachment!'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    READ TABLE i_objtxt INDEX v_lines_txt.
    wa_doc_chng-obj_name = 'Smart Form'.
    wa_doc_chng-obj_descr = 'Frequent Caller Alert_Day'.
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
    *********Creating the Entry for the document
    CLEAR i_objpack-transf_bin.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_txt.
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    i_objbin] = i_tline[.
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    READ TABLE i_objbin INDEX v_lines_bin.
    i_objhead = 'Frequentcaller list_Day.pdf'.
    APPEND i_objhead.
    ************Creating the entry for the attachment.
    CLEAR : i_objpack.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'ATTACHMENT'.
    i_objpack-obj_descr = 'FCA'.
    i_objpack-doc_size = v_lines_bin * 255 .
    APPEND i_objpack.
    CLEAR i_reclist.
    i_reclist-receiver = 'mail id'.
    i_reclist-rec_type = 'U'.
    APPEND i_reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = wa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = i_objpack
    object_header = i_objhead
    contents_bin = i_objbin
    contents_txt = i_objtxt
    receivers = i_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    This is all i am doing.
    It is sending a mail with the attachment but we are not able to open the attachment. it's giving an error like file is damaged and couldn't be repaired.
    I serched in the forum but i couldn't get the answer.
    I suspect there is a problem in getting the OTF data..
    Please help me in resolving this issue....
    Thanks in advance.
    RK

    Check the sample , and see where you made the mistake.
    REPORT ZPDF_MAIl.
    DATA:
      w_fm_name      TYPE rs38l_fnam,
      w_bin_filesize TYPE i,
      w_filesize     TYPE i,
      w_lines_txt    TYPE i,
      w_lines_bin    TYPE i.
    DATA:
      wa_ctrlop   TYPE ssfctrlop,
      wa_outopt   TYPE ssfcompop,
      wa_objhead  TYPE soli_tab,
      wa_buffer   TYPE string,
      wa_doc_chng TYPE sodocchgi1.
    DATA:
      BEGIN OF t_mail_ids OCCURS 0,
        mailid TYPE ad_smtpadr,
      END OF t_mail_ids,
      t_otfdata TYPE ssfcrescl,
      t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
      t_pdf_tab TYPE tline OCCURS 0 WITH HEADER LINE,
      t_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
      t_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      t_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      t_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      t_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = 'Z195_TEST'
      IMPORTING
        fm_name            = w_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    IF sy-subrc EQ 0.
    ENDIF.                               " IF sy-subrc EQ 0.
    wa_ctrlop-getotf = 'X'.
    wa_ctrlop-no_dialog = 'X'.
    wa_outopt-tdnoprev = 'X'.
    CALL FUNCTION w_fm_name
      EXPORTING
        control_parameters = wa_ctrlop
        output_options     = wa_outopt
        user_settings      = 'X'
      IMPORTING
        job_output_info    = t_otfdata
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.
    IF sy-subrc EQ 0.
    ENDIF.                               " IF sy-subrc EQ 0.
    t_otf[] = t_otfdata-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
        max_linewidth         = 132
      IMPORTING
        bin_filesize          = w_bin_filesize
      TABLES
        otf                   = t_otf
        lines                 = t_pdf_tab
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        err_bad_otf           = 4
        OTHERS                = 5.
    IF sy-subrc EQ 0.
    ENDIF.                               " IF sy-subrc EQ 0.
    LOOP AT t_pdf_tab.
      TRANSLATE t_pdf_tab USING '~'.
      CONCATENATE wa_buffer t_pdf_tab INTO wa_buffer.
    ENDLOOP.
    TRANSLATE wa_buffer USING '~'.
    DO.
      t_record = wa_buffer.
      APPEND t_record.
      SHIFT wa_buffer LEFT BY 255 PLACES.
      IF wa_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    t_objtxt = ' To Change the COR, Use the Transaction ZCOR_CHANGE'.
    APPEND t_objtxt.
    t_objtxt = ' Check the Attached PDF file for COR'.
    APPEND t_objtxt.
    DESCRIBE TABLE t_objtxt LINES w_lines_txt.
    READ TABLE t_objtxt INDEX w_lines_txt.
    READ TABLE t_objtxt INDEX w_lines_txt.
    wa_doc_chng-obj_name = 'COR Display'.
    wa_doc_chng-expiry_dat = sy-datum + 10.
    CONCATENATE 'COR' "w_cornr
                '-' "w_stat_descr w_action_desc
           INTO wa_doc_chng-obj_descr SEPARATED BY space.
    wa_doc_chng-sensitivty = 'F'.
    wa_doc_chng-doc_size =  w_lines_txt  * 255.
    CLEAR t_objpack-transf_bin.
    t_objpack-head_start = 1.
    t_objpack-head_num = 0.
    t_objpack-body_start = 1.
    t_objpack-body_num = w_lines_txt.
    t_objpack-doc_type = 'RAW'.
    APPEND t_objpack.
    t_objpack-transf_bin = 'X'.
    t_objpack-head_start = 1.
    t_objpack-head_start = 1.
    t_objpack-head_num = 0.
    t_objpack-body_start = 1.
    DESCRIBE TABLE t_objbin LINES w_lines_bin.
    READ TABLE t_objbin INDEX w_lines_bin.
    t_objpack-doc_size = w_lines_bin * 255 .
    t_objpack-body_num = w_lines_bin.
    t_objpack-doc_type = 'PDF'.
    t_objpack-obj_name = 'COR'.
    t_objpack-obj_descr = 'COR Test'.
    * concatenate 'COR' w_cornr into t_objpack-obj_descr
    *                           separated by space.
    APPEND t_objpack.
    *LOOP AT t_mail_ids.
      CLEAR t_reclist.
      t_reclist-receiver = 'INTENATEMAIL'.
      t_reclist-rec_type = 'U'.
      APPEND t_reclist.
    *ENDLOOP.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = wa_doc_chng
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = t_objpack
        object_header              = wa_objhead
        contents_bin               = t_objbin
        contents_txt               = t_objtxt
        receivers                  = t_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 EQ 0.
    ENDIF.

  • SAPscript - output of delivery item text field

    Hello,
    I would like to show an item text field of a delivery (VL02n) on one of the output script forms.
    I've used the function read_text in my print program for the output type:
    DATA: BEGIN OF TEXT_CARTONQUAN OCCURS 20.    
          INCLUDE STRUCTURE TLINE.
    DATA: END OF TEXT_CARTONQUAN.
    CALL FUNCTION 'READ_TEXT'
                 EXPORTING
                   ID        = 'Z005'
                   LANGUAGE  = SY-LANGU
                   NAME      = VBDPL-TDNAME
                   OBJECT    = 'VBBP'
                IMPORTING
                   HEADER    = THEAD
                TABLES
                   LINES     = TEXT_CARTONQUAN
                EXCEPTIONS
                   NOT_FOUND = 1.
            READ TABLE TEXT_CARTONQUAN INDEX 1.
            MOVE TEXT_CARTONQUAN-TDLINE TO VBDPL-USR01_VBLB.
    Now I put this code into my sapscript:
    IL    &VBDPL-USR01_VBLB&
    For some reasons, it does not come up on the form, but I know it should have a value.
    Am I missing something?
    Thanks,
    Anne
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 7, 2009 11:25 AM

    Hello,
    thanks for the answers!
    @Ramiro Escamilla  
    I've tried that already, but for some reasons, the break point doesn't work, it is not stopping during the print out. I've tested if it is using that print program and uncommented the entry subroutine and I got an error message then, so it's the correct print program. Any suggestions why break point is not working?
    @Pawan Kesari  
    I did that and this is working. But the problem is, I need this value within an IF statement, because I only want to give this and some text out, if  INCLUDE &VBDPL-TDNAME& OBJECT 'VBBP' ID 'Z005' has a value. Unfortunately I cannot use the Include statement within an IF statement.
    Thanks
    Anne

  • Seding pdf attach ment of smart form output

    Hi All,
         I am currently having a requirement, where we are having a output of a program as Smart form. I want to send this as pdf attachment to the mail recepients .Please give some inputs for this requirement.
    Regards,
    Brijesh Patel

    hi,
    chk this sample code.
    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,
    Work Area declarations
          wa_objhead TYPE soli_tab,
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,
          wa_doc_chng typE sodocchgi1,
          w_data TYPE sodocchgi1,
          wa_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,
          v_len_out LIKE sood-objlen,
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
         exporting
              formname           = 'ZZZ_TEST1'
         importing
              fm_name            = v_form_name
         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.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
         EXPORTING
              control_parameters = w_ctrlop
              output_options     = w_compop
              user_settings      = 'X'
         IMPORTING
              job_output_info    = w_return
         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.
    i_otf[] = w_return-otfdata[].
    call function 'CONVERT_OTF'
           EXPORTING
                format                = 'PDF'
                max_linewidth         = 132
           IMPORTING
                bin_filesize          = v_len_in
           TABLES
                otf                   = i_otf
                lines                 = i_tline
           EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                others                = 4.
      Fehlerhandling
      if sy-subrc <> 0.
      endif.
      loop at i_tline.
        translate i_tline using '~'.
        concatenate wa_buffer i_tline into wa_buffer.
      endloop.
      translate wa_buffer using '~'.
      do.
        i_record = wa_buffer.
        append i_record.
        shift wa_buffer left by 255 places.
        if wa_buffer is initial.
          exit.
        endif.
      enddo.
    Attachment
      refresh:
        i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
      clear wa_objhead.
      i_objbin[] = i_record[].
    Create Message Body
    Title and Description
      i_objtxt = 'test with pdf-Attachment!'.
      append i_objtxt.
      describe table i_objtxt lines v_lines_txt.
      read table i_objtxt index v_lines_txt.
      wa_doc_chng-obj_name = 'smartform'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr = 'smartform'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
      clear i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_txt.
      i_objpack-doc_type = 'RAW'.
      append i_objpack.
    Attachment
    (pdf-Attachment)
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
    Länge des Attachment ermitteln
      describe table i_objbin lines v_lines_bin.
      read table i_objbin index v_lines_bin.
      i_objpack-doc_size =  v_lines_bin * 255 .
      i_objpack-body_num = v_lines_bin.
      i_objpack-doc_type = 'PDF'.
      i_objpack-obj_name = 'smart'.
      i_objpack-obj_descr = 'test'.
      append i_objpack.
      clear i_reclist.
      i_reclist-receiver = '[email protected]'.
      i_reclist-rec_type = 'U'.
      append i_reclist.
        call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  document_data              = wa_doc_chng
                  put_in_outbox              = 'X'
             TABLES
                  packing_list               = i_objpack
                  object_header              = wa_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.
    rgds
    anver
    pls mark all hlpful answers

  • POR Swiss form output error

    Message while printing POR swiss payoment form
    Output cannot be redirected to this printer (see long text)
    Message no. TD366
    Diagnosis
    You tried to output a SAPscript spool request to an output device to which another device type is assigned than that for which the spool request was originally created.
    System Response
    The system does not allow the output to be redirected to this output device since the printout would be partially or completely incorrect due to the different device type.
    The SAPscript spool data already contains printer-specific information (e.g names of print controls for font selection), which would cause incorrect fonts (too large, too small, other font type) in the printout if it was redirected to another device type. For this reason, you are not allowed to redirect output to a device type with a different printer driver.
    If a spool request is redirected to a PostScript printer (device type POSTSCPT), PostScript errors (syntax errors) can occur leading to a termination of printing if certain print controls are missing.
    Procedure
    Create a new spool request from the application used and assign the output device (printer) you require there.
    any help would be appriciated

    Hi,
    One idea. Check the two devices in tcode SPAD, first the default as you define in output or in the correspondence (is is a FI correspondence?) and second, the device that you try to print.
    I hope this helps you
    Regards,
    Eduardo

  • Smart Forms: u0080(EUR)-symbol in text  - #-symbol in Smart Forms

    Hello,
    If a user writes the €(EUR)-symbol in a text (e.g. positions-text in an order, VA01) the Smart Form shows a #-symbol.
    Does anyone know the reason for this behavior and how to correct it?
    Best regards,
    Stefan

    Hi,
    I tryed it with <156> and it worked. The problem is that you have to write it directly with the line-editor, which is not very confortable for the users.
    If you write it diretly in the text-field the <156> will be masked to
    <(><<)>156>
    Thank you,
    Stefan

  • Sap smart form printing error

    hi!
    I am trying to print one smart from through print program.
    the name of smart form is ztestform.
    and the name of the function module is /1BCDWB/SF00000099
    I am writing following print program.
    REPORT  ZSMARTFORM.
    data fname(30).
    CALL FUNCTION '/1BCDWB/SF00000099'
    EXPORTING
    formname = 'ztestform'
    IMPORTING
    fm_name = fname.
    call function fname.
    and it returns with the error " function parameter form name is unknown"
    so what should i do?
    points will be awarded.
    Cheers
    Troy.

    Hi Troy,
               Use FM  SSF_FUNCTION_MODULE_NAME.
    pass smartform name . it will give u SF function name. u call that fm.
    Please refer this code :
    data  : p_form type TDSFNAME.
           CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = P_FORM
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         FM_NAME                  = P_FUNCTION
       EXCEPTIONS
         NO_FORM                  = 1
         NO_FUNCTION_MODULE       = 2
         OTHERS                   = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION P_FUNCTION
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          D_VBRK                     = IT_VBRK
          D_VBRP                     = IT_VBRP
          D_LIKP                     = IT_LIKP
       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.
    Reward points if helpful.
    Regards,
    Hemant

  • While creating smart form parameters error.

    hi.
    i am  Developing a smart form ..
    based on the given parameter the values are coming..(Sorry i am not able to explain the whole scenario bcz i am new to abap)
    plz have a look on below image.
    Se11 and  error..
    for creating the parameter options i open the se11  (se11 -image) but i am getting the Error at the time  of  Check the program..
    May i know what is the reason...

    hi. thanks for your reply..
    yes i am using vm ware i was installed in external hard disc,,
    from my system i am connecting to the external  hard disc..
    Coming to first screen shot there is no error its just a warning.
    Yes, i also think same but i has to check it...
    i will update u once i check it.
    plz give me some time.. i will check it...

  • Multiple smart form outputs

    Hi all,
    i want to print multiple purchase orders in smart form
    i have two windows in smart form layout
    header window and main window
    in header i need to print few header details
    and in main window i need to display correspoinding line items
    I need every po to be start in new paper or new form
    In driver se 38 program
    I_header - contains all header info
    i_lineitems - contains all item info ofPO'S
    iam confused whether i have to call SSF_FUNCTION_MODULE_NAME
    between loop of i_header .
    like this
    loop at i_header.
    PERFORM SMARTFORM_FM.
    endloop.
    if this right how do you want me to pass the info to smart form
    in form interface i would declare a table similar to item
    and header info right i need only one row right?
    FORM SMARTFORM_FM.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZTEST'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    importing
       fm_name                  = fm_name
    exceptions
       no_form                  = 1
       no_function_module       = 2
       others                   = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    CALL FUNCTION FM_NAME
    ENDFORM.
    Thanks

    Hi,
    Yes you will have to call smartform function module inside the loop.
    some what like this.
    loop at header_itab in workarea say HEAD.
    refresh and clear itab_export.
          loop at items_itab
              append these lines to itab_export which you will pass to smartform
          end  items_itab
    now call smrtform function module
         and pass head and table itab_export which you populated above
         inside item loop.
    endloop.
    Hope this makes sense. let me know if need more details.
    Enjoy SAP.
    Pankaj Singh.

Maybe you are looking for