Smart Form output is not BOLD in quality server

Hi Gurus,
           In my Smartfrom I need to print few of the data in BOLD character format.
For this I'm able to to use custom style with custom Font as 'ZARIAL'.
I could work out this in my development sever perfectly, but when i transport the same form to Quality Server and check the output, I could not find any character printed in BOLD.
I could find same font 'ZARIAL' defined in Quality server, and even in my custom style, I could find same font as BOLD in preview. But, after execution of form using same style & Paragraph formats I could not find the BOLD in my Quality Server.
I'm not able to Analise, where my problem is..
Wait for your response.
Thank you.

Hi Usha,
       I have taken print , PDF output, print preview & direct execution of FM in quality server, Its not getting in BOLD.But in style, I could find preview in BOLD for concern font.
I could achieve all these perfectly in development server.
My transportation of request is also perfect.

Similar Messages

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

  • Posting Document Not Created in Quality Server

    Dear All,
                        My HR-FI Posting document is not created in quality server.
    Whem am running the PC_M99_CIPE  transaction and  run simulation run after that it giving me the message no document is created .
    And also am not able to see the log in quality server.
    All the things is working in the development server but not in quality server.
    I checked the obye,and obyg all things is been fine .
    Kindly help to sort the problem.
    Thanks
    Sandeep

    Dear Sandeep,
    First make the control record status Exit payroll PA03.
    Goto "Posting to Acc : Create posting run" screen.
    Fill period, payroll area, personnel number fields as requested.
    type of doc created write P - live posting run.
    Select output log & Run.
    Click "Doc overview" button.Select the document and click "Release document" button - F9.
    Say "Yes".
    Go back.
    Press "Posting tun overview" button.
    Select the last posting.
    Click post documents button.
    Say "Immediately".
    This procedure should work.
    If not, you may lack some authorization objects.
    Go and check whether the doc is posted via transaction FB03.
    All the best,
    Dilek
    Edited by: Dilek Ersoz on Nov 9, 2009 1:34 PM

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

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

  • Smart form exists but not recognised by application

    Hi all,
    We are testing SAP ERP 6.0 and migrated a smart form into our client. The form can be displayed in SMARTFORMS and also shows as "active". I also generated the form. However, when running the dunning program, I get an error message like:
    "Form XXXXX language EN is not active and has no errors"
    The long text says that the form may not exist. In my legacy client it works fine.
    Does anyone know what may be missing to ensure that the smartform is recognised?
    Thanks
    Rene

    Hi Rene
    I am facing the same problem
    I have implemented event 1720 and function but F150D does not call this event and does not recognise smartform
    this is what comes up
    Form ZFSCD_DUNNING_TG language EN is not available in client 220 Message no. TD131 Diagnosis You want to display a form which does not exist. System Response If the form does not exist in the specified language in the current client, the form which was used for printing is displayed by accessing another client. The search is thus graded as follows: - Current client, form in specified language, status irrelevant - Current client, form in original language, status active - Client '000', form in specified language, status active - Client '000', form in original language, status active Procedure You can obtain a list of the form available in the current client using the function 'Find' in the initial screen of the form maintenance. Here you can also output a list of the forms in your current client or another client, using the menu option 'Utilities -> Client comparison'. Did this but still not working After executing F150 it is not printing dunning letter as it showing Forms for MAHNR: 'TG', RBUKM: '2200', KOART: 'D' do not exist (T047E) Thanks
    looks like it recognises SAPscript as default and does not change its form to smartfor
    please help how to make it happen
    thanks in advance

  • Driver program for GI(goods issue) smart form output type WA01

    Hi,
    i have designed one smart form for GI o/p type WA01 for Tcode MIGO ,but could get any standard driver program becoz in our server the standard program is for the script and not smart form.can anybody help me in finding the standard driver program for trigerring the smart form.

    Hi,
    Try prog SAPM07DR.
    Paras

  • 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

  • SMART Form, Right Side not getting Printed, "Print Preivew Fine"

    Hi
    We are facing an issue while Printing a Smart Form,
    Printer Device Type : HPLJ8000
    Document Type : Customized Smart Form
    Print Prieview : Fine
    Print Format : DINA4
    Initially the Printout was fine, however the Left side of the Form is not having enough margin, as a reason the ABAPer have moved 3 mm to the right , now we have problem on the Right side, however the ABAPer says its not form issue as the print preview is fine, I am looking out to know the Possible changes I can do from Basis End,
    We have tried changing the SAP scipt and additoinal Print parameters for this print changed " Horiziontal and Vertical Shift " and we restarted the printer ever we change , and this dont make the Form Better,
    Any suggestions are appriceiated
    Regards

    yes .....I solved....got the answer

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

  • The routine is not active in Quality server :Urgent

    Hi All,
    I have assign the routine in the pricing procedure and it works fine in developement server. But it is not fetching the proper value on the quality server .But the routine shows active on the condition type . Is there anything to do more . The basis people also check that but there is no problem in transport .
    Need help ugently.
    Regards,
    Abhijit Dutta.
    SAP -SD .
    Call:9920863887.

    Hi Abhijit,
    The new routine must not have been activated properly while transferring to quality system. Execute program RV80HGEN to regenerate all the VOFM routines. The output of this program denotes that all routines were activated
    Regards
    Nadarajah Pratheb

  • Changes are not reflecting in Quality server

    Dear All,
    We have recently installed the Portal 7.4 servers.
    Currently we are having two servers Development and Quality.We have Configured NWDI using CMS and created tracks(Defined run-time systems as Development and Consolidation)  we are able to checkin the activities at NWDS , when we are selecting the component in the consolidation and on  click of  import we are getting the message as import finished, but the changes are not reflecting at the Quality server. i.e in earlier 7.01 version when we imported , the ear was deployed automatically in quality but it is not getting deployed in the new version 7.4
    Regards,
    Ramana.

    Dear Ervin/Jun Wu,
    Thanks for the Responce.
    As per the given link the track is configured  with out any issues (When we are clicking on Deployment in the Transport studio it is opening new tab like below and we are not having any errors when we click on Start deployment nothing is happening)
    http://hostname:50000/webdynpro/dispatcher/sap.com/tc~SL~CMS~WebUI/Deployer?BS=EPD_PRTADEV_C
    Please check the below log regarding deployment when we do the import
    SDM-deployment-notification  Log file.
    20141028125231 Info :Starting Step SDM-deployment-notification at 2014-10-28 12:52:31.0994 +5:00
    20141028125231 Info :Deployment is performed asynchronously.
    20141028125231 Info :Following DCs are marked for deployment (buildspace = EPD_PRTADEV_C):
    20141028125231 Info :
    20141028125231 Info :RequestId: 152
    20141028125231 Info :==> no resulting DCs for deployment
    20141028125231 Info :Follow-up requests:
    20141028125231 Info :
    20141028125231 Info :
    20141028125231 Info :Step SDM-deployment-notification ended with result 'success' at 2014-10-28 12:52:31.0995 +5:00
    Regards,
    Ramana.

  • Signature is not showing in Quality Server but appearing in Dev. Server

    Hi Experts,
    I have created a Sap-script in which I have given Signature using SE78, creating the file in .BMP format and then using Inclulde command in SAP_SCRIPT editor.
    Later we have send that Script to the Quality Server where that Signature is not appearing. Could please anyone tell me the coz and soluation of it.
    Early responses are most welcome.
    Regards,
    -=Maddu=-

    Thanks Amit for neat and clean reply for this issue. Yes the problem was that this logo was not available in the  Quality system and later I used SE78 and given the same name which was present in the Layout Include command.
    Do I need to repeat the same step for Live Server also ?
    Please suggest.
    Many Thanks.

Maybe you are looking for

  • Running Photoshop Elements (1) on Windows 8

    I'm sure folks by now know that older Photoshop Elements doesn't install on Windows 8.  (I think it's version 1, as no version is given on the package, and I bought it a long time ago from the Adobe store via a friend at Adobe who is not  longer arou

  • ACS 5.5 and Windows 2012 AD support

    Hi All, previously I had two AD domains based on 2008 and had machines in one domain and users in another domain and the condition statement "Was machine authenticated=True" worked fine when doing EAP-TLS machine then user authentication. I have now

  • Photo Booth with Firewire Camera on G4

    I have a 1.5GHz G4 PowerBook with 2GB of RAM - attached a Sharp Firewire Video camera - which works fine with iChat - but with Photo Booth - the app at one point showed 121 CPU on a single CPU system. and when I click on Effects - it goes into App no

  • What is the maximum number of rows in version 3.5.3

    I am using Numbers v3.5.3 in Yosemite. I need to copy/paste from a .txt file 1,085,300 lines of information. Numbers will only accept !65,000 lines. Is there a limit by default?  Can that be extended? Thank you.

  • Updating shared numbers/pages files

    Hi, my colleague and I are trying to wrap our heads around iCloud sharing between iOS and OS X devices. My colleague will write the weekly schedule in numbers for iOS and then share it with me in iCloud. But I don't want to edit it in the web app, I