Quotations PCUI - Send Attachements with the Quotation-Smarforms

Hi Experts,
I've got a question concerning smartforms and attachments in the PCUI - Environment.
We've created a smartform in the quotation application and we starting sending this smarftorm with actions, that means if the Quotation is ready to send, we can choose sending via fax, e-mail or print it out with the actions. This works fine, but now we have the requirement to send all documents (normaly pdf - documents) of the quotation directly with the quotation-smartform (product-datasheet for example). Is this possible, do you have any experience in this topic?
We use CRM 5.0 - and Sapnetweaver 2004s portal...
regards
marc

Hello,
You can read the attachment of the Quatotation using the CRM document library functions and extract the content of the documents. After this this can be put as part of the smart form.
Starting point will to explore CRM document library CLDocument should give you some hints.
Raj

Similar Messages

  • When I send or receive e-mails, the icon showing that there is an attachment with the e-mail may or may not appear. I have spoken to Apple and they cannot fix.

    When I send or receive e-mails, the icon showing that there is an attachment with the e-mail may or may not appear. I have contacted Apple and they do not have a solution for this issue. This is a huge problem for me.

    No, the senders are in most case sending from corporate servers which are almost certainly not Mac based. Also, remember this happens when I send or receive. So if I send something with an attachment, the attachment will go through, but the sent box will not show the paper clip icon so that I can distinguish the emails sent with attachments versus the emails sent without attachments. I receive the attachments as well, but again the paper clip icon does not show up so that I can distinguish the emails that I have received that contain attachments. Recipients of my e-mails have complianed that when they receive an attachment from me they do not see the paper clip icon which alerts them to the fact that the email contains an attachment.

  • Send attachment with maximum characters

    I need to extract data from a table into a .csv and then send that .csv as an attachment.
    I am converting the data to csv and assigning it to clob variable but table has huge data therefore procedure gets error out after around 7000 characters with
    ORA-06502: PL/SQL: numeric or value error.
    Please suggest a way to send attachment with maximum characters.
    With the below sample code i am able to send atttachement upto 7000 characters.
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    v_message clob;
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    ' name="excel.csv"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="excel.csv"'|| crlf ||
    crlf ||
    v_message|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    Thanks,

    Thanks for your help Billy.
    I am able to segment the data but I am not getting any attachment instead segmented data is showing in the mail body.
    Can you please have a look and let me where it is going wrong?
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test mail';
    v_Mail_Host VARCHAR2(30) := 'localhost';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    v_message clob;
    message clob;
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    v_message := 'date: ' || to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS')||chr(10)||
    'from: '||v_From|| chr(10) ||
    'to: '||v_Recipient ||chr(10)||
    'subject: '||v_Subject || chr(10) || chr(10);
    utl_smtp.open_data (v_Mail_Conn);
    utl_smtp.write_data(v_Mail_Conn , v_message );
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'MIME-Version: 1.0' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,' boundary="-----SECBOUND"' ||crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,crlf);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, 'Please see the attachments' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
    -- Mail Attachment
    utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND' || crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
    utl_smtp.write_data(v_Mail_Conn,'name="excel.csv"' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Transfer_Encoding: 8bit' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Disposition: attachment;' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'filename="excel.csv"' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,crlf);
    message := 'OBJECT_TYPE, OBJECT_FOREIGNKEY, OPERATION, EVENT_ID, STATUS_ID, NUM_BLOCKED, MODIFIED_DATE, INT_UPDATEEVENT_FMWID, ERROR_DESCRIPTION';
    utl_smtp.write_data(v_Mail_Conn , message );
    for rec in (
    select object_type, object_foreignkey, operation, x.event_id, x.status_id, num_blocked,
    e.modified_date, e.INT_UPDATEEVENT_FMWID, replace(substr(e.error_description,1,100),',',' ') error_description
    from (
    select b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id, count(1) num_blocked
    from EVENT e
    INNER JOIN TRANSACTION t
    ON e.transaction_id = t.transaction_id
    inner join transaction_dependency d
    on t.transaction_id = d.transaction_id
    inner join transaction_block b
    on t.transaction_id = b.transaction_id
    inner join transaction_block b2
    on d.transaction_id <> b2.transaction_id
    and d.object_type = b2.object_type
    and d.object_foreignkey = b2.object_foreignkey
    inner join transaction t2
    on b2.transaction_id = t2.transaction_id
    and t.source_type = t2.source_type
    inner join event e2
    on t2.transaction_id = e2.transaction_id
    where t.source_type = 'CRM_OD_To_OP'
    and e.created_date >=(sysdate - 1)
    and e.status_id <1000
    and e2.status_id <1000
    group by b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id
    ) x
    inner join event e
    on x.event_id = e.event_id
    and e.status_id = 900
    order by num_blocked desc, object_type, object_foreignkey
    ) loop
    message := crlf || rec.object_type||','||rec.object_foreignkey||','|| rec.operation|| ','|| rec.event_id||
    ','||rec.status_id||','||rec.num_blocked||','||rec.modified_date||','||rec.INT_UPDATEEVENT_FMWID||','||rec.error_description;
    utl_smtp.write_data(v_Mail_Conn , message );
    end loop;
    utl_smtp.write_data(v_Mail_Conn,crlf);
    utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND');
    utl_smtp.close_data(v_mail_conn);
    utl_smtp.quit( v_mail_conn );
    EXCEPTION
    WHEN others then
    dbms_output.put_line('error ' || sqlerrm);
    END;

  • Can we send attachements with Idoc?

    Hi ,
    Can we send attachements with Idoc?

    Hi,
    1. in standard you cannot
    2. you could however send it in a text field
    and then combine in adapter or java proxy
    on the other hand abap proxies work with attachments
    in standard - check out my blog:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Getting: Unable to send attachment with Mail Drop

    Mail Drop is not working for me, I always get error message while trying to send.
    Here is what happens:
    -I compose a message that includes a large attachment
    -I click send
    -I get the message "Unable to send attachment with Mail Drop" for a few seconds
    -My message is not sent and it goes into the Outbox folder.
    Configuration:
    OS X 10.10 Yosemite
    Mail -> Preferences -> Accounts -> Advanced. The option "Send large attachments with Mail Drop" is selected.

    I had the exact same problem.  I finally figured out what was wrong.  I believe you must have iCloud Drive turned on in System Preferences AND you also must allow mail to store document in iCloud Drive which you can check by clicking the "Options..." button in the preference pane of iCloud Drive. As you can see below.

  • Sending attachment with different name

    Hi,
    is it possible to send attachment with different name with javaMail?
    If possible, is there a sample code to do it?
    Thanks.
    Edited by: user1071181 on Aug 6, 2011 2:14 PM

    Hi,
    I listed some of my code at below.
    But i did not find attachFile method for messageBodyPart class.          
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setDataHandler(new DataHandler(new MemoryDataSource(....getPDFObject())));
    messageBodyPart.attachFile("abc.pdf");
    messageBodyPart.setFileName("abc_2011_08_07.pdf");
    messageBodyPart.setHeader("Content-Type", "application/pdf");
    multipart.addBodyPart(messageBodyPart);
    message.setContent(multipart);

  • What kind of information of SIM attached with the device are we able to use on developing application?

    What kind of information of SIM attached with the device are we able to use on developing application?
    Can we get MSISDN from SIM?
    Authentication number???

    Hi
    XI has two engines that are ABAP engine called ABAP stack and JAVA engine calles JAVA stack.
    Some components are executed in ABAP stack and some components are executed in JAVA stack.
    ABAP stack -
    > Only Integration Engine(IE) and Business Process Engine(BPE) are executed in the ABAP stack
    JAVA stack -
    > Remaining all(IR, ID, Adapter Engine, RTWB) are executed in the JAVA stack.
    More informations about SAP NetWeaver Application Server:
    http://help.sap.com/saphelp_nw04s/helpdata/en/84/54953fc405330ee10000000a114084/frameset.htm
    More informations about XI components:
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
    Many thanks
    Kiran

  • Customization/Filteration (User LOV,User Type)  LOV attached with the role

    Dear All
    I want to Filter both Lov's attached with the custom attribute having Role type in Oracle Workflow.For example I want to restrict only Oracle Application User's appear on user type LOV and on second column i want to display user_id in Lov
    Best Regards
    Edited by: Muhammad Danish Younus on Jun 13, 2011 5:28 AM

    if I use Validate From List property, the form is displaying the LOV everytime I query the block eventhough the correct value is populated
    There is something wrong with your LOV or with the way you populate your block. An LOV should not pop up when you query data into the block.

  • Need to send an attachment with the mail to the distribution list

    Hi all,
    How do I send an <b>attachment</b> with the e-mail to a distribution list?
    I am using the FMs <b>SO_DLI_EXPAND</b> and <b>SO_OBJECT_SEND</b> to expand the distribution list and send mail to the distribution list respectively.I am getting the contents of the file in the email that is being sent. The file is being extracted from UNIX.
    However, the contents of the file has to go as an attachment.
    Please assist.
    Thanks and regards,
    Anishur

    Hello,
    You can do it like this...using SapScript:
    REPORT YMAIL.
    DATA: ITCPO LIKE ITCPO,
    TAB_LINES LIKE SY-TABIX.
    Variables for EMAIL functionality
    DATA: MAILDATA LIKE SODOCCHGI1.
    DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
    DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    PERFORM SEND_FORM_VIA_EMAIL.
    FORM SEND_FORM_VIA_EMAIL *
    FORM SEND_FORM_VIA_EMAIL.
    CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    Creation of the document to be sent File Name
    MAILDATA-OBJ_NAME = 'TEST'.
    Mail Subject
    MAILDATA-OBJ_DESCR = 'Subject'.
    Mail Contents
    MAILTXT-LINE = 'Here is your file, would you check it?'.
    APPEND MAILTXT.
    Prepare Packing List
    PERFORM PREPARE_PACKING_LIST.
    BREAK gpulido.
    Set recipient - email address here!!!
    <b>*MAILREC-RECEIVER = '[email protected]'.
    MAILREC-RECEIVER = '[email protected]'.
    MAILREC-REC_TYPE = 'U'.</b>
    APPEND MAILREC.
    Set recipient - email address here!!!
    *MAILREC-RECEIVER = 'BGIRALDO'.
    *MAILREC-REC_TYPE = 'B'.
    *APPEND MAILREC.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = MAILDATA
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = MAILPACK
    OBJECT_HEADER = MAILHEAD
    CONTENTS_BIN = MAILBIN
    CONTENTS_TXT = MAILTXT
    RECEIVERS = MAILREC
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    submit rsconn01 with mode = 'INT' and return.
    CASE SY-SUBRC.
    WHEN 0.
    WRITE: / 'Result of the send process:'.
    LOOP AT MAILREC.
    WRITE: / mailrec-RECEIVER(48), ':'.
    IF mailrec-RETRN_CODE = 0.
    WRITE 'sent successfully'.
    ELSE.
    WRITE 'not sent'.
    ENDIF.
    ENDLOOP.
    WHEN 1.
    WRITE: / 'no authorization to send to the specified number of'
    WHEN 2.
    WRITE: / 'document could not be sent to any of the recipients!'.
    WHEN 4.
    WRITE: / 'no authorization to send !'.
    WHEN OTHERS.
    WRITE: / 'error occurred during sending !'.
    ENDCASE.
    ENDFORM.
    Form PREPARE_PACKING_LIST
    FORM PREPARE_PACKING_LIST.
    CLEAR: MAILPACK, MAILBIN, MAILHEAD.
    REFRESH: MAILPACK, MAILBIN, MAILHEAD.
    DESCRIBE TABLE MAILTXT LINES TAB_LINES.
    READ TABLE MAILTXT INDEX TAB_LINES.
    MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
    Creation of the entry for the compressed document
    CLEAR MAILPACK-TRANSF_BIN.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 0.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'RAW'.
    APPEND MAILPACK.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form. just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
    PERFORM GET_OTF_CODE.
    LOOP AT SOLISTI1.
    MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
    APPEND MAILBIN.
    ENDLOOP.
    DESCRIBE TABLE MAILBIN LINES TAB_LINES.
    MAILHEAD = 'TEST.OTF'.
    APPEND MAILHEAD.
    Creation of the entry for the compressed attachment
    MAILPACK-TRANSF_BIN = 'X'.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 1.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'OTF'.
    MAILPACK-OBJ_NAME = 'TEST'.
    MAILPACK-OBJ_DESCR = 'Subject'.
    MAILPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND MAILPACK.
    ENDFORM.
    Form GET_OTF_CODE
    FORM GET_OTF_CODE.
    DATA: BEGIN OF OTF OCCURS 0.
    INCLUDE STRUCTURE ITCOO .
    DATA: END OF OTF.
    DATA: ITCPO LIKE ITCPO.
    DATA: ITCPP LIKE ITCPP.
    CLEAR ITCPO.
    ITCPO-TDGETOTF = 'X'.
    Start writing OTF code
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    FORM = 'YSEND_MAIL'
    LANGUAGE = SY-LANGU
    OPTIONS = ITCPO
    DIALOG = ' '
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'START_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    WINDOW = 'MAIN'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    Close up Form and get OTF code
    CALL FUNCTION 'END_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    MOVE-CORRESPONDING ITCPO TO ITCPP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = ITCPP
    TABLES
    OTFDATA = OTF
    EXCEPTIONS
    OTHERS = 1.
    Move OTF code to structure SOLI form email
    CLEAR SOLISTI1. REFRESH SOLISTI1.
    LOOP AT OTF.
    SOLISTI1-LINE = OTF.
    APPEND SOLISTI1.
    ENDLOOP.
    Reward points if helpful.
    Thanks
    Message was edited by:
            Pattan Naveen

  • Mail.app: I can't send attachment with "space" in filename

    Hi.
    I've this kind of problem. I think it is Mail.app problem. The mail isn't sent if the attachment's filename contains "space" (eg: "file name.pdf").
    The same email is sent finw if I use Thunderbird with the same SMTP server (Leopard Server) and from the same machine.
    If the recipinets in local (not relayed over internet) it works well. Otherwise the SMTP server tell me it have lost connection whith relay server (ISP SMTP server).
    I've used Lotus domino Server as SMTP server with the same result.
    If I cut the "space" (' ') in the attachment's filename Mail.app works fine as well.
    HELP!
    thanks.
    P.S.: sorry for my english
    Message was edited by: odolo
    Message was edited by: odolo

    There is a bug which causes the filenames of attachments with a space or an accented character in the name to have characters appended to the filename extension; it may be that it also sometimes stops the attachment from sending. But other people have reported problems with mails with attachments not sending regardless of the filename, so I think the next software update will see some fixes.
    Meanwhile, don't use spaces!
    AK

  • Problem send attachment with mail

    Hello,
    I'm coding a program which sends a mail with attachment to an external mail address. The system creates the mail and the attachment, bu the content of the attachment isn 't correct.
    this is my code
    REPORT  Z_SEND_MAIL.
    data: IS_DOCDATA type SODOCCHGI1,
    IS_RECEIVERS type SOMLRECI1,
    IS_RECEIVERS_COPY type SOMLRECI1,
    IT_RECEIVERS type table of SOMLRECI1,
    IS_CONTENT type SOLISTI1,
    IT_CONTENT type table of SOLISTI1,
    *500369789+
    l_txt(255) type c,
    lt_objpack TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
    lt_objhead TYPE TABLE OF solisti1 WITH HEADER LINE,
    lt_objtxt TYPE TABLE OF solisti1 WITH HEADER LINE,
    l_tab_lines TYPE i,
    l_att_type LIKE soodk-objtp.
    *500369789+
    IS_DOCDATA-OBJ_NAME = 'MAIL'.
    IS_DOCDATA-PRIORITY = 5.
    IS_DOCDATA-OBJ_LANGU = SY-LANGU.
    IS_DOCDATA-NO_CHANGE = 'X'.
    IS_DOCDATA-OBJ_DESCR = SY-CPROG.
    clear : IS_CONTENT, l_txt. "500369789+
    move '123456789' to l_txt. "500369789+
    * move IS_MESSAGE-LINE to IS_CONTENT-LINE. "500369789-
    move l_txt to IS_CONTENT-LINE. "500369789+
    append IS_CONTENT to IT_CONTENT.
    *add receiver
    IS_RECEIVERS-RECEIVER = '[email protected]'.
    IS_RECEIVERS-REC_TYPE = 'U'.
    append IS_RECEIVERS to IT_RECEIVERS.
    lt_objhead-line = 'Test mail'.
    append lt_objhead.
    DESCRIBE TABLE lt_objhead LINES l_tab_lines.
    CLEAR lt_objpack-transf_bin.
    lt_objpack-doc_size = STRLEN( lt_objhead ).
    lt_objpack-head_start = 1.
    lt_objpack-head_num = 1.
    lt_objpack-body_start = 1.
    lt_objpack-body_num = 1.
    lt_objpack-doc_type = 'RAW'.
    APPEND lt_objpack.
    l_att_type = 'TXT'.
    DESCRIBE TABLE it_content LINES l_tab_lines.
    READ TABLE it_content into is_content INDEX l_tab_lines.
    lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255.
    lt_objpack-doc_size = lt_objpack-doc_size + STRLEN( is_content ).
    lt_objpack-transf_bin = 'X'.
    lt_objpack-head_start = 1.
    lt_objpack-head_num = 2.
    lt_objpack-body_start = 1.
    lt_objpack-body_num = l_tab_lines.
    lt_objpack-doc_type = l_att_type.
    lt_objpack-obj_name = 'ATTACHMENT'.
    concatenate 'Test' SY-DATUM+6(2) SY-DATUM+4(2) into
    lt_objpack-obj_descr. "#EC *
    APPEND lt_objpack.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = IS_DOCDATA
    commit_work = 'X'
    TABLES
    packing_list = lt_objpack
    * object_header = lt_objhead
    contents_txt = lt_objhead
    contents_bin = it_content
    receivers = it_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.
    The attachment is a TXT, the content should be '123456789', but it is '1 2 3 4'.
    Does anyone has an idea why he does this ?
    thanks !

    solved by a colleague

  • Xpath error while trying to send attachment with email

    Hi,
    I was trying to execute the BPEL sample - SendingAttachementWithEmail, as given in the tutorials.
    I had mapped the 'contentBody' in attachment[2] to
    ora:readFile(bpws:getVariableData('inputVariable','payload',
    '/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI')
    I have a file called "SOA.txt" in my C:\ (C drive).
    I specified the following details in my 'initiate' screen
    to - jcooper
    subject - sample email
    body - testing how to send email with attachment
    attachmentName - SOA.txt
    attachmentMimeType - multipart/mixed
    attachmentURI - file:C:/SOA.txt
    I got the following error while executing the process, can any one please tell me where I am going wrong. Are the values I am passing correct?
    Error
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile(bpws:getVariableData("inputVariable", "payload", "/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI"))", the reason is C:\SOA.txt (The system cannot find the file specified).
    Please verify the xpath query.
    What could be the problem with the xpath query.

    Thanks for your suggestions, but it still does not work.
    The following is the error I get when I enter
    file:///c:/SOA.txt as my attachmentURI.
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile(bpws:getVariableData("inputVariable", "payload", "/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI"))", the reason is c:\SOA.txt (The system cannot find the file specified).
    Please verify the xpath query.
    I followd the same steps as given in the tutorial 'SendEmailWithAttachment' available under the folder <BPEL_HOME>\integration\orabpel\samples\tutorials\SendEmailWithAttachment.

  • Problem sending attachements with gmail account on mail

    Hello:
    I have a lot of problems sending attachments with my gmail account using mail.
    1. Attachments are not big.
    2. I don't have the same problem with other non gmail accounts.
    3. When ever I have this problem I go to gamil.com and I am able to send the attachment with no problem.
    Any suggestions?
    Thanks

    No idea ?
    Nemrod

  • Problem in sending mail with the given code

    package booodrive;
    Some SMTP servers require a username and password authentication before you
    can use their Server for Sending mail. This is most common with couple
    of ISP's who provide SMTP Address to Send Mail.
    This Program gives any example on how to do SMTP Authentication
    (User and Password verification)
    This is a free source code and is provided as it is without any warranties and
    it can be used in any your code for free.
    Author : Sudhir Ancha
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
      To use this program, change values for the following three constants,
        SMTP_HOST_NAME -- Has your SMTP Host Name
        SMTP_AUTH_USER -- Has your SMTP Authentication UserName
        SMTP_AUTH_PWD  -- Has your SMTP Authentication Password
      Next change values for fields
      emailMsgTxt  -- Message Text for the Email
      emailSubjectTxt  -- Subject for email
      emailFromAddress -- Email Address whose name will appears as "from" address
      Next change value for "emailList".
      This String array has List of all Email Addresses to Email Email needs to be sent to.
      Next to run the program, execute it as follows,
      SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
      private static final String SMTP_HOST_NAME = "sample.com";
      private static final String SMTP_AUTH_USER = "demo";
      private static final String SMTP_AUTH_PWD  = "demo";
      private static final String emailMsgTxt      = "Online Order Confirmation Message. Also include the Tracking Number.";
      private static final String emailSubjectTxt  = "Order Confirmation Subject";
      private static final String emailFromAddress = "[email protected]";
      // Add List of Email address to who email needs to be sent to
      private static final String[] emailList = {"[email protected]"};
      public static void main(String args[]) throws Exception
        SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
        smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
        System.out.println("Sucessfully Sent mail to All Users");
      public void postMail( String recipients[ ], String subject,
                                String message , String from) throws MessagingException
        boolean debug = false;
         //Set the host smtp address
         Properties props = new Properties();
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
        Authenticator auth = new SMTPAuthenticator();
        Session session = Session.getDefaultInstance(props, auth);
        session.setDebug(debug);
        // create a message
        Message msg = new MimeMessage(session);
        // set the from and to address
        InternetAddress addressFrom = new InternetAddress(from);
        msg.setFrom(addressFrom);
        InternetAddress[] addressTo = new InternetAddress[recipients.length];
        for (int i = 0; i < recipients.length; i++)
            addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);
    package booodrive;
    public class Test {
         public static void main(String args[]){
              SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    I am not able to send mail using the above given codes. Can anyone please help?
    Rony
    Edited by: RonyFederer on Aug 10, 2008 9:04 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Your first step is to diagnose the problem.
    1. Does the code compile? If not, what error messages appear?
    2. Does the code run? If not, what error messages appear? What's in the stack trace?
    3. Does the code do what you expect it to do? If not, what are the differences?

  • How to use send attachment with workitem?

    Hi,
    I am invlolved in creation of workflow for Trip request.
    Whenever the request is rejected, I am using the CREATE method of SOFM business object to create a document for entering the rejection reason. I want this document to be sent as attachment along with next step of the workflow which is sent to the initiator to make changes in the request.
    I am able to create the document. But i am not able to see the document anywhere. Plz help me in this regard.
    Thanks in advance,
    Sivagami

    Therez a standard method which will pop up a window to enter text and save. This will go as attachment to the next step.

Maybe you are looking for