PO- Output process with DMS attachment

HI,
I have a request to process a PO output but when they process this output instead of picking a layout to print/fax/email, requirement is to get an attachement from DMS document(CV03n) and send this attachment as an email using transaction CVI8.
my question is,
1. for output determination we need print prgram and form name. so can form name be blank in the config( becasue we don't need form)?
2. I'm thiking of using print program to read this attachement and email. Any other ideas?
let me know if you have any other ideas.
thanks a lot
harprit

Harprit,
you dont have to specify from (sap script or smartform). But since you are specifying the print program name why don't you want to specify the FORM routine name.
SAP will directly call this subroutine and in that subroutine you can have all your logic.
Thanks,
Vikram.M

Similar Messages

  • Initiating bpm 11g process with an attachment?

    Hi,
    Facing problem in passing the attached file to the next human task.
    Basically, initiating a bpm process with file adapter getting the file as an attachment. after that need to pass the file to next human task for approval.
    stucked in passing the document to next human task.
    is there any way i can do it??
    Please suggest something.
    thanks in advance
    regards

    User/Role management is now done through the workspace itself. You must login as an administrative user (like weblogic) and you will see an Admin link in the upper right of the workspace.
    Authentication and user lookup is now handled directly by Weblogic - so you setup authentication Providers in the WLS security realm through the admin console.
    By default Weblogic is configured to use an internal LDAP that stores local users (this is where the "weblogic" user itself is defined).
    General steps are provided here:
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10226/hwf_config.htm#BHCJGBFJ
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/secmanage/atn.html#wp1198953
    Edited by: Mike Rokitka on Jul 2, 2010 11:17 AM

  • Workflow Step 'In Process'- Send mail with PDF attachment

    Hi,
    have to send mail with PDF attachment.
    I have written a function module with following steps,
    1. Convert SPOOL number to PDF using Function Module 'CONVERT_OTFSPOOLJOB_2_PDF'.
    2. Send mail with PDF attachment using Function Module 'SO_DOCUMENT_SEND_API1'.
    The Function Module is giving required output when tested and called in the report(Background Job).
    When I call this Function Module from Method-> Workflow Task the Workflow steps status is 'In Process' and not ending.
    Could you please help me on this??

    Hi shafath,
    When you try to send mail,  You need to call the function FP_JOB_OPEN before calling the function module to generate the pdf. ( /1B****)  . Is it missing in your code?

  • Start bpm process with attachment or note

    Hi All
    Is there any way to start BPM process and add attachment or note to it.
    My client requirement is that when the process is started requester should be able to add file or note.
    This note or file should be visible in UWL task (in section attachments or notes)
    Is there any way to do it using standard.
    I know that I can store note in context of BPM process but customer is really pushing for standard.
    Regards

    Not sure if the requester is in BPM or outside BPM.
    You can do this by keeping requester in BPM i.e. trigger BPM and give requester a task. (Dont think its preferred design).
    In UWL you can let user add a memo or attachment... Refer below doc
    SAP NetWeaver Business Process Management Resource Center
    -Abhijeet
    Edited by: Abhijeet on Dec 10, 2011 5:21 AM

  • Output stream with a keylistener

    Hello,
    I have a program that basically runs .class and .jar console based programs, using JFileChooser to open them and such. I have managed to capture the System.out and System.err streams from running processes and using p.getInputStream() and p.getErrorStream(), just appending a JTextArea with each character in the stream. Now I'm trying to get the System.in stream connected.
    I have a keylistener attached to my JFrame, like this
    String line;
    frame.addKeyListener(new KeyListener() {
         @Override
         public void keyPressed(KeyEvent e) {}
         @Override
         public void keyReleased(KeyEvent e) {
              Character key = e.getKeyChar();
              //Delete the last character in both the JTextArea and the current line
              if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
                   if (output.getText().charAt(output.getText().length()-1) != '\n') {
                        String text = output.getText().substring(0, output.getText().length()-1);
                        output.setText(text);
                        line = line.substring(0, line.length()-1);
                   //Write line to OutputStream and put a new line in the JTextArea                              
              } else if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                       //writeToOutput("\n-------\nLine reads: " + line + "\n--------\n");
                   writeToOutput("\n");
                   line = "";
              //Add any other characters to the line and show them in the JTextArea
              } else if (e.getKeyCode() != KeyEvent.VK_SHIFT) {
                   writeToOutput(key + "");
                   line = line + key;
         @Override
         public void keyTyped(KeyEvent e) {}                         
    });What happens is that the user types a line of characters, then presses enter. What I want is for when enter is pressed that the line is written to some sort of OutputStream in such a way that I can use it to provide input to a process with p.getOutputStream(OutputStream);
    Which OutputStream do I have to use and how? It's all a bit confusing :S
    Thanks,
    Jack
    Edited by: jackCharlez on Nov 23, 2009 1:25 PM
    Edited by: jackCharlez on Nov 23, 2009 1:33 PM

    Solved, using
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
    Out.write in my keylistener and out.newline(); out.flush(); when the user presses enter.
    ^ For anyone googling this problem :P

  • External Send PO as email with PDF attachment not working

    hi,
    we are using ECC6, and in txn NACT, Processing routine we can use Sapscript External send > SAPFM06P > ENTRY_NEU > MEDRUCK > PDF and in MN04/5 i create Output record, and in SCOT my PO is ready for transmission from either ME21N/2 and ME9F - works well - email sent with pdf PO attached.
    <b>HOWEVER,</b> we have just created a SMARTFORM PO, and with similar settings, i cannot create External send OUTPUT!!! (Output failed in ME9F/ME23N) NACT settings External Send > /SMB40/FM06P > Z_MMPO_A > PDF
    In SCOT > SMTP > Internet X > Sapscript/SmartForm = PDF.
    Does special code need to be entered into Smartform to generate PDF email similar to Sapscript? Any code would be appreciated.
    regards Adam

    Hi,
    You need to build a code to create the Spool OTF output into PDF.
    This can be done in Print program, which converts the spool into PDF & sends a mail with PDF attachment.
    Please refer this sample program:
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Best regards,
    Prashant

  • Sending Po with file attached

    Hi gurus.
    I'm facing following issue:
    Customer requires send PO to vendors with files attached via DMS.
    Is there any standard solution to do that? or will be necessary develop an ABAP program?
    I'll really appreciate your help.
    Best Regards.

    Dear Rahul
    Please check the settings for your distribution types based on the following information:
    1. 'File processing'
    Please verify that you have maintained the correct value '2' in the field 'File processing' for the used distribution types (INT, RML,..). You can check this in customizing under:
    Cross-Application Components >> Document Management System >> Document Distribution >> Distribution Type >> Define distribution types
    2. Activate Type-Linkage:
    If those actions won't help to solve this issue you can also check if the flag 'Linkage Activated' for the entry 'DRAW CHANGED DISTRIBUTION' in transaction SWETYPV to get the workflow running.
    Afterwards please re-activate the workflow templates WS20000104 and WS20000137 once again to realise this changes.
    With Warm Regrads
    Mangesh Pande

  • Sending mail with multiple attachment

    hi.
    i want to send mail with multiple attachment.
    i m succeed in sending multiple attachment but the second pdf is not open.
    its given error like "This file is damaged and could not be open.
    pls check my code. and
    give the solution....
    point should be assured...........
    hope all u r understand my problem..
    & tell me where is i m missing something.
    REPORT  YSDPASALE1_MAIL LINE-SIZE 110.
    data : year_month(6) type c.
    data : from_date like sy-datum,to_date like sy-datum.
    INITIALIZATION.
    year_month = sy-datum+0(6).
    CONCATENATE year_month '01' into from_date.
    to_date = sy-datum.
    ranges : temp for mkpf-budat.
    temp-low = from_date.
    temp-high = to_date.
    append temp to temp.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
           jobname like TBTCJOB-JOBNAME,
           L_RELEASE(1) TYPE c.
    CONSTANTS : l_c_device(4)    VALUE 'LOCL'.
    DATA : t type i value 0.
    DATA : p_email1 like somlreci1-receiver,
            p_sender LIKE somlreci1-receiver.
    Data Declaration
    DATA: gd_recsize TYPE i,gd_recsize1 TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject  LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att1 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att2 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_desc1 TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des,
          gd_mtitle LIKE sodocchgi1-obj_descr.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    DATA: BEGIN OF mailstr OCCURS 0,
            p_email like somlreci1-receiver,
          END OF mailstr.
    DATA: mailtab like STANDARD TABLE OF mailstr WITH HEADER LINE.
    DATA: ypp18tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ymis008tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ysd15tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ymis10tab like STANDARD TABLE OF mailstr WITH HEADER LINE.
    SUBMIT YSDPASALE1 with bdt in temp
                           to sap-spool
                          with line-size = '255'
                           with KEEP_IN_SPOOL = 'X'
                           with IMMEDIATELY = ' '
                           WITHOUT SPOOL DYNPRO
                           AND RETURN
       NEW-PAGE PRINT ON
       DESTINATION l_c_device
       IMMEDIATELY ' '
       KEEP IN SPOOL 'X'
       NEW LIST IDENTIFICATION 'X'
       NO DIALOG.
       new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        select yemail as p_email into CORRESPONDING FIELDS OF TABLE ymis008tab
          from ymail
          where ytcode = 'YMIS008'.
    ELSE.
       SKIP.
       WRITE:/ 'Program must be executed in background in-order for spool & mail sending',
               'request to be created.'.
      ENDIF.
    wait up to 3 seconds.
      submit YSD_MONTHLY_SALES
                                USING SELECTION-SET 'MAIL'
                                to sap-spool
                               with KEEP_IN_SPOOL = 'X'
                               with IMMEDIATELY = ' ' "SPACE
                               WITHOUT SPOOL DYNPRO
                               AND RETURN
       NEW-PAGE PRINT ON
       DESTINATION l_c_device
       IMMEDIATELY ' '
       KEEP IN SPOOL 'X'
       NEW LIST IDENTIFICATION 'X'
       NO DIALOG.
       new-page print off.
        IF sy-batch EQ 'X'.
        gd_attachment_desc1  = 'YMIS10'.
        gd_mtitle = 'Monthly Sales Report'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf1.
       loop at it_mess_att.
        move it_mess_att1 to it_mess_att.
        APPEND it_mess_att.
       endloop.
       APPEND LINES OF it_mess_att1 to it_mess_att.
       free it_mess_att1.
        it_mess_att[] = it_mess_att1[].
        insert LINES OF it_mess_att1 into it_mess_att.
        APPEND LINES OF it_mess_att2 to it_mess_att .
         insert LINES OF it_mess_att1 into it_mess_att.
         insert LINES OF it_mess_att2 into it_mess_att.
       loop at ymis008tab into mailstr.
         p_email1 = mailstr-p_email.
          p_email1 = '[email protected]'.
           PERFORM process_email.
       endloop.
           clear mailstr.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
      ELSE.
        SKIP.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    FORM convert_spool_to_pdf1.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att1 = gd_buffer.
        APPEND it_mess_att1.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      DESCRIBE TABLE it_mess_att1 LINES gd_recsize1.
      CHECK gd_recsize > 0 or gd_recsize1 > 0.
      PERFORM send_email." USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email." USING p_email.
    CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = gd_attachment_desc1 .
    gd_attachment_desc = 'YPP18 - Daily Highlights'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Dear Sir,'.
      APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
      it_mess_bod        = ' '.
      APPEND it_mess_bod.
      it_mess_bod        = 'kindly find the attached document'.
      APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
    it_mess_bod        = 'Do not reply on this mail, It is generated from SAP'.
    APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
      it_mess_bod        = ' '.
      APPEND it_mess_bod.
      it_mess_bod        = 'Regards,'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Arpit Shah'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                          it_mess_att1
                                    using "p_email
                                          gd_mtitle
                                         'Testing mail generated from SAP'
                                         'Daily Highlights Abstract Report - YPP18'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                              it_attach1
                                        using "p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1,w_doc_data1 like sodocchgi1.
    ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data1-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    For 2nd Attachments
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach1 INDEX w_cnt.
      w_doc_data-doc_size = w_doc_data1-doc_size +
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach1 ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
    APPEND LINES OF it_attach1 to t_attachment.
      t_attachment[] = it_attach1[].
    APPEND LINES OF it_attach1 to t_attachment.
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 0.
      t_packing_list-body_start = 1.
    DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
    DESCRIBE TABLE it_mess_att LINES t_packing_list-body_num.
      DESCRIBE TABLE it_attach LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  'YMIS008'."ld_attdescription.
      t_packing_list-obj_name   =  'YMIS008'."ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
      clear t_packing_list.
    for 2 attachments
      data : a type i,b type i.
       a = t_packing_list-body_num.
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 0.
      t_packing_list-body_start = a + 1. "1
    DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
      DESCRIBE TABLE it_attach1 LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  'YMIS10'."ld_attdescription.
      t_packing_list-obj_name   =  'YMIS10'."ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    a = t_packing_list-body_num.
    clear t_packing_list.
    * Create attachment notification
    t_packing_list-transf_bin = 'X'.
    t_packing_list-head_start = 1.
    t_packing_list-head_num   = 1.
    t_packing_list-body_start = a + 1.
    t_packing_list-body_num = t_packing_list-body_num + 1.
    DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
    t_packing_list-body_num = a + t_packing_list-body_num .
    t_packing_list-doc_type   =  ld_format.
    t_packing_list-obj_descr  =  'YMIS10'."ld_attdescription.
    t_packing_list-obj_name   =  'YMIS10'."ld_attfilename.
    t_packing_list-doc_size   =  t_packing_list-body_num * 255.
    APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
    loop at ymis008tab into mailstr.
      t_receivers-receiver = mailstr-p_email.  "ld_email.
      t_receivers-receiver = p_email1.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'. "X   "Read Acknoledgement
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
    endloop.
       CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Rgds.
    Arpit

    Hi Arpit,
    Take a look at the documentation of FM 'SO_DOCUMENT_SEND_API1' for parameter PACKING_LIST. I think you should set t_packing_list-head_num to a different value than 0 for the second attachment.
    Regards,
    John.

  • Problem with MacMail on MacBook Air - mail with 32MB attachment appearing in "recovered messages" folder every 12 seconds

    Problem with MacMail on MacBook Air
    3 days ago I failed to send a mail with a large (32MB) attachment - and it is no longer in my outbox, draft mails or sent file.
    BUT a copy of this same mail now appears every about 15 seconds in my "recovered messages" folder
    I noticed when I received a system error saying I had a disk almost full issue - there were over 580 copies of the mail with 32MB attachment in the "recovered messages file"
    I deleted them all, and deleted the Trash
    BUT the message still keeps re-appearing every 15 seconds or so.  So I keep deleting them.
    Since then I have not been able to receive mail (altho' I am able to send) and Mail is VERY slow
    I am running MAC OS X 10.6.8
    I am running Mail version 4.6 (1085)

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • B2B - Email with XML attachment - Error in reading the xml file

    Hello,
    We have a requirement where an application sends an email with an xml attachment to a Lotus Notes (IMAP) mail box. I have configured the Partner, Agreements and Listening Channel to pick up the file from the mail box. Looks like when B2B is trying to read / store attachment, it errors out, there is no instance in B2B created. Looking at the logs, the file content is not read as XML, instead it seems like a text. When B2B tries to read the attachment it is not xml, there are no error messages as well.
    The "Content type" in the Listening Channel is set to blank, so B2B can decide appropriate content type. Should this be set?
    Could some one tell me what is wrong, not sure what is missing in the configuration.
    Thanks,
    Venkatesh
    Here is the log in Trace 32.
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: Delivery channel Id:CHANNEL_uGzsvLy-5972197188599763240
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = host value = abcapp1.abc.com
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = password value = ******
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = user value = IDropshipabcTest
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = polling_interval value = 60
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = content-type value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = send as attachment value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = folder value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = email-id value = [email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = subject value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = dateformat value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = eMail-server value = IMAP
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: Putting imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: put: Putting imap://[email protected] for delivery channel CHANNEL_uGzsvLy-5972197188599763240
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Adding endpoint...channel name abc_EmailVendor_LC
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Endpoint url imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Endpoint url imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: This is NOT a listening internal delivery channel imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] TransportLogger Init....
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] TransportProperties.TransportProperties():smtp.receiver.user=IDropshipTest;smtp.receiver.polling_interval=60;channelId=CHANNEL_uGzsvLy-5972197188599763240;[email protected];user=IDropshipTest;internal=false;smtp.receiver.password=******;polling_interval=60;smtp.receiver.protocol=imap;password=******;eMail-server=IMAP;host=abcapp1.abc.com;
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/FoamCraft url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/JoyCarpets url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/JoyCarpets/OrderResults url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Added new endpoint.
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = imap://[email protected] url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Exit
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] SMTPReceiver.init() started ....
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: handleUpdateChannelEvent: Exit
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: processEvents: Exit
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.setPollingInterval: polling time 60
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] SMTPReceiver.init() completed.
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] [IPT_SmtpRecPollingStatus] IMAPMonitor is up polling at 60 sec interval ...
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run shutdown is false, continuing
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Total number of messages = 2
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of new messages =0
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of unread messages =0
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of messages to be processed by IMAPMonitor = 2
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Converting message ...
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Message Type = BINARY
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Importance - High
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Subject - Inventory Quantity On Hand Update for 266219 as of 20130318 at 18:54
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Auto-Submitted - auto-generated
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers To - [email protected]
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Message-ID - <[email protected]>
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Sender - [email protected]
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Date - Mon, 18 Mar 2013 18:54:35 -0500
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers X-MIMETrack - Serialize by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at[[
    03/18/2013 19:03:33
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers MIME-Version - 1.0
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-type - multipart/mixed; [[
         Boundary="0__=09BBF1A1DF10DC2F8f9e8a93df938690918c09BBF1A1DF10DC2F"
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-Disposition - inline
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: MultiPart Message
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.556-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.saveAttachment(): PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+DQo8SW52ZW50b3J5VXBkYXRl[[
    IHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiDQp4
    c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly93d3cuZXhhbXBsZS5vcmcgSW52ZW50b3J5VXBkYXRl
    LnhzZCINCnhtbG5zPSJodHRwOi8vd3d3LmV4YW1wbGUub3JnIj4NCjxEYXRlPjIwMTMtMDMtMTg8
    L0RhdGU+DQo8VGltZT4xODo1NDo0NDwvVGltZT4NCjxUeXBlPiBGdWxsIDwvVHlwZT4NCjxWZW5k
    b3JJRD4yNjYyMTk8L1ZlbmRvcklEPg0KPEl0ZW0+DQo8U2t1PjQ8L1NrdT4NCjxRdWFudGl0eT4w
    PC9RdWFudGl0eT4NCjxDb3N0PjE1LjU8L0Nvc3Q+DQo8TmV3Q29zdD4xNS41PC9OZXdDb3N0Pg0K
    PE5ld0Nvc3RFZmZEYXRlPjIwMTMtMDMtMTg8L05ld0Nvc3RFZmZEYXRlPg0KPFN0YXR1cz4NCjxT
    Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)

    Thanks Anuj,
    After setting the property, I am no longer receiving the error, however, still fails with a different error, "Exception occurs in conversion from mail to TransportMessage. Please make sure the message sent is in correct format." and "TransportMessage cannot be created from mail. Skip this mail."
    The error appears after / while, executing, IMAPMonitor.saveAttachment():
    Is this a problem with the attachment or the email?
    here is the log,
    [2013-03-19T09:16:23.264-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run(): IMAPMonitor goes to sleep for 60 secs ...
    [2013-03-19T09:17:23.266-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run: wake up. shutdown_ = false
    [2013-03-19T09:17:23.266-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run shutdown is false, continuing
    [2013-03-19T09:17:23.313-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Total number of messages = 1
    [2013-03-19T09:17:23.313-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of new messages =0
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of unread messages =0
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of messages to be processed by IMAPMonitor = 1
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Converting message ...
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Message Type = BINARY
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Subject - Inventory Quantity On Hand Update for 266219 as of 20130319 at 09:07
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers To - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Message-ID - <[email protected]main>
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Date - Tue, 19 Mar 2013 09:07:29 -0500
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Sender - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers From - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-type - multipart/mixed; [[
         Boundary="0__=09BBF1A0DFDE15CA8f9e8a93df938690918c09BBF1A0DFDE15CA"
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-Disposition - inline
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers MIME-Version - 1.0
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Auto-Submitted - auto-generated
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers X-MIMETrack - Itemize by Agent Manager on abcAPP1/abc(Release 8.5.1|September 28, 2009) at[[
    03/19/2013 09:07:29,CD-MIME by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at
    03/19/2013 09:17:21,CD-MIME complete at 03/19/2013 09:17:21,Itemize by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at
    03/19/2013 09:17:22
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: MultiPart Message
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.saveAttachment(): AttachDir=C:\Oracle\Middleware\home_11gR1\user_projects\domains\mysoa_domain\servers\AdminServer\AttachmentHandler*
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [ERROR] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [APP: soa-infra] [IPT_SmtpRecConversionError] Exception occurs in conversion from mail to TransportMessage. Please make sure the message sent is in correct format.*
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: TransportMessage cannot be created from mail. Skip this mail.*
    *[2013-03-19T09:17:23.579-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run(): IMAPMonitor goes to sleep for 60 secs ...*
    Thanks,
    Venkatesh

  • Inbound Processing with reference to user defined Message type

    Respected Readers,
    I have created a segment with fields
    Matnr
    mbrsh
    mtart
    vpsta
    maktx
    meins
    matkl(Total 7 fields)
    I have created a idoc also and a message type and assign the idoc with message type.
    Now i have set the communication partners also and created the distribution model with my message type and distributed also to the reciver side.
    Now as it is not the standard message type like MATMAS so we cannot use the tcode BD10 to send the material.Instead of it i have to write the program to create the idoc for sending it.
    So i have created the program for the generation of IDOC.
    Upto here picture is clear.
    In the case of Inbound in standard we use the tcode BD11 to get material but same thing as we are not using the Standard Message type we have to create our program.
    Now in this case i have written a function module and that function module is attached to the process code and process code is attached to the message type and message type is attached to the partner profile.
    i have done the assignments in we57 and bd51 also.
    Now idoc is created in the inbound side with status 70.
    but i am not getting how to upload this data in standard tables Mara and Makt.
    So that if i go to tcode MM02 and give the respective Matnr ,it should display that material.
    First tell me what i have done is the right procedure or i have to make somechanges somewhere .
    Secondly if you please give me the function module code for inbound processing to upload the data in this standard table( mara ,makt)  so that material is created in the reciver side also.i will be very thankful to you.
    I am only using seven fields in creating the material.
    Please kindly send your answers and not links .
    Thanks

    i have done the same thing and used same parameter in import ,export ,tables and exception tab.
    i have written some code also .
    But i am not getting the code to upload the data in the standard tables so that material should be get created automatically as soon as the data get uploaded
    in tables.
    Somewhere i have read that you have to use the BDC concept Call transaction method to upload the data.
    But how to use the BDC code in  Function module , i am not getting.
    Please can you send any example of code for this task.

  • ABAP Objects and table processing (with logical databases)

    I have a report that is written right now using procedural abap and a logical database.  The report is structured follows (high level):
    start-of-selection.
    get pernr.
      perform get_it0001 using wtab.
      perform get_it0002 using wtab.
      perform get_it0003 using wtab.
      append wtab to itab.
    end-of-selection.
      call function 'reuse_alv_grid_display'
        exporting
          i_structure_name       = 'itabstructure'
        tables
          t_outtab               = itab.
    So basically I'm going through a bunch of personnel numbers, getting a few infotypes and outputting to ALV.  I don't see where ABAP Objects is going to help me for this particular program. 
    Can somebody show me where OO ABAP would make this easier?  Does it even make sense to use OO when you're processing with a logical database?  (Not just PNP, but any logical database in general).
    Thanks in advance.

    Hello Lee
    I assume that the routines GET_ITnnnn are written by yourself. For reading infotypes ABAP Objects provides us with same very helpful classes as shown below:
    * define data
      DATA:
        gif_employee      type ref to if_pt_employee,
        go_employee       type ref to cl_pt_employee,
        gt_infotypes      TYPE tim_tmw_itlist_tab,
        go_control        TYPE REF TO if_pt_td_control,
        go_data           TYPE REF TO if_pt_td_base,
        go_pnnnn          TYPE REF TO if_pt_td_itnnnn,
        gt_p0001          TYPE TIM_P0001_TAB,
        gt_p0002          TYPE TIM_P0002_TAB,
        gt_p0003          TYPE TIM_P0003_TAB.
    start-of-selection.
    GET pernr.
    <b>* Create employee instance</b>
      gif_employee = cl_pt_employee=>get_employee( pernr ).
      go_employee ?= gif_employee.
    <b>* Get master infotypes (0001, 0002)</b>
      CALL METHOD go_employee->get_master_data
        EXPORTING
          im_begda = id_fromdate
          im_endda = id_todate
        IMPORTING
    *      EX_I0000 =
          EX_I0001 = gt_p0001
          EX_I0002 = gt_p0002
    *      EX_I0007 =
    *      EX_I0008 =
    <b>* Append all other required infotypes to itab</b>
      APPEND '0003' TO gt_infotypes.
      CALL METHOD go_employee->get_infotypes
        EXPORTING
          i_itlist      = gt_infotypes
          i_fromdate    = id_fromdate  " start date
          i_todate      = id_todate    " end date
    *      I_FILTER      =
          i_noauthcheck = 'X'
        IMPORTING
          e_result      = gt_infty_request
          e_retcd       = gd_retcd.
    * Please see documentation of parameter e_retcd...
      LOOP AT gt_infty_request INTO go_control.
        go_data = go_control->data.  <b>" get data object</b>
    *   Casting
        TRY.
            go_pnnnn ?= go_data.
          CATCH cx_sy_move_cast_error.
            CONTINUE.
        ENDTRY.
    <b>*   Convert infotype (semi-transparent -> transparent)</b>
        CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = lo_pnnnn->prelp
          IMPORTING
            pnnnn = gs_p0003.
        APPEND gs_p0027 TO gt_p0003.
      ENDLOOP.
    The class CL_PT_EMPLOYEE provides us already with very easy access to so-called master infotypes (000, 0001, 0002, 0007 and 0008). All other infotypes can be read using method GET_INFOTYPES.
    Using these classes we have a very convenient and standardized way of accessing all kinds of infotypes.
    Regards
      Uwe

  • Error occured when sending mail with PDF attachment

    Dear Experts
    When i trigger email through SMTP server with PDF attachment using application server 10g , i got following error :
    REP-50159: Executed successfully but there were some errors when distribute the output
    i am using web.show_document utility
    str1:='http://erp.ruchi.com:7777/reports/rwservlet?destype=mail'||'&desname='||c1rec.hist_email||'&from=[email protected]'||'&subject=Your Payslip for Month '||to_char(c1rec.tran_month,'Mon-YYYY')||'&desformat=PDF&server=rep_erp_bi&report=/asdeploy/webutil/pay/reports/payslip.rdf&userid=qwqwqw/aasasas@DIAMOND'||'&COMPANY='||:parameter.para_comp_code||'&LOCATION='||:parameter.para_loc_code||'&MONTH='||to_char(:sdate,'MM/YYYY')||'&ECODE='||c1rec.tran_ecode;
    WEB.SHOW_DOCUMENT(str1,'_SELF');
    previously i had successfully using this utility but now i am facing above error
    Pl suggest
    regards
    shailesh

    Dear Experts
    I already configured application server configuration file with specifying SMTP mail server IP in pluginParam parameter
    <pluginParam name="mailServer">202.157.161.76</pluginParam>
    <property name="enableSSL" value="no"/>
    <property name="mailUserName" value="%[email protected]%"/>
    <property name="mailPassword" value="%soyacl#123%"/>
    what is the issue
    Pl clarify
    Please reply it's urgent

  • Sending UTL_SMTP mail with Multiple attachment

    Hi,
    My Environment ----> Oracle Database 11g r1 on Windows 2003 Server (64Bit).
    The below script i used for sending mail with single attachment now i am trying to send mail with multiple attachment please tell me how to achieve this
    DECLARE
    /*LOB operation related varriables */
    v_src_loc BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT.LOG');
    l_buffer RAW(54);
    l_amount BINARY_INTEGER := 54;
    l_pos INTEGER := 1;
    l_blob BLOB := EMPTY_BLOB;
    l_blob_len INTEGER;
    v_amount INTEGER;
    /*UTL_SMTP related varriavles. */
    v_connection_handle UTL_SMTP.CONNECTION;
    v_from_email_address VARCHAR2(30) := '[email protected]';
    v_to_email_address VARCHAR2(30) := '[email protected]';
    v_smtp_host VARCHAR2(30) := 'MAIL.EXPORT.COM'; --My mail server, replace it with yours.
    v_subject VARCHAR2(30) := 'MULTIPLE Attachment Test';
    l_message VARCHAR2(200) := 'TEST Mail for Multiple Attachment';
    /* This send_header procedure is written in the documentation */
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    pi_name || ': ' || pi_header || UTL_TCP.CRLF);
    END;
    BEGIN
    /*Preparing the LOB from file for attachment. */
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    l_blob_len := DBMS_LOB.getlength(l_blob);
    /*UTL_SMTP related coding. */
    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
    UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
    UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
    UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
    UTL_SMTP.OPEN_DATA(v_connection_handle);
    send_header('From', '"Sender"');
    send_header('To', '"Recipient"');
    send_header('Subject', v_subject);
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'MIME-Version: 1.0' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: text/plain;' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' charset=US-ASCII' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Close Email
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    RAISE;
    END;
    Thank you
    Shan

    Hi Saubhik
    Thanks for your reply, below script i used to send mail with multiple attachments, plsql code is executing without any error messages and i am also able to receive mail with the multiple attachment.
    i used your code which u posted in OTN then i changed little bit as per my need, output is ok.but the problem is if i want to add one more file then i have to add more varaiables in the code. i want to make the code which i can add more attachments without adding more varaiables i don't know the way to do this. can u please give me some hints.
    Thanks for your help
    Shan
    Script Used:
    DECLARE
    /*LOB operation related varriables01 */
    v_src_loc BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT.LOG');
    l_buffer RAW(54);
    l_amount BINARY_INTEGER := 54;
    l_pos INTEGER := 1;
    l_blob BLOB := EMPTY_BLOB;
    l_blob_len INTEGER;
    v_amount INTEGER;
    /*LOB operation related varriables02 */
    v_src_loc2 BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT1.LOG');
    l_buffer2 RAW(54);
    l_amount2 BINARY_INTEGER := 54;
    l_pos2 INTEGER := 1;
    l_blob2 BLOB := EMPTY_BLOB;
    l_blob_len2 INTEGER;
    v_amount2 INTEGER;
    /*UTL_SMTP related varriavles. */
    v_connection_handle UTL_SMTP.CONNECTION;
    v_from_email_address VARCHAR2(30) := '[email protected]';
    v_to_email_address VARCHAR2(30) := '[email protected]';
    v_smtp_host VARCHAR2(30) := 'MAIL.EXPORT.COM'; --My mail server, replace it with yours.
    v_subject VARCHAR2(30) := 'MULTIPLE Attachment Test';
    l_message VARCHAR2(200) := 'TEST Mail for Multiple Attachment';
    /* This send_header procedure is written in the documentation */
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    pi_name || ': ' || pi_header || UTL_TCP.CRLF);
    END;
    BEGIN
    /*Preparing the LOB from file for attachment01. */
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    l_blob_len := DBMS_LOB.getlength(l_blob);
    /*Preparing the LOB from file for attachment02. */
    DBMS_LOB.OPEN(v_src_loc2, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob2, TRUE); --Create temporary LOB to store the file.
    v_amount2 := DBMS_LOB.GETLENGTH(v_src_loc2); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob2, v_src_loc2, v_amount2); -- Loading from file into temporary LOB
    l_blob_len2 := DBMS_LOB.getlength(l_blob2);
    /*UTL_SMTP related coding. */
    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
    UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
    UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
    UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
    UTL_SMTP.OPEN_DATA(v_connection_handle);
    send_header('From', '"Sender"');
    send_header('To', '"Recipient"');
    send_header('Subject', v_subject);
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'MIME-Version: 1.0' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: text/plain;' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' charset=US-ASCII' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment01
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment02
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export1.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos2 < l_blob_len2 LOOP
    DBMS_LOB.READ(l_blob2, l_amount2, l_pos2, l_buffer2);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer2));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer2 := NULL;
    l_pos2 := l_pos2 + l_amount2;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Close Email
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    DBMS_LOB.FREETEMPORARY(l_blob2);
    DBMS_LOB.FILECLOSE(v_src_loc2);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    DBMS_LOB.FREETEMPORARY(l_blob2);
    DBMS_LOB.FILECLOSE(v_src_loc2);
    RAISE;
    END;
    PL/SQL procedure successfully completed.
    Edited by: SHAN2009 on May 11, 2011 1:05 PM

Maybe you are looking for