XI Attachment and main document MIME sequence

Hi All,
We are doing SRMXIARIBA PurchaseOrder Integration, everything works fine. Now we want to add a new feature to support attachments. So from SRM XI will be receiving MainXML and Attachment(s)(this can be any type like word, pdf, jpg etc). We are using Receiver SOAP adapter with option of keep attachments.
Now, the problem XI is sending Multipart MIME in sequence as below:
<b>
Attachment (WORD, PDF)
MainDocument (XML payload)</b>
when Ariba recives this payload it reads attachment as the first part and rejects the whole message because its not a main payload. And Ariba expects MIME
parts to be presented in sequence like below:
<b>MainDocument
Attachment</b>
Anybody know how to change the sequence of these mime parts. Are there any settings on the SOAP adapter? etc?
I have refered payload swap bean but I was not quite sure will that help.
Appreciate your help.
Thanks,
Laxman

Hi Stefan,
Before I ask question I have to thank you very much for your help on this issue- we are one problem away from the resolution.
For some reason in my case, its always putting attachment as the first part. We have fixed sequence issue by doing MOD on the SRM proxy implementation.
But after fixing this sequence issue we were still not able to post to ARIBA successfully, ARIBA support discovered that there was a minor problem in my mime message, after doing some manual changes to mime message support team can post the message successfully. the change they made is they added content-disposition statement in the message at the attachment part level. see below example - Manually a line in the part 2 shown below with bold-italics:<b> Now how can I alter the mime message at part level?</b>
multipart/related; boundary="----=_Part_0_14227847.1175266972987"; type="application/xml"; start="[email protected]"
2239
=_Part_0_14227847.1175266972987
Content-Type: application/xml
Content-ID: [email protected]
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE cXML SYSTEM 'http://xm
l.cxml.org/schemas/cXML/1.2.014/cXML.dtd'><cXML timestamp="2007-03-30T08:54:52-08:00" xml:lang="en-US" payloadID="17T2007-03-30T08:50:28-460CEBECE39933A0E1000000CC69380C">
</Classification></ItemDetail></ItemOut></OrderRequest></Request></cXML>
=_Part_0_14227847.1175266972987
Content-Type: text/plain
Content-ID: [email protected]
<u><i><b>Content-Disposition: attachment;      filename=EDS_PO_wAttachment_attachmentTxt.txt</b></i></u>
Sample file
=_Part_0_14227847.1175266972987--
Thanks,
Laxman
Message was edited by:
        Laxman  Molugu

Similar Messages

  • Find/replace window in Mac OS - how to attach to main document window?

    At work I use Windows and the find/replace window is part of the main document window. At home, I use Mac OS and the find/replace window is a separate floating window which is annoying because it means I'm constantly dragging it out of my way...is there a way to attach it to the the main document window on Mac ?

    It works!  Thank you.  The strange thing is, I already had a check mark on it, but I unchecked it and then rechecked it and it worked.
    BTW, I've not visited this forum for quite a while.  It was difficult to find my way to the InDesign Discussions.  There's so much stuff in between logging on to Adobe Forums and getting to this location.  I consider the changes a huge step backward.  I realize that you're probably not involved in it, but I hope someone who is sees this feedback about the forum layout.  Fortunately, it's only a one-time problem.  I've made a new bookmark for this forum.

  • In mail, my attachments, both photos and documents appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the message.  Thanks for your help, Karen.

    In mail, my attachments, both photos and documents, appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the main message????  Thanks for your help, Karen.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • In Pages 5 when I try to attach a pages document to an email it gives me 2 folders and 4 files ???  How does one email a pages document.

    How does one email a pages document? In pages 5 when I try to attach a pages document to a gmail email it gives me 2 folders and 4 other files to choose from. 

    Sounds like you are using Gmail.
    Pages 5 uses a zipped package of files as its format. 3rd party servers don't understand the format and show it as the component parts.
    Use Mail toenail the file or zip the .pages document before sending.
    Peter

  • How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    In addition to the last poster's suggestion  -  just so you know, it also depends on the email program the recipient uses as to how they will see any attachments - for instance, when I am using my Yahoo Mail, I am absolutely unable to view any attachment within the browser window - Yahoo forces me to download it; there is no way for me to check it (like a preview) to see if I want to download it or not.
    And, FWIW: the window shown in the screenshot does not show on my version of Mail 5.1 (which is the latest for 10.7.2); the only one similar shows when viewing a message received with an attachment, not while sending one. So that must be a different version.

  • I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    1) design for no wider than 600px (otherwise it may not fit in email clients).
    2) Slice up your newsletter design in segments for images and html areas with the slice tool.
    3) add the <a href="http://www.yourwebsite.com">my website</a> link in one of the html areas.
    4) export as generic html 4 code, and put the images in a separate folder.
    5) upload all the images to your website's server in a folder (you cannot embed images in an email newsletter - they must link to externally hosted images).
    6) change all the links in your html page to the ones that were loaded up on your server. For example, an image's source link would work out similar to this: <img src="http://www.yourwebsite.com/newsletter/image1.jpg" alt="alternate description of your image">
    7) open the newsletter with working external images in Chrome or Firefox. Select the entire page content (ctrl-a), and copy it (ctrl-c).
    8) create a new email in your mail client. Place the cursor in the body. Paste the newsletter (ctrl-v).
    9) send your newsletter to hundreds of recipients, and get blacklisted by several email servers. Receive warning messages from your own hosting provider not to spam other users' email accounts.
    10) realize this is too much of a hassle, and instead opt for a service such as MailChimp.
    (The result in (9) depends on whether you sent out your newletter only to acquaintances, or not. But even then you might be warned off.)
    Btw, many email clients turn off images in an email by default. You must provide the most important content as html, not as images.

  • My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    wyman41 wrote:
    She wrote her resume in Word.
    I don't have any problem attaching just a MS Word file in Mail. My process is pretty simple....with a message open I click the attach icon (paperclip) at the top of the message, then navigate to where the file is located and select it. I make sure I have the cursor at the bottom of the new message below my signature line. FWIW I use MS Word 2011.

  • Document attaching with Procurement document and Invoicing also

    Hello Experts,
    The query is to attach document with PR/PO, Invoice etc.We don't have DMS implemented in our system and we don't want to save these documents in SAP . The aim is that the attachment should be attached to these documents but is should be saved in a repository outside SAP because these attachments contain >70 pages (>100 sometimes in case on Invoicing). How can we achieve it?
    We have .Net and SharePoint in place. Can we use them for this purpose?
    Or if there is some other workaround to achieve the same.
    Thanks for four valuable suggestions.
    Saurabh

    Thanks for your response Jurgen.
    Though I have marked the discussion as answered yet I got few more points to ask from you,hope you understand that:
    Firstly,during document attachment ,can we disable option for 'Create attachment' and keep the option for URL enabled?Please suggest me the way for it..
    Also,perhaps in MM all transactions will not provide the options for linking document with URL or create attachment options,wherever necessary . Then which is the preferred way to deal with such transactions?
    Secondly, If I attach a document with this way (screen shot) then source and destination remains the same as shown below:
    Now, my query is " Is that possible the document is saved under a separate directory (like L drive) instead of the path shown in the screen shot (source and destination are same, I want a default store location with this where all such document will get stored). I hope you got what I am looking for..
    Thanks & regards
    Saurabh

  • History of document attachment and de-attachment (through CV01N)

    Hi experts,
    We have a requirement as under:
    User created a PR and attachment a document to it. Subsequently PO was created and material procured. Later the requisitioner refused to accept the material claiming that the material procured is not as per the requirement. Then purchaser claimed that we have procured the material as per the details available in attached PDF file in PR line item. When checked there was no document attached to said PR and line item.
    Now, please help in finding the history in PR document for attachment and de-attachment of document in PR through DMS tcode CV01N.
    Thanks in advance.

    ..When checked there was no document attached to said PR and line item...
    The document must exist.CV01n transaction is used purely for creation of a Document Info Record.A simpler approach to retrieve the created document would be via CV04n transaction meant for search.Herein,navigate to 'Object Links' tab,and under 'Purchase Req. Item' sub tab,key in the PR details and click 'Execute'.The relevant details should be available.
    Regards,
    Pradeepkumar Haragoldavar

  • I am unable to attach scanned documents or Pictures to eamils. The size of the scanned documents and the pictures are well below the 20MB limit. I can connect Exl and Word documents with not problem

    When trying to attach a scanned document or picture to and email, the process goes not forever and there is no end, it just keeps working and tries to attache these documents/pictures. In the lower left hand corner of the screen it says "waiting for mail. yahoo. com"

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • Why can't my iPad and iPhone read mime-attachment

    I have 3 iPhones, 2 iPads and 5 MACS in use throughout my company. One of our business contacts has sent emails to us that display in all the iPads and iPhones as a MIME Attachment and you cannot read the message, however on the MACS it appears as a normal email that you can read.
    Any suggestions as to how to read the email correctly on the iPhone and iPad?

    As you probably know, mime is an older format for xmitting e mail attachments.  Mostly unsed for the last 5 years.  There is one app in the store called Secure email reader that says it can read those attachments.  Give it a try!

  • Copy of attachement in Post with reference and recurring documents

    Hi Gurus,
    While using Post with reference and recurring documents, can we also copy the attachment from the source document?
    Please revert asap
    Thank You

    Hi,
    How you been able to create attachments for a recurring document at all?
    I  could not create any attachment.
    Miroslav

  • Attaching and Detaching Observers to a document, what is the  correct way?

    Hi,
    I came across below code snippet in many of the sample PLugins where Observer is being:
    Attached on the kAfterOpenDocSignalResponderService
    Detached on the on kBeforeCloseDocSignalResponderService
    Same DocRef is being used in both the cases but the Observer being referenced is new each time, so is it a correct way to do it? and Will it work?
    GTTxtEdtResponder::attachDetachStoryObserver(UIDRef storyUIDRef, bool16 bAttach)
      ErrorCode status = kFailure;
      do{
      // while we observe all stories (whether they are accessible or not), we only let accessible
      // stories affect the cache. See the observer implementation for this logic.
      InterfacePtr<IObserver> iGTTxtEdtObserver(storyUIDRef,IID_IGTTXTEDTSTORYOBSERVER);           //<--new reference created
      if (iGTTxtEdtObserver == nil){
      ASSERT_FAIL("GTTxtEdtResponder::attachDetachStoryObserver - no observer on story?");
      break;
      bAttach ? iGTTxtEdtObserver->AutoAttach() :iGTTxtEdtObserver->AutoDetach();
      status = kSuccess;
      }while (kFalse);
      return status;
    If you look closely, you can see that every time a detach is being called after attach, a new Observer reference is created.
    Is correct way to do it?

    Hello kapoor_aman27,
    with InterfacePtr you create a new reference to the observer not a new instance of the observer. The reference will be destroyed at the end of the function or code block. The instance of the observer will be destroyed if the reference Counter will be 0. So the instance of the observer is the same at attach and detach. The InterfacePtr (i.e. the reference to the observer) is temporary in each function.
    Markus

  • Sending Mail with attachment and preserving the order of attachment

    Hi Everyone!!!!!!
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.
    for i in (select case when user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;
    I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.
    Sorry for stuff essay and thanks in advance!!!!!!!!!!!

    >
    Please update your forum profile with a real handle instead of "974850".
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.Always post code using <tt>\...\</tt> tags as described in the FAQ.
    for i in (select case when  user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else  ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)                               
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.I see no code that attaches anything to email messages. What code is used to do this? Why are the files being written to the file system?

  • Storing MS-Word and PDF documents in database uploaded through APEX

    I want to allow users to upload MS-Word and PDF documents they have created / edited outside of the APEX app for storage in the database along with the other app data.
    I know that I should use a file browse item in a region for this purpose.
    I have a some questions:
    1. What database datatype is best for storing MS-Word and PDF docs? CLOB?
    2. How can the user see that the file has been uploaded? In other words, how can they see that the filename has been uploaded? I want to show this on the page for later viewing. I have uploaded a document, but later, I have no way to see that the document has in fact been uploaded. From the APEX page, the file browse item does not indicate whether or not a file has previously been uploaded.
    3. How can the user download the previously uploaded document?
    4. Is there a way to give users the capability to edit a document in an APEX app where they can do MS-Word-like editing (font size, font type, bold, italics, etc.)?
    I know I've asked a lot here and I appreciate your input.
    -Reid

    In my case, I am uploading screenshots of my application and then displaying them. You can feel free to use it if you want, the code was mostly taken from examples of file uploads posted by others. Here is some code to get you started:
    File Table description
    CREATE TABLE FILE_UPLOAD
       (name           VARCHAR2(4000) PRIMARY KEY,
        subject        VARCHAR2(4000),
        id             NUMBER,
        blob_content   BLOB,
        mime_type      VARCHAR2(4000),
        PAGE_ID        NUMBER);File Upload Procedure
    IF ( :P20_FILE_NAME is not null ) THEN
         INSERT INTO FILE_UPLOAD (id, NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE, PAGE_ID)
          SELECT ID,:P20_FILE_NAME,:P20_SUBJECT, blob_content, mime_type, :P20_PAGE_ID
                FROM APEX_APPLICATION_FILES
                WHERE name = :P20_FILE_NAME;
       DELETE from APEX_APPLICATION_FILES WHERE name = :P20_FILE_NAME;
      END IF;Download Image Procedure Definition
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
            v_mime  VARCHAR2(48);
            v_length  NUMBER;
            v_file_name VARCHAR2(2000);
            Lob_loc  BLOB;
    BEGIN
      SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
             INTO v_mime,lob_loc,v_file_name,v_length
        FROM FILE_UPLOAD
       WHERE id = p_file;
        -- set up HTTP header
        -- use an NVL around the mime type and
        -- if it is a null set it to application/octect
        -- application/octect may launch a download window from windows
      owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
        -- set the size so the browser knows how much to download
      htp.p('Content-length: ' || v_length);
        -- the filename will be used by the browser if the users does a save as
      htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
        -- close the headers           
      owa_util.http_header_close;
        -- download the BLOB
      wpg_docload.download_file( Lob_loc );
    end download_my_file;
    /make sure to grant the procedure rights for use by anyone
    GRANT EXECUTE ON download_my_file TO PUBLICDisplay Image Procedure Definition
    create or replace PROCEDURE "DISPLAY_IMAGE"
      inID NUMBER
    AS
      vMIME VARCHAR2(48);
      vLENGTH NUMBER;
      vFILENAME VARCHAR2(2000);
      vBLOB BLOB;
    BEGIN
      SELECT MIME_TYPE, BLOB_CONTENT, NAME, DBMS_LOB.GETLENGTH(BLOB_CONTENT)
        INTO vMIME, vBLOB, vFILENAME, vLENGTH
      FROM FILE_UPLOAD
      WHERE ID = inID;
      owa_util.mime_header(nvl(vMIME, 'application/octet'), FALSE);
      htp.p('Content-length: ' || vLENGTH);
      owa_util.http_header_close;
      wpg_docload.download_file(vBLOB);
    END;
    /Again, make sure everyone has rights to execute the procedure.
    GRANT EXECUTE ON DISPLAY_IMAGE TO PUBLICThis doesn't create an editor inside the browser, it just creates a simple upload/display process. For a WYSIWYG editor that handles PDF or Docs, you'll need something far more sophisticated, and I can't suggest anything there.

Maybe you are looking for