Wrond data in attachment

hi all,
i have an ALV output grid display.after i click on mail recepient button on the top, and then select 'attachmnts', the header data is the same as in ALV, but the body of the attachemnt is not correct. the values in all the fields are just the values in the last column of the actual ALV. what to do to get correct data as in the ALV output in the attachment in all the fields.

Solved

Similar Messages

  • Where we can find Short Text data type attachment

    Hi,
    file type attachements are store in fnd_lob.
    Where we can find Short Text data type attachment in oracle apps.
    Regards

    Hi,
    You can find short text data type attachments in FND_DOCUMENTS_SHORT_TEXT table.
    Please also refer link:
    Oracle Apps Gurus: Attachments in Oracle
    Attachments in Oracle Applications
    Hope this helps!!!
    Best Regards,

  • Sending binary data as attachment

    Is that possible to send binary ( which is actually fragment of a large file i.e. 100MB ) data as attachment to SOAP message ?
    The complete scenario is below.
    * I have to send a large file around 100MB, to server as a fragment as attachment of SOAP message.
    * It is received at the server and sent as such to another server ( I dont want the user to send data directly to this "another" server, call it as main server ).
    * main server will update the fragment into a stream which remains unclosed until last fragment received.
    * after receiving SOAP message ( which contains the fragment ), main server will repond 'OK' to sub server.
    * If the sub server receives OK, then it will send the next fragment until EOF.
    May be at main server I may need to check whether the file is properly received using some checksum logic.
    I hope I am making sense. I am thinking of using Axis2 ( I am totally newbie to web services). Could someone point me if I miss something ?

    thanks

  • PAPI-Add/Delete/Retrieve BPM Instance's data and attachment for an instance

    Could you please me tell me how to Add/Delete/Retrieve BPM instance's data and attachment for a new as well as running instance using PAPI. Is it possible to have
    a sample code.
    Thanks,
    Ben.

    Hi Ben,
    Start with this thread that shows you how to create a new work item instance in a process and pass in input argument variables to the new instance as it is created:
    Creating a new work item instance in a process using PAPI
    Here's a thread that shows how to retrieve variables from an instance:
    Re: Instance info using PAPI in studio
    Here's a thread that shows
    1. how to run an activity in the process and pass in arguments using the "runActivity()" method,
    2. How to run a Global activity and pass in arguments (runGlobal() and
    3. How to send in a notificationto a notificationWait activity using the "sendNotificationInstance()" method:
    Re: Acces Oracle BPM Process through Standalone Java Program
    Finally, you can use the session.instanceAttach() method to attach a file to an instance.
    Hope this helps,
    Dan

  • Issue with the data of attachment of the mail with FM 'SO_NEW_DOCUMENT_ATT'

    Hi Gurus,
    I am developing my program in SAP R/3 4.7 system.
    I have a requirement to attach a txt file to the email. I am able to attach the file and fill the contents of the file.
    But the issue is with the data in the file. There are no line breaks in the data of file and all the words are saperated by space.
    For EG: If I have filled 2 records(line1,line2) in the internal table provided to content_bin field, the data in the attachment looks like this.
    l i n e 1 l i n e 2
    but I want the data to  be  like below:
    line1
    line2
    Below is my code:
    Fill the document data and get size of attachment
         DATA:w_cnt TYPE i.
        DATA: WA_ATTACH LIKE LINE OF P_ATTACHMENT.
      DESCRIBE TABLE p_attachment LINES  w_cnt.
      READ TABLE p_attachment  INTO WA_ATTACH INDEX w_cnt.
    Fill the document data and get size of attachment
      gd_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( WA_ATTACH ).
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'EMAIL'.
      gd_doc_data-obj_descr = sub.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Create attachment notification
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num   = 1.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
      it_packing_list-doc_type   =  'RAW'.
      it_packing_list-obj_descr  =  'Job Log'.
      it_packing_list-obj_name   =  'Job log'.
      it_packing_list-doc_size   =  it_packing_list-body_num * 255.
      APPEND it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      loop at i_t_list_of_emailids INTO i_t_list_of_emailids_wa.
      it_receivers-receiver = i_t_list_of_emailids_wa-emailid.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      it_receivers-express    = 'X'.
      append it_receivers.
    ENDLOOP.
    data:   new_object_id like sofolenti1-object_id.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
                COMMIT_WORK                = 'X'
           importing
                sent_to_all                = gd_sent_all
                new_object_id              = new_object_id
           tables
                packing_list               = it_packing_list
                contents_bin               = p_attachment
                contents_txt               = it_message
                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.
    Kindly let me know to procedure to solve the iisue
    Thanks in advance,
    Kiran Kumar K

    Hi Kira,
    you can try to use a CR_LF to separate the records.
    constants: con_cret type c value cl_abap_char_utilities=>CR_LF.
    And when you append your record to the internal table add to the end the con_cret.
      LOOP AT t_build into wa_charekpo.
        CONCATENATE wa_charekpo-order wa_charekpo-kunnr
                    wa_charekpo-sel
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.

  • ABAP XSL mapping - Binary data of attached file

    I have a webservice which is converting attachment and putting it into XSLT Node. when I mapped this node to Attachment payload of my partner (using ABAP xsl mapping), I got an error.
    I was able to send the same file via SOAP UI...
    On further investigation of the http log files, I noticed that Binary data for both streams looked same, but when I did a word count, I noticed that SOAP UI was a single line file while my PI data was more than 400 lines.. so I coded a fn:transfer of this data to convert end of line character to empty value. it did seem to work...
    My question, is this approach correct? or is there any way to ensure binary data stream in XML node does not contain those additional characters?

    can you provide input xml
    Edited by: RajuGA on Dec 7, 2011 2:09 PM

  • How to send the jsp page with the data as attachment

    hi
    my application is to display all the datas from the database.In the same page. i'm having a option to select mail address from the combo box and to send the page with the same format thru mail as an attachment .
    <%      String from="192.168.10.1";
              String to=request.getParameter("to");
              System.err.println(to);
              String mailhost="localhost";
             System.err.println("hiiiiiiiii");
              try
                   System.err.println("byeeeeeee");
                   Properties prop=System.getProperties();
                   prop.put("mail.smtp.host", mailhost);
                   Session ss=Session.getInstance(prop,null);
                System.err.println("session props");
                   Message message = new MimeMessage(ss);
                   System.err.println("message");
                   message.setFrom(new InternetAddress(from));
                   System.err.println("form not null");
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   System.err.println("from and to r set");
                   message.setSubject("Hello JavaMail Attachment");
              // Create the message part
                   BodyPart messageBodyPart = new MimeBodyPart();
              // Fill the message
                   messageBodyPart.setText("have u got the attachement?");
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(messageBodyPart);
              // Part two is attachment
                   messageBodyPart = new MimeBodyPart();
                   DataSource source = new FileDataSource("C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/MgmtTool/emsReport.jsp");
                   messageBodyPart.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName("emsReport.jsp");
                   multipart.addBodyPart(messageBodyPart);
              // Put parts in message
                   message.setContent(multipart);
                   System.err.println("ready");
              // Send the message
                   Transport.send(message);
                   out.println("mail was sent successfully");
              catch(Exception e)
              {out.println(e);}
              %>
    by using this code i 'm sending the emsreport page as attachment
    i'm recieving only the tabular format but i cant able to get those data which are present on that page
    i dont know wat to do???
    kindly help me
    thank u in advance

    Some of the points might help you in thinking towards right direction, you might already know this but doesn't look like you are following in your code anyway.
    1. The JSP that you are emailing is uncompiled source file. It need JVM environment to be able to run on.
    2. The JSP is a view technology so try to separate the view logic from the business.
    3. Try to put entire business logic in a Bean and use that in your JSP to start off with.
    You may need to write the HttpServletResponse#content on to the Writer and then persist it on the filesystem. and then send that persisted file as an attachment.
    Have a look at http://java.sun.com/j2se/1.5.0/docs/api/java/io/Writer.html
    It provide different type of writer implementations.
    HttpServletResponse#getWriter() provides PrintWriter instance.
    Does it make sense?

  • Update Last Changed Date when attaching a Document to Opportunity/Activity

    Hi my CRM peers,
    we have the requirement to update the last changed date of the one order object (Activity, Lead, Opportunity) when a user attaches a document to the object. Has anyone solved this requirement?
    Best regards
    Gregor

    Hi Stephen,
    what do you think about using the SEARCH_DOCUMENTS method of CL_CRM_DOCUMENTS to get the documents uploaded during the last day. I fill the table IT_QUERY_PROP is filled to search for the Documents Created starting yesterday:
    Query:
    IT_QUERY_PROP[1]
      PROP_NAME      CREATED_AT
      SIGN           I
      OPTION         BT
      LOW            20100217000000
      HIGH           99991231235959
    And I get this result:
    LT_SRES[1]
      OBJTYPEP       P
      CLASSP         CRM_P_ORD
      OBJIDP         DF1C76C7D7D02BF1ABA8005056857C4E
      OBJTYPEL       L
      CLASSL         CRM_L_ORD
      OBJIDL         DF1C76C7D7D02AF1ABA8005056857C4E
      RANKV          05000
      DOCREFER       0000000001
    When I now use the WHERE_USED method I can find the Business Object where this document is attached to by filling the
    IS_IO parameter:
    IS_IO
      OBJTYPE                        P
      CLASS                          CRM_P_ORD
      OBJID                          DF1C76C7D7D02BF1ABA8005056857C4E
    Now my follow up question is: How can I update the last changed date of the document without changing any data?
    Best regards
    Gregor

  • I  sometimes receive winmail.dat as attachment

    I sometimes receive winmail.dat as mail attachements though senders' Outlook or Exchange are properly configured (html). A colleage of mine sitting next to me with OS Lion, connected to the same ISP, gets the same mails from the same sender with the right attachments.
    Might it happen that the issue lies with the mail server of the ISP?
    Thanks for your help
    Patrice

    Thank you very much
    I knew TNEF's Enough and it has worked well so far . TNEF's is symptom fighting. I am looking for the cause.
    Rgds
    Phalch

  • How can i read the data from attached file?

    using javamail i receiving a mail with attachment
    but unable to read the content of the file
    Plz help me out
    thanks in advance

    The answer is in the JavaMail FAQ.

  • Can a PDF of the data be attached with the email notification?

    Hello,
    When the user submits its data and you recieve the email notificaton, can a PDF of that data be attahced to the email.
    Thanks,
    Josh

    Hi,
    This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    This should already be there for you to vote on but if you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Thanks,
    Josh

  • Why is date not attached to picture

    When I send photos via Apple Mail, why does the recipient not have the date?  Is this fixable on my end or hers?

    This may help:
    http://www.ehow.com/how_12041269_add-metadata-iphoto.html
    Try sending the photos from iPhoto.

  • ME23N wrond data displayed initially

    When I open ME23N it opens the privious PO (opened last time) and choose the
    header data in Status Tab , then the amount shown as Invoiced is incorrect (it contains the value of the 2nd material if we see the item detail -->PO history,
    Now if we choose other Po and press enter it displays the correct value ie.the sum
    value of all the article.
    This problem has started after the new realease, I hope its because of some OSS Note implemented as a part of this release.
    my sap system is 4.7
    and the highest support pack is (after which this problem has started)
    SAPKGPRA23.
    Can any body help me & tell which OSS note is causing this problem
    or there is some other issue altogether.
    Its really urgent because this problem is in Production and hence highest priority issue.
    Thanks in advance
    Regards
    Abhishek

    Just run the query in backend with the same id and see whether you are getting the output or not?
    Thanks
    --Anil                                                                                                                                                                                                                                       

  • How to open winmail.dat attachment on N95

    Hi everyone
    please help
    V10.0.018
    15-03-07
    RM-159
    Nokia N95(09.01)
    I have a nokia N95 and when i recieve any email attachment which is excel file or word file by email it is shown as winmail.dat and i cannot open the file or even save it with a differnet name or extension however if i send the file with bluetooth from my computer to the phone it is opened and read perfect
    1- we use exchange server 2003
    2- outlook 2003 as a client
    I know that exchange sends these files in rtf format is there a work around so i can read my documents !!!Message Edited by amrlotus on 12-Apr-200702:48 PM

    I tried changing the extension, which sort of works. I sent an email to my wife's iMac from my PC, which had several .jpg and one .pdf files attached. It shows up in Mail with a single winmail.dat file attached. I changed it to a.pdf, and it opened the pdfonly. I couldn't get the jpgs to open, even with a .jpg extesion.
    First of all, why in the world would it do this? Second, how do I open them since they are mixed type, and several at once? Seems ridiculaous that a Mac does this to attachments, BTW.
    Message was edited by: wrench75

  • Error when attaching Documents during Process Control to Submit Data

    Hi,
    In HFM 411 the user's were able to attach documents (that were earlier uploaded to Custom Documents) in the Process Control while submitting the Data. In 931 they receive an error message that says it is unable to change the review level. However tehy are able to submit the data without attaching documents.
    The security set-up seems to be fine, as the admin receives an error message as well, but this time it says "Invalid Javascript returned by the server".
    Anyone any idea?
    Thank you so much for your help.

    Hi,
    I (as administrator) manage to attach document at every step of review level process.
    Can you check that MaxNumDocAttachments and MaxDocAttachmentSize are correctly set up in the metadata (application settings).
    Besides HFM User Guide stands : "To attach or extract any custom documents to or from the server, you must be assigned the Manage Custom Documents security role."
    Hope this is helpful.
    Regards,
    Lionel.

Maybe you are looking for