Smartforms as email body looses format

Hi experts,
I´m using Badi BBP_OUTPUT_CHANGE_SF to change standard Smartforms, and when I use parameter CV_SMARTFORM_MAIL to send my own form, I see the result on tr. SCOT without any of the Smartform font styles, and format; it´s only plain text there!
Can anybody help me?
Thanks a lot!
Federico Alvarez

Dear Pradeep,
I really apreciate your help, thank you very much.
However, none of this Notes where helpful since we already have implemented Support Package 13, which includes all of them (Notes have been available with SP 12 and previous).
Regarding to the thread provided, I´m doing exactly that: just changing Smartform_mail parameter inside de Badi with my own form, and I get the Smartform data inside the mail body, but without any format or style: it´s like the whole Smartform were converted into plain text.
Any idea? Am I not supposed to get the Samrtform with font formats and borders, etc, inside de mail body?
The attached Smartform (which the system automatically converts into PDF) looks good. But the other one, as mail body, really sucks as plain text...
Kind regards,
Federico.

Similar Messages

  • Send Smartform as Email body not PDF attachment

    Hello Experts,
    I have a requirement where I need to send Smartform as Email body and NOT as PDF attachment.
    I have spool ID generated for the smartform, how can I send this spool in Email body rather than as an attachment.

    Hi K C
    Try this.. Get the OTF data from the SMARTFORM, use the OTF data and pass this to FM'CONVERT_OTF', and use the format as PDF.
    Then use the resultant converted PDF data as attachment while calling the  'SO_NEW_DOCUMENT_ATT_SEND_API1' FM.
    let us know if this works.
    Thanks
    Rajesh Chowdary

  • Email Smartforms with Email Body

    Hello SAP Community,
    Sorry if my question has been asked before, but I did not find any answeres yet.
    I am using BO SOFMFOL and these FM to send my smartforms to external email:
    - CREATE_RECIPIENT_OBJ_PPF
    - CREATE_SENDER_OBJECT_PPF
    - SO_USER_AUTOMATIC_INSERT
    This is working fine.  My question is: How do you add an Email  Body?  I am on ECC 6.0.
    Appreciate any inputs on this issue.
    Many thanks,
    Kim

    Hi Kim,
    I had a requirement to convert the out put into PDF format and send an email using the function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    I am providing my coding, hope it helps: 
    form SEND_EMAIL .
    DATA:   t_mailpack   TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_mailhead   TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailbin    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailtxt    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailrec    TYPE somlreci1  OCCURS 0 WITH HEADER LINE.
      DATA: wa_maildata    TYPE sodocchgi1,
            l_filename(50) TYPE c,
            l_fldname(30)  TYPE c,
            l_fldval(100)  TYPE c,
            l_lines        TYPE i,
            l_text         TYPE text128 .
      DATA: w_email_subrc  TYPE i.
      DATA: w_ship like vbfa-vbeln.
      CLEAR: wa_maildata,
             t_mailtxt,
             t_mailbin,
             t_mailpack,
             t_mailhead,
             t_mailrec.
      REFRESH: t_mailtxt,
               t_mailbin,
               t_mailpack,
               t_mailhead,
               t_mailrec.
    *-- Fill output file
    *- Fill header
      CLEAR: t_mailbin.
    t_mailbin[] = pdf_tab[].
      t_mailbin[] = it_att[].     "Uthaman
    *This line is added to get the shipment no in Subject Line
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    w_ship = vbfa-vbeln.
    shift w_ship left deleting leading '0'.
    *-- File name
    if nast-kschl EQ 'ZFPL'.
      CLEAR l_filename.
      CONCATENATE 'Packing List -'
                  sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF' INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Packing List'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    if nast-kschl EQ 'ZFBA'.
      CLEAR l_filename.
      CONCATENATE 'Booking Advice -'
                  sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF'
                  INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Booking Advice'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    *-- Prepare Packing List
    *-- Write Packing List (Main Subject)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE t_mailtxt LINES l_lines.
    READ TABLE t_mailtxt INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
    CLEAR t_mailpack-transf_bin.
      t_mailpack-transf_bin = ' '.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 0.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'RAW'.
      APPEND t_mailpack.
      t_mailhead = l_filename.
      APPEND t_mailhead.
    *-- Write Packing List (Attachment)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE pdf_tab[] LINES l_lines.
    READ TABLE pdf_tab INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
      t_mailpack-transf_bin = 'X'.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 1.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'PDF'.
      t_mailpack-obj_name = l_filename.
      t_mailpack-obj_descr = l_filename.
      t_mailpack-obj_langu = 'E'.
      APPEND t_mailpack.
    *-- Set recipients
    tables :  ztotcemail.
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    CLEAR vttk.
    SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
    SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
                                      AND lifnr = vttk-tdlnr.
    IF SY-SUBRC EQ 0.
      t_mailrec-receiver = ztotcemail-smtp_addr. .
      t_mailrec-rec_type  = 'U'.
      APPEND t_mailrec.
    ENDIF.
    **-- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_maildata
          put_in_outbox              = 'X'
         commit_work                = 'X'  " N-16
        TABLES
          packing_list               = t_mailpack
          object_header              = t_mailhead
          contents_bin               = t_mailbin[]
          contents_txt               = t_mailtxt[]
          receivers                  = t_mailrec
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      w_email_subrc = sy-subrc.
      IF sy-subrc EQ 0.
        MESSAGE s000(zotc) WITH 'Email output sent successfully'.
      ELSE.
        MESSAGE s000(zotc) WITH 'Can not send email output'.
      ENDIF.
    endform.                    " SEND_EMAIL
    Regards,
    Kittu

  • Send SmartForm as Email Body

    Hi All!
    I need to send a SmarForm by email as an email body.
    The SmartForm is a simple plain text form.
    Does someone know how to do it?
    Regards,
    Alejandro.

    hi,
    try this link u will have two codes.
    Email Body
    even if u dont understand check this code.
    Here is the code to send the Smartform to mail as PDF attachment.
    REPORT ZTEST_PDF_MAIL.
    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 = 'ZTEST'
    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.
    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
    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.
    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 = '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 = 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.
    IF SY-SUBRC 0.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    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.
    reward me ig helpful.

  • Email body text formating

    Hi ALL,
    I need to display the following data in the email body with Material records and DIR records
    Line 1 (Header Line):
    "Material Master Records "
    Line 2:
    [ space ]
    Line 3 (New Record):
    Material Number              Material Desc.          MatGrp                 Basic Material                UOM                  
    Line 1 (Header Line):
    "Document Info. Records "
    Line 2:
    [ space ]
    Line 3 (New Record):
    DocType                   Document                      Part                               Version                                     Doc.Desc.                   
    I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the mail and populating the contents_txt internal table with Material and DIR records using OFFSETS.
    I am getting alignment problems and space is getting trucated between the fields.
    Can somebody tell me how to do a proper formating to the email body
    Thanks
    Bhasker

    I hope every thing in the mail is in Charater format , every field and length .
    the only thing for these sort of option is to have a fixed distance based on max and min length the text can occupy .
    Line 1 (Header Line):
    "Material Master Records "
    Line 2:
    [ space ]
    Line 3 (New Record):
    Material Number Material Desc. MatGrp Basic Material UOM
    declare the text as
    begin of itab occurs 0 ,
    s1(200) type c,
    endof itab
    1. first text for the header .
    itab-S1+10(100)  = " Header text'.
    append itab .
    clear itab.
    2.
    append itab ====> fill force an empty line
    3.
    use concatenate f1X(Y ) f2X(Y ) itab-f3+X(Y ) into itab-s1 separated by space
    append itab.
    will keep the format in justified format .
    similarly repeat the same for the second header .
    regards,
    vijay

  • Smartform as Email Body

    Hi,
      I have a requirement to send the smartform as mail body. I was able to send the smartform as PDF attachment but we need it mail body. I tried converting to html but the data, tables and images are displaying in the distored way. Will it be possible to convert the smartform data to image and send as mail body? Please respond.
    Thanks!

    Hi,
         Try by below way
    1) Generate a spool of that smartform.
    2) Get the spool number from TSP01 table.
    3) Get the html content of the spool, it can be done by below way
        a) Use FM 'RSPO_DISPLAY_SPOOLJOB' providing the spool number,
        b) Use FM 'LIST_FROM_MEMORY' to get content from memory.
        c) Pass the content got by above FM to 'WWW_HTML_FROM_LISTOBJECT' to get the HTML content.
    4) Now process using the CL_DOCUMENT_BCS, using the I_TYPE = html and I_TEXT = HTML content from above. 
    Thanks & Regards
    Bala Krishna.

  • Actions - Smartform in Email body

    Hey all,
    I have a peculiar client requirement. On triggering an action from the CRM system from transactions, i need to send an email containing a samrtform.
    I understand that the standard SAP pracitice is to send the smartform as an attachment to the email. But what my client wants is that the content of the smartform should come in the body of the email.
    Would this be possible? If yes, how? If its not possible, is there an work around solution for this?
    Please Help.
    Thanks.
    Julius

    I have not found a simple solution to this problem, other than below.
    Using fm SO_DOCUMENT_SEND_API1 . There are a ton of examples in the abap forums on using this fm. The fm documentation also has some ssample code.
    My approach has been to create my email message body as an html string.
    i.e.
    data: str type string,
             name_org1 type but000-name_org1.
    concatenate '<html><head></head><body><h3>Customer Name: '  name_org1 '
                       '</h3></body></html>
           into str.
    Then pass the html string into the fm as the message body. Not pretty but functional.

  • Email reply looses formatting

    Does anybody know why when I reply to an email from my Blackberry 8800 that was originally sent as an HTML my reply is viewed without any formatting (all words, spaces and returns are compressed)? If so, what is the solution? Thanks - it is driving me crazy! ~vg

    I don't think I've seen this on the popular webmail sites (Yahoo, Hotmail/Windows Live, Gmail). What email service is it?

  • How to send smartform output in body of email?

    Hi all ,
    I have to send smartform output in body of email (not as an attachement in mail) .PLease help me in this regard.
    Thanks,
    Ananth S.

    Hi Ananth
    See these threads.
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6889194]
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6861330]
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6855364]
    Regards
    Hareesh Menon

  • Email body format is not correctly in SOST using SO_DOCUMENT_SEND_API1

    Hi Experts,
    I am sending email from my program, Email body is not coming correct format in the SOST as it is in the internal table.
    Below code i was written if any one knows please suggest.
        CONCATENATE DBHOST ':' SY-REPID INTO SUBJECT.
        DESCRIBE TABLE EMAIL_BODY LINES LINCOUNT.
        MOVE SUBJECT TO V_DATA-OBJ_DESCR.
        V_DATA-OBJ_NAME = 'TEXT'.
      IT_PACK-HEAD_START = '000000000000001'.
      IT_PACK-BODY_START = '000000000000001'.
      IT_PACK-DOC_TYPE = 'HTM' .
      IT_PACK-BODY_NUM = LINCOUNT.
      APPEND IT_PACK.
      IT_RECEIVER-RECEIVER = ADDRESSEE.
      IT_RECEIVER-REC_TYPE = 'U'.
      IT_RECEIVER-COM_TYPE = 'INT'.
      APPEND IT_RECEIVER.
      LOOP AT EMAIL_BODY.
        MOVE EMAIL_BODY-TDLINE TO IT_TEXT-LINE.
        APPEND IT_TEXT.
        CLEAR IT_TEXT.
      ENDLOOP.
        lv_RECEIVER = program input field email address.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
         DOCUMENT_DATA                    = V_DATA
         PUT_IN_OUTBOX                    = 'X'
         SENDER_ADDRESS                   = lv_RECEIVER
         SENDER_ADDRESS_TYPE              = 'INT '
        TABLES
          PACKING_LIST                    = IT_PACK
         CONTENTS_TXT                     =  IT_TEXT
          RECEIVERS                       = IT_RECEIVER
       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.
    Eagerly waiting for your response.
    Thanks,
    Kumar

    what do you mean by "not correctly"?  Is the text wrapping at 80 characters, or ??  Where's your example of the "not correctly" text?

  • Formating Email Body In SO_NEW_DOCUMENT_SEND_API1

    Hai,
    I am Trying to send an email, from my program , where body of the email is simply hardcoded.
    I need the email body in the below format with just 2 lines.
    Hi,
    line 1 :-Report Generated successfully
    line 2:- This mail is SAP generated pls dont reply.
    But My problem is all these lines are coming in a single line  . I have done all possible experiments but of no use...
    now depending on SDN..Help pls...Here is the code..
    objtxt-line = 'Hi,'.
    *    CONCATENATE cl_abap_char_utilities=>newline 'Hi' into objtxt-line respecting blanks.
         APPEND OBJTXT.
         CLEAR OBJTXT.
        APPEND OBJTXT.
         CLEAR OBJTXT.
        OBJTXT-LINE = P_MSG.
    *    CONCATENATE cl_abap_char_utilities=>newline p_msg cl_abap_char_utilities=>newline INTO OBJTXT-LINE respecting blanks.
         APPEND OBJTXT.
         CLEAR OBJTXT.
        CONCATENATE 'DO NOT REPLY TO THIS EMAIL. '
                      'THIS IS A SAP-SYSTEM GENERATED EMAIL!!' INTO OBJTXT-LINE .
         APPEND OBJTXT.
         CLEAR OBJTXT.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA                    = EMAIL_data
         PUT_IN_OUTBOX                    = 'X'
    *     SENDER_ADDRESS                   = SY-UNAME
    *     SENDER_ADDRESS_TYPE              = 'B'
         COMMIT_WORK                      = 'X'
    *   IMPORTING
    *     SENT_TO_ALL                      =
    *     NEW_OBJECT_ID                    =
    *     SENDER_ID                        =
        TABLES
          PACKING_LIST                     = PACKING_DETAIL
    *     OBJECT_HEADER                    =
    *     CONTENTS_BIN                     =
         CONTENTS_TXT                     =  objtxt
    *     CONTENTS_HEX                     =
    *     OBJECT_PARA                      =
    *     OBJECT_PARB                      =
          RECEIVERS                        = EMAIL_SEND
       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.                                      "Commented by jm1227 - 07/18/2011
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *  ENDIF.
    CASE SY-SUBRC.
          WHEN 0.
            LOOP AT S_EMAIL.
                WRITE: / S_EMAIL-low, ': succesfully sent'.
                skip.
            ENDLOOP.
          WHEN 1.
            WRITE: / 'Too many receivers specified !'.
          WHEN 2.
            WRITE: / 'No receiver got the document !'.
          WHEN 4.
            WRITE: / 'Missing send authority !'.
          WHEN OTHERS.
            WRITE: / 'Unexpected error occurred !'.
        ENDCASE.
    ENDFORM.                    " SEND_MAIL
    Thanks Jeevan.

    Hi Kumar,
    Is your GS_PACKING_LIST-DOC_TYPE   = raw or different?
    Best regards.

  • Email Body formatting Issue

    Hi,
    We have a requirement to send an email with body in the below mentioned format. I have populated the final internal table with necessary data. I have concatenated all the columns of each record of the final internal table into a text variable with necessary spaces and appended to another internal table of type 'SOLI_TAB'. I am using CL_BCS class to send email. But I am facing an issue with the formatting. Also the column headings should be in bold.
    Column1        Column2         Column3     Column4      Column5
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    Current Behaviour:
    Column1        Column2         Column3     Column4      Column5
    XXXXX          XXXX        XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXX    XXXXXX      XXXXX
    Can any one help me on this?
    Regard

    hi ,
    Why cant you try putting tablle format for this. and you can make header in bold also
    refer this page
    Table as Email Body
    Thanks Sam.

  • Format of email body in bursting control file

    Hi,
    I am hoping this is a simple question for someone that is not as new as I am to bursting...
    What is the new line character I should be using to format the outgoing email body within the bursting control file.
    At present, the entire email body appears as one paragraph regardless of whether I have included new lines or not. I am no doubt missing something simple given that it is 5.20pm on a Friday.
    Any help is appreciated.
    Kind regards,
    Wes

    Version 11.5.10.2
    XML/BI Publisher Version : 5.6.3
    i have put the log file here for your reference
    XML/BI Publisher Version : 5.6.3
    Request ID: 1691733
    All Parameters: ReportRequestID=1691732:DebugFlag=Y
    Report Req ID: 1691732
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:COLFARMT
    Preparing parameters
    null output =/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691733.out
    inputfilename =/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691732.out
    Data XML File:/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691732.out
    Set Bursting parameters..
    Temp. Directory:/u0350/app/apps/UAT/xx/1.0/log
    [033108_044049404][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
    Start bursting process..
    [033108_044049410][][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log
    [033108_044049474][][STATEMENT] BurstingProcessor ::: Property Key ---> burstng-source
    [033108_044049475][][STATEMENT] Inside burstingConfigParser
    [033108_044049482][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
    [033108_044049688][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
    [033108_044050177][][STATEMENT] template File/u0350/app/apps/UAT/xx/1.0/data/PurchaseOrder.rtf
    [033108_044050245][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
    [033108_044050731][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [033108_044050732][][STATEMENT] XDO version = Oracle XML Publisher 5.6.3
    [033108_044050732][][STATEMENT] java.home = /usr/j2sdk1.4.2_08/jre
    [033108_044050732][][STATEMENT] XDO_TOP = null
    [033108_044050732][][STATEMENT] Config Path = null
    [033108_044050732][][STATEMENT] Debug Cfg Path= null
    [033108_044050733][][STATEMENT] Font dir = /usr/j2sdk1.4.2_08/jre/lib/fonts/
    [033108_044050733][][STATEMENT] Locale = en
    [033108_044050733][][STATEMENT] Fallback font = type1.Helvetica
    [033108_044050733][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [033108_044050736][][STATEMENT] digit-substitution=null(not set)
    [033108_044050736][][STATEMENT] font.ALBANY WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTJ.ttf
    [033108_044050736][][STATEMENT] font.ALBANY WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTK.ttf
    [033108_044050737][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTS.ttf
    [033108_044050737][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTT.ttf
    [033108_044050737][][STATEMENT] font.ALBANY WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANYWT.ttf
    [033108_044050737][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJB.ttf
    [033108_044050737][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJ.ttf
    [033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOKB.ttf
    [033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOK.ttf
    [033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSCB.ttf
    [033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSC.ttf
    [033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTCB.ttf
    [033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTC.ttf
    [033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOB.ttf
    [033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUO.ttf
    [033108_044050739][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [033108_044050739][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [033108_044050740][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [033108_044050741][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [033108_044050741][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [033108_044050741][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [033108_044050741][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [033108_044050741][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [033108_044050742][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [033108_044050742][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [033108_044050742][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [033108_044050742][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [033108_044050742][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [033108_044050742][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [033108_044050743][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [033108_044050743][][STATEMENT] font.DEFAULT.normal.normal=type1.Helvetica
    [033108_044050743][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [033108_044050743][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [033108_044050743][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [033108_044050743][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [033108_044050743][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [033108_044050744][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [033108_044050744][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [033108_044050744][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [033108_044050744][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [033108_044050744][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [033108_044050744][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [033108_044050745][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [033108_044050745][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [033108_044050745][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [033108_044050745][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [033108_044050745][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [033108_044050745][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [033108_044050746][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [033108_044050746][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [033108_044050747][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [033108_044050747][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [033108_044050747][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [033108_044050747][][STATEMENT] pdf-changes-allowed=0
    [033108_044050749][][STATEMENT] pdf-compression=true
    [033108_044050749][][STATEMENT] pdf-enable-accessibility=true
    [033108_044050749][][STATEMENT] pdf-enable-copying=false
    [033108_044050749][][STATEMENT] pdf-encryption-level=0
    [033108_044050749][][STATEMENT] pdf-font-embedding=true
    [033108_044050749][][STATEMENT] pdf-hide-menubar=false
    [033108_044050750][][STATEMENT] pdf-hide-toolbar=false
    [033108_044050750][][STATEMENT] pdf-no-accff=false
    [033108_044050750][][STATEMENT] pdf-no-cceda=false
    [033108_044050750][][STATEMENT] pdf-no-changing-the-document=true
    [033108_044050750][][STATEMENT] pdf-no-printing=false
    [033108_044050750][][STATEMENT] pdf-open-password=
    [033108_044050751][][STATEMENT] pdf-permissions=0
    [033108_044050751][][STATEMENT] pdf-permissions-password=
    [033108_044050751][][STATEMENT] pdf-printing-allowed=0
    [033108_044050751][][STATEMENT] pdf-replace-smartquotes=true
    [033108_044050751][][STATEMENT] pdf-security=false
    [033108_044050751][][STATEMENT] ------------------------------------------------------
    [033108_044051077][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [033108_044051091][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Times-Roman
    [033108_044051237][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
    [033108_044052301][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
    [033108_044052383][oracle.apps.xdo.template.rtf.RTF2XSLParser][STATEMENT] Time spent: 1665
    [033108_044052394][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
    [033108_044052394][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
    [033108_044052649][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
    [033108_044052649][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
    [033108_044052901][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
    [033108_044052901][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(String) is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo2.tmp'.
    [033108_044052916][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
    [033108_044052916][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(String) is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo0.tmp'.
    [033108_044052920][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(String)is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/PurchaseOrder 6023571.pdf'.
    [033108_044052948][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
    [033108_044052950][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
    [033108_044052950][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
    [033108_044053858][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] oracle.xdo Developers Kit 10.1.0.3.0 - Production
    [033108_044053859][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Scalable Feature Disabled
    [033108_044055032][oracle.apps.xdo.template.fo.FOProcessingEngine][STATEMENT] Using proxy for PDF Generator
    [033108_044055064][oracle.apps.xdo.template.FOProcessor][STATEMENT] Calling FOProcessingEngine.process()
    [033108_044055065][][STATEMENT] Using optimized xslt
    [033108_044055100][oracle.apps.xdo.template.fo.datatype.AttrKey][STATEMENT] WARNING: Found undetermined AttrKey: xmlns:xlink
    [033108_044055108][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [033108_044055108][][STATEMENT] XDO version = Oracle XML Publisher 5.6.3
    [033108_044055108][][STATEMENT] java.home = /usr/j2sdk1.4.2_08/jre
    [033108_044055109][][STATEMENT] XDO_TOP = null
    [033108_044055112][][STATEMENT] Config Path = null
    [033108_044055112][][STATEMENT] Debug Cfg Path= null
    [033108_044055112][][STATEMENT] Font dir = /usr/j2sdk1.4.2_08/jre/lib/fonts/
    [033108_044055112][][STATEMENT] Locale = en
    [033108_044055112][][STATEMENT] Fallback font = type1.Helvetica
    [033108_044055112][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [033108_044055115][][STATEMENT] digit-substitution=null(not set)
    [033108_044055115][][STATEMENT] font.ALBANY WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTJ.ttf
    [033108_044055116][][STATEMENT] font.ALBANY WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTK.ttf
    [033108_044055116][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTS.ttf
    [033108_044055116][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTT.ttf
    [033108_044055116][][STATEMENT] font.ALBANY WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANYWT.ttf
    [033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJB.ttf
    [033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJ.ttf
    [033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOKB.ttf
    [033108_044055130][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOK.ttf
    [033108_044055130][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSCB.ttf
    [033108_044055131][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSC.ttf
    [033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTCB.ttf
    [033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTC.ttf
    [033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOB.ttf
    [033108_044055138][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUO.ttf
    [033108_044055138][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [033108_044055138][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [033108_044055138][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [033108_044055138][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [033108_044055138][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [033108_044055138][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [033108_044055138][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [033108_044055138][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [033108_044055139][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [033108_044055139][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [033108_044055139][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [033108_044055139][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [033108_044055139][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [033108_044055139][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [033108_044055139][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [033108_044055139][][STATEMENT] font.DEFAULT.normal.normal=type1.Helvetica
    [033108_044055139][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [033108_044055140][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [033108_044055140][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [033108_044055140][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [033108_044055140][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [033108_044055140][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [033108_044055140][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [033108_044055140][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [033108_044055140][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [033108_044055140][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [033108_044055141][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [033108_044055141][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [033108_044055141][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [033108_044055141][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [033108_044055141][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [033108_044055141][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [033108_044055141][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [033108_044055141][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [033108_044055141][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [033108_044055142][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [033108_044055142][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [033108_044055142][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [033108_044055142][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [033108_044055142][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [033108_044055142][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [033108_044055142][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [033108_044055142][][STATEMENT] pdf-changes-allowed=0
    [033108_044055142][][STATEMENT] pdf-compression=true
    [033108_044055143][][STATEMENT] pdf-enable-accessibility=true
    [033108_044055143][][STATEMENT] pdf-enable-copying=false
    [033108_044055143][][STATEMENT] pdf-encryption-level=0
    [033108_044055143][][STATEMENT] pdf-font-embedding=true
    [033108_044055143][][STATEMENT] pdf-hide-menubar=false
    [033108_044055143][][STATEMENT] pdf-hide-toolbar=false
    [033108_044055143][][STATEMENT] pdf-no-accff=false
    [033108_044055143][][STATEMENT] pdf-no-cceda=false
    [033108_044055143][][STATEMENT] pdf-no-changing-the-document=true
    [033108_044055144][][STATEMENT] pdf-no-printing=false
    [033108_044055145][][STATEMENT] pdf-open-password=
    [033108_044055145][][STATEMENT] pdf-permissions=0
    [033108_044055145][][STATEMENT] pdf-permissions-password=
    [033108_044055145][][STATEMENT] pdf-printing-allowed=0
    [033108_044055145][][STATEMENT] pdf-replace-smartquotes=true
    [033108_044055145][][STATEMENT] pdf-security=false
    [033108_044055145][][STATEMENT] ------------------------------------------------------
    [033108_044055220][][STATEMENT] Rendering page [1]
    [033108_044055238][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [033108_044055238][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Times-Roman
    [033108_044055246][][STATEMENT] Phase2 time used: 83ms
    [033108_044055531][][STATEMENT] Continue rendering page [1]
    [033108_044055585][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica-Bold
    [033108_044055799][][STATEMENT] Generating page [1]
    [033108_044055843][][STATEMENT] Rendering page [2]
    [033108_044056064][][STATEMENT] Generating page [2]
    [033108_044056096][][STATEMENT] Rendering page [3]
    [033108_044056271][][STATEMENT] Generating page [3]
    [033108_044056303][][STATEMENT] Rendering page [4]
    [033108_044056407][][STATEMENT] Phase2 time used: 876ms
    [033108_044056443][][STATEMENT] Continue rendering page [4]
    [033108_044056483][][STATEMENT] Generating page [4]
    [033108_044056512][][STATEMENT] Rendering page [5]
    [033108_044056613][][STATEMENT] Generating page [5]
    [033108_044056635][][STATEMENT] Rendering page [6]
    [033108_044056653][][STATEMENT] Phase2 time used: 210ms
    [033108_044056654][][STATEMENT] Continue rendering page [6]
    [033108_044056654][][STATEMENT] Phase2 time used: 1ms
    [033108_044056654][][STATEMENT] Continue rendering page [6]
    [033108_044056656][][STATEMENT] Phase2 time used: 2ms
    [033108_044056666][][STATEMENT] Continue rendering page [6]
    [033108_044056676][][STATEMENT] Generating page [6]
    [033108_044056681][][STATEMENT] Rendering page [7]
    [033108_044056731][][STATEMENT] Phase2 time used: 65ms
    [033108_044056731][][STATEMENT] Continue rendering page [7]
    [033108_044056731][][STATEMENT] Phase2 time used: 0ms
    [033108_044056732][][STATEMENT] Continue rendering page [7]
    [033108_044056732][][STATEMENT] Phase2 time used: 0ms
    [033108_044056733][][STATEMENT] Continue rendering page [7]
    [033108_044056733][][STATEMENT] Generating page [7]
    [033108_044056735][][STATEMENT] Phase2 time used: 3ms
    [033108_044056736][][STATEMENT] Total time used: 1668ms for processing XSL-FO
    [033108_044057034][][STATEMENT] ProxyGenerator creating new page: 1
    [033108_044057111][][STATEMENT] ProxyGenerator creating new page: 2
    [033108_044057189][][STATEMENT] ProxyGenerator creating new page: 3
    [033108_044057242][][STATEMENT] ProxyGenerator creating new page: 4
    [033108_044057301][][STATEMENT] ProxyGenerator creating new page: 5
    [033108_044057331][][STATEMENT] ProxyGenerator creating new page: 6
    [033108_044057343][][STATEMENT] ProxyGenerator creating new page: 7
    [033108_044057382][][STATEMENT] Starting Generator.close()
    [033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
    [033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica-Bold closed.
    [033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
    [033108_044057389][][STATEMENT] Generator.close() took: 6ms
    [033108_044057389][][STATEMENT] Total time to process commands from ProxyGenerator tmp file: 643ms
    [033108_044057389][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
    [033108_044057412][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
    [033108_044057477][][STATEMENT] initConfig(): config file used :null
    [033108_044057478][][STATEMENT] initCustomFactories(): loading custom delivery channels :{}
    [033108_044057478][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{}
    [033108_044057479][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): called with request type :smtp_email
    [033108_044057522][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): exiting
    [033108_044057577][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[PurchaseOrder 6023571.pdf], [content-type]=[application/pdf], [index]=[-1], [disposition]=[inline]
    [033108_044057585][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [033108_044057586][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [033108_044057588][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Exiting addAttachment()
    [033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Called
    [033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] setDefaultServerProperties(): No default server found for this request type: smtp_email
    [033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] setDefaultServerProperties(): properties defined in this request.
    [TEMP_DIR:String] [u0350/app/apps/UAT/xx/1.0/log/033108_044049420]
    [ASYNC_CHECK_INTERVAL:Integer] [60000]
    [HOST:String] [colfarmt.hpa.org.uk]
    [SMTP_TO_RECIPIENTS:String] [[email protected]]
    [SMTP_ENCODING:String]
    [SMTP_CONTENT_FILENAME:String] [messageBody.txt]
    [SMTP_CONTENT_TYPE:String] [text/html;charset=UTF-8]
    [SMTP_SUBJECT:String] [Purchase Order No: 6023571]
    [BUFFERING_MODE:Boolean] [true]
    [SMTP_CC_RECIPIENTS:String] [[email protected]]
    [SMTP_FROM:String] [[email protected]]
    [TEMP_FILE_PREFIX:String] [dlvr]
    [PORT:Integer] [(java.lang.Integer]
    [RETRY:Integer] [0]
    [SMTP_ATTACHMENT:Attachment] [(oracle.apps.xdo.delivery.smtp.Attachment]
    [RETRY_INTERVAL:Integer] [60000]
    [TEMP_FILE_SUFFIX:String] [.tmp]
    [SMTP_ATTACHMENT_FIRST:Boolean] [(java.lang.Boolean]
    [SMTP_CHARSET:String] [UTF-8]
    [ASYNC_TIMEOUT:Integer] [86400000]
    [033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): BUFFERING_MODE is ON.
    [033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): TEMP_DIR found, start document buffering : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420
    [033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Starting document buffering.
    [033108_044057602][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Creating temporary file for buffering : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/dlvrbrfaxe1m4B55646.tmp
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): 63 bytes have been written to the temporary file.
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] filterDocument(): Starting document preprocessing.
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] filterDocument(): No native command found for preprocessing, exiting.
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Finished document buffering.
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Start reading the buffered document file. : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/dlvrbrfaxe1m4B55646.tmp
    [033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Calling DeliveryRequestHandler.submitRequest()
    [033108_044057604][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): called
    [033108_044057604][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): This request has never been submitted before.
    [033108_044057607][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] Start parsing HTML file...(filename:messageBody.txt)(current dir:null)
    [033108_044057607][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] Reached the end of InputStream.
    [033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[messageBody.txt], [content-type]=[text/html;charset=UTF-8], [index]=[-1], [disposition]=[null]
    [033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Exiting addAttachment()
    [033108_044057609][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT]
         Dear Sir/Madam,
         Please review the attached PO 6023571
    [033108_044057666][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): Character set for MIME headers : UTF-8
    [033108_044057666][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): Character encoding for MIME headers : B
    [033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): exiting
    [033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Finished calling DeliveryRequestHandler.submitRequest()
    [033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Process done successfully. Exiting submit()
    [033108_044058085][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
    [033108_044058086][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
    Bursting process complete..
    Generating Bursting Status Report..
    [033108_044058202][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo0.tmp is deleted
    [033108_044058203][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo1.tmp is not deleted
    [033108_044058226][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo2.tmp is deleted
    [033108_044058226][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo3.tmp is not deleted
    [033108_044058238][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo4.tmp is deleted
    [033108_044058262][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/PurchaseOrder 6023571.pdf is deleted

  • Formatting EMAIL Body

    Hi All,
    We have a requirement of sending email notification. The issue is that I am able to send an attachment successfully in email, but the format of data in email body is distorted. It si being shown as :
    Dear User\nThis is to inform that a price protection process(mentioned in Subject) was erred with details below:\nError Detail : \nProcess Name : ERRORSERVICEASYNC\nExecution Detail Id : 578\nTransaction Number : PPTXN1\nThanks\n** This is a computer generated mail, please do not reply to this
    Whereas I want it to appear as:
    Dear User
    This is to inform that a price protection process(mentioned in Subject) was erred with details below:
    Error Detail :
    Process Name : ERRORSERVICEASYNC
    Execution Detail Id : 578
    Transaction Number : PPTXN1
    Thanks
    ** This is a computer generated mail, please do not reply to this
    Also I am writing the code that I have used in Email Body in BPEL Process:--
    <%"Dear User"%><%"\n"%><%"This is to inform that a price protection process(mentioned in Subject) was erred with details below:"%><%"\n"%><%"Error Code : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:ErrorCode')%><%"\n"%><%"Error Summary : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:ErrorSummary')%><%"\n"%><%"Error Detail : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:ErrorDetail')%><%"\n"%><%"Process Name : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:ProcessName')%><%"\n"%><%"Execution Detail Id : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:ExecutionDetailId')%><%"\n"%><%"Transaction Number : "%><%bpws:getVariableData('inputVariable','payload','/client:DPPUserNotifAsyncProcessRequest/client:TransactionNumber')%><%"\n"%><%"Thanks"%><%"\n"%><%"** This is a computer generated mail%><%please do not reply to this"%>
    Any Idea how to format the email body so as to beautify & make the data appear to end user more beautified?????? Calling all experts

    hi Lalit ,
    I hope ur <IncomingServerSettings> port should not be same as <OutgoingServerSettings> port number .Generally for incomeing SMTP will be used and for outgoing mail POP will be used.So kindly look into the BPEL Developer's guied for more information in configurein the ns_email.xml. And one more thing, that as per my understanding OracleBPEL will not support for secure transcation over SMTP.
    i hope ur config will be like the one below:
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>Oracle BPM</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>Server' IPADRESS</SMTPHost>
    <SMTPPort>25</SMTPPort>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <Server>Server' IPADRESS</Server>
    <Port>110</Port>
    <Protocol>pop3</Protocol>
    <UserName>XXXXXXX</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">XXXXXXX</Password>
    <UseSSL>false</UseSSL>
    <Folder>Inbox</Folder>
    <PollingFrequency>1</PollingFrequency>
    <PostReadOperation>
    <MarkAsRead/>
    </PostReadOperation>
    </IncomingServerSettings>
    Regards,
    Dinesh kumar.S

  • Output in Email Body Formatting Warped

    Hi All
    I am completly new to powershell & am googling about for code.
    I have been able to so far to send the results of a powershell query by email and am mightly impressed it worked.
    When the query is done on the command line it works great, by email the output is spread wide and the fields dont align with each other.
    I have pasted my commands below. I am querying the Exchange Mailbox sizes and wish to sort by the biggest down.  This works great and I out put it to a text file.
    I then read the text file and substitute it for the body of the email.
    On the outlook email recepient end It looks to me like the window size of outlook causes the text to wrap around and it is no longer displayed lengthways.
    Is there anything I can do?
    Thanks
    Below gets data
    Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName
    MyExchangeServer | Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} | Select-Object MailboxDisplayName,Size
    | sort-object size -descending
    Below tells which exchnage server to use
    $psEmailServer = "MyExchangeServer"
    Below is the text file containing the data I need assigned to $body
    $body= (Get-Content mailboxsize.txt)
    Below sends the email using the contents of the email as the email body, BUT it dosent come out right and its out of alignment in outlook.
    send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test powershell email" -body "$body"
    confuseis

    The PowerShell console uses a fixed-width font, by default, but most email clients don't.  The best solution is to use the ConvertTo-Html command on the results of your pipeline, instead of saving the text to a file.  This renders the objects in
    an HTML table instead of relying on a fixed-width font, and then you use the -BodyAsHtml switch when calling Send-MailMessage:
    $data = Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName MyExchangeServer |
    Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} |
    Select-Object MailboxDisplayName,Size |
    sort-object size -descending
    $psEmailServer = "MyExchangeServer"
    $body = $data | ConvertTo-Html | Out-String
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml
    Edit:  If you absolutely must send the contents of the file as-is, you can still try sending the body as HTML, wrapping the body text in a <pre> tag, which should be displayed in a fixed-width font:
    $body = Get-Content mailboxsize.txt -Raw
    $body = '<pre>{0}</pre>' -f [System.Net.WebUtility]::HtmlEncode($body)
    $psEmailServer = "MyExchangeServer"
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml

Maybe you are looking for