Regarding attachment of  file

hello,
i have a requirement to attach a file to our own ztransactions for a particular field.kindly help me regarding this issue.
thanks and regards,
siri.

Hi,
Just check this code: -
Reward  points if it solve your problem: -
FUNCTION z_mi_create_attachment.
""Local Interface:
*"  IMPORTING
*"     VALUE(CLAIM_NUM) TYPE  CHAR9
*"     VALUE(SUBCLAIM_NUM) TYPE  CHAR2
*"  EXPORTING
*"     VALUE(DOCUMENT_KEY) TYPE  SWO_TYPEID
*"  EXCEPTIONS
*"      INVALID_CLAIM
*"      NO_ATTACH
  TABLES: zmit_clma,
          zmit_clmd.
  DATA: lo_attachment TYPE REF TO cl_gos_document_service,
        ls_object     TYPE borident,
        lp_attachment TYPE swo_typeid,
        ls_attachment TYPE sibflporb,
        i_clma        TYPE STANDARD TABLE OF zmit_clma INITIAL SIZE 0,
        wa_clma       TYPE zmit_clma.
  DATA: lv_claim  TYPE char9,
        lv_sub    TYPE char2,
        lv_logsys TYPE logsys.
  USEFUL INFORMATION     -
*-- Message class- SGOS_MSG; Link saved in table-  ;Tcode-SO00
  SELECT SINGLE claim_number
                sub_claim_num
           FROM zmit_clmd
           INTO (lv_claim, lv_sub)
          WHERE claim_number  = claim_num AND
                sub_claim_num = subclaim_num.
  IF sy-subrc NE 0.
    RAISE invalid_claim.
  ENDIF.
  CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      own_logical_system             = lv_logsys
    EXCEPTIONS
      own_logical_system_not_defined = 1
      OTHERS                         = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  ls_object-objkey  = lv_claim.
  ls_object-objtype = lv_sub.
  ls_object-logsys  = lv_logsys.
  CREATE OBJECT lo_attachment.
  CALL METHOD lo_attachment->create_attachment
    EXPORTING
      is_object     = ls_object
    IMPORTING
      ep_attachment = lp_attachment.
  IF lp_attachment IS INITIAL.
    RAISE no_attach.
  ENDIF.
  wa_clma-claim_number     = lv_claim.
  wa_clma-sub_claim_num    = lv_sub.
  wa_clma-attach_item      = ' '.
  wa_clma-attach_remarks   = lp_attachment.
  wa_clma-sort_order       = ' '.
  wa_clma-created_by       = sy-uname.
  wa_clma-created_date     = sy-datum.
  wa_clma-created_time     = sy-uzeit.
  wa_clma-last_modified_by = sy-uname.
  wa_clma-last_modify_date = sy-datum.
  wa_clma-last_modify_time = sy-uzeit.
  APPEND wa_clma TO i_clma.
  CLEAR wa_clma.
  MODIFY zmit_clma FROM TABLE i_clma.
  document_key = lp_attachment.
  CLEAR: lv_claim, lv_sub, lv_logsys, lp_attachment.
ENDFUNCTION.

Similar Messages

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How to attach a file in the utl_mail utility in oracle 10.2.0

    hi,
    where is the default file destination to attach a file in the utl_mail utility in oracle 10g. i have to send an attachment..
    regards,
    Deepak
    Edited by: Deepak_DBA on Nov 4, 2009 3:10 PM

    HI,
    I have succesfully created utl_mail and send mail.. but could not able to attach a file in that mail..
    i have used the procedure given below..
    DECLARE
    rfile VARCHAR2(255);
    BEGIN
    UTL_MAIL.send_attach_varchar2(sender =>'[email protected]',recipients =>'[email protected]',subject =>'Test new Mail',message => 'Oracle World',mime_type => 'text; charset=us-ascii',priority => 3,attachment => rfile,att_inline => TRUE,att_mime_type=> 'text/plain; charset=us-ascii',att_filename => 'i:\session.txt');
    END;
    regards,
    Deepak

  • Attach multiple files to a List Item in SharePoint 2013

    Hi Guys,
    I have a customer that want to attach multiple files to single list item in a dialog box. like Datasheet View, if we set up a Datasheet View and click on the Attachment cell, it opens a dialog box that allow to select and attach multiple files as one operation. 
    Does anyone know how to solve this issue?
    As we know, if we want to attach multiple files, it only allow me to attach one file at a time, then repeat this process for every other file.
    Thanks in advance!
    Jodie

    Hi,
    According to your post, my understanding is that you wanted to upload multiple files in SharePoint list.
    There is no out of the box way to accomplish this with SharePoint.
    You can refer to the following articles to achieve it programmatically.
    Multiple Upload File Programmatically Using GridView:
    http://kamilamirul.wordpress.com/2013/01/19/multiple-upload-file-programmatically-using-gridview/
    Upload multiple files attached to a SharePoint list item.
    http://nestorrg-blogs.itequia.com/2010/01/upload-multiple-files-attached-to.html
    Programatically Upload Multiple File in SharePoint List
    http://social.technet.microsoft.com/wiki/contents/articles/2990.programatically-upload-multiple-file-in-sharepoint-list-part-2.aspx
    Programmatically uploading multiple files to Custom sharepoint list 
    http://www.c-sharpcorner.com/UploadFile/sarav82/MOSS11072007065009AM/MOSS.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Attaching photos to Apple Mail - error when attaching multiple files

    Hello,
    My iPhoto just recently started giving me an error whenever I try to attach multiple files to Apple Mail. The error says:
    "Mail got an error: Can't get paragraph 8 of
    content of outgoing message id 321072192.
    Invalid index."
    The only option allowed is to cancel. When I look at my Apple Mail it has created a message with the first selected photo attached, but none of the other photos are there. Any ideas of how to correct this? Is this an email client issue?
    Thanks!

    Welcome to the Apple Discussions.
    This is a problem between iPhoto 4 and 10.5.
    The workaround is to use the Photo Browser on the new Message Window in Mail, just drag the pic over from there:
    Uploaded with plasq's Skitch!
    Regards
    TD

  • PI 7.1 Email Attachment binary file

    Hi,
    I am trying to attach a binary (encrypted) file to a regular mapped email (receiver adapter) before sending it.
    It is similiar to attach pdf-files at the end of a mapping process.
    Is there no way to attach binary files other than writing an adapter module?
    Is there no generic "Attach File" module in PI 7.11?
    I tried ASMA with XSLT, but the problem is, that the file is binary and the sender adapter would not read it without xml-format.
    Any good idea?
    thanks
    hs

    Hi Holger,
    Just a suggestion:
    1. Read the binary file using file adapter (in binary mode)
    2. use a mail package and put the read content into the Content node of it. You can use this java mapping for it
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import  com.sap.aii.mapping.api.DynamicConfiguration;
    import com.sap.aii.mapping.api.DynamicConfigurationKey;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import com.sap.aii.mapping.api.InputHeader;
    public class JavaMapping extends AbstractTransformation {
         public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {
         getTrace().addInfo("JAVA Mapping Called");
         //Input payload is obtained by using arg0.getInputPayload().getInputStream()
         String inData = convertStreamToString(arg0.getInputPayload().getInputStream());
         String outData = inData
         try
         //8. The JAVA mapping output payload is returned using the TransformationOutput class
         // arg1.getOutputPayload().getOutputStream()
              arg1.getOutputPayload().getOutputStream().write(outData.getBytes("UTF-8"));
         catch(Exception exception1) { }
         public String convertStreamToString(InputStream in){
         StringBuffer sb = new StringBuffer();
         try
         InputStreamReader isr = new InputStreamReader(in);
         Reader reader =
         new BufferedReader(isr);
         int ch;
         while((ch = in.read()) > -1) {
              sb.append((char)ch);}
              reader.close();
         catch(Exception exception) { }
         return sb.toString();
    Then provide the filename dynamically into the ContentType of the mail package.
    I guess this should work.
    Regards
    Suraj

  • Attach video file as a help to BW reports on the portal

    Hello,
    I would like to attach video file as a visual manual to BW reports published on the portal (one vide file to many reports)
    Can somebody tell me what is best way to do it.
    Thanks

    Hello.
    The best way is your way and depends on your requirements and available resources.
    I can only give you a few points to start from:
    1. You may use either Help property of BW reports iviews or [Dynamic Navigation iView|http://help.sap.com/saphelp_nw04/helpdata/en/32/66c53e5ae84d3be10000000a11405a/frameset.htm] to point users to a video. The second variant is most visible to users.
    2. Video may be stored:
    2.1.  in KM and played by:
      a) software on user's workstation.
      b) custom developed iView which holds streamed video.
      c)  javascript/flash video player embedded in custom KM html page.
    2.2. on an intranet media server or external video hosting as Youtube. If a security concern does not matter, in general you have only provide a URL to the video.
    Best regards,
    Aliaksandr Zhukau

  • Why can't I attach a file when sending an email [in firefox]

    When I am sending an email in fire fox I am unable to attach a file. When I click the button,nothing happens. I am able to attach files when I use a browser other than fire fox.
    Can you tell me why this happens only in fire fox.
    Regards
    Ron Colburn

    g-mail,att,live,ymail''ronc007 [[#question-1040083|said]]''
    <blockquote>
    When I am sending an email in fire fox I am unable to attach a file. When I click the button,nothing happens. I am able to attach files when I use a browser other than fire fox.
    Can you tell me why this happens only in fire fox.
    Regards
    Ron Colburn
    </blockquote>

  • How to attach two files in the send mail action

    Hi experts
    I want to attach two files in the send mail action . I tried using ; as a separator but it did not work .
    Regards,
    Antonio R . Rubalcaba

    Thanks Jeremy,  
    Yes I am contemplating the another threat .  I still want to send two files because the two files have very distinct type of information .  The first one is operational and the second one is about statistics .  Of course that I can send both type of inforrmation in only one file . I just want to save time to the end user and let him select what infomation he wants to see .
    Thanks and my best wishes for you and your family ,
    Antonio

  • Error while opening Attachment(ZIP files) in work-flow inbox(Portal)

    Hi Experts ,
    We are getting error , when we try to open the Attachement (ZIP file) link from workflow-inbox(portal side). We are able to open the attachment sucessfully from backend . But we are getting error"Internet Explorer cannot download from void (0).No such interface supported.u201D when we try to open the attachment from portal.The attachment is ZIP file.
    Please help us to resolve the error.
    Edited by: AlokSBP on Apr 16, 2010 10:46 AM
    Edited by: AlokSBP on Apr 16, 2010 10:49 AM

    Thanks for the response...
    The issue is only occurring for the ZIP file extention . we are able to open the document in other files extentions from UWL inbox(portal).
    We have checked few more threads in SDN & got some link mentiioing the Tcode :- DC20 and DC30 (related to file extension) . As explained in the Tcode DC20 and DC30 . the file extention entries has to be maintained.
    We have made the entry of ZIP file in the DC20 & DC30 but still we are getting the same error. I think we are missing some entries to fill.
    It would be great if you can suggest regarding this issue...
    Is this is the cause of the issue ?
    Appreciate your help.....
    Cheers:)
    Edited by: AlokSBP on May 3, 2010 12:40 PM

  • How to attached Two file in Email.

    Dear Friends,
    i have an email optoion in my Application .But right now it send mail with out attchment.i want to send meil with attachment .
    i have Two File browser item to attach file ,Please tell me how can i attach these two file with email
    My Code is
    DECLARE
    l_id number;
    to_add varchar2(1000):=:P1_TO;
    from_add varchar2(1000);
    l_body varchar2(4000):=:P1_DESCRIPTION;
    l_sub varchar2(1000):=:P1_SUBJECT;
    BEGIN
       select email_id into from_add from user_master where user_id=:app_user; 
       l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            p_from      => from_add,
            p_body      => l_body,
            P_subj      => l_sub);
      COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    commit;
    END;How to attached two file in email .
    How can i do this.
    Thanks

    hI,
    thanks to reply me.
    It's REGARDS .
    eg.
    if i am sending any mail then in Bottom of Email Body My Name and Contact No Should be Display.
    Thanks

  • Upload Attachements(Doc File) into SAPand Read The same in BADI

    Hi All,
    I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
    Class name              :            PICTURES
    Class type               :            OT
    Object key               :            CAPA.
    I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
    And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
    Regards,
    Nagesh Kumar.
    Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
    Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AM

    Hi All,
    I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
    Class name              :            PICTURES
    Class type               :            OT
    Object key               :            CAPA.
    I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
    And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
    Regards,
    Nagesh Kumar.
    Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
    Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AM

  • How to attach input file in the Test Script in SECATT in ECC6 ?

    Hi ,
    How to attach input file in the Test Script in ECC6  in Tcode SECATT ?
    For Testing in SECATT in ECC6, how to attach input file which contains multiple records ?
    Best Regards,
    Padhy

    Hi and Welcome to the Community!
    Since you have balance, and the issue is in your Work domain, you need to work with your server admins, as it's possible they are forbidding (via IT Policy) the ability to do as you desire.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • Submit Form as XML / Rename attached XML file

    Hello,
    I am using the followig script to submit a form:
    var Mailto = "[email protected]";
    var mySubject = "This is the subject";
    var myMessage  = "Please find attached my file.";
    var Mail = "mailto:" + Mailto + "?Subject=" + mySubject + "&Body=" + myMessage;
    event.target.submitForm({
    cURL: Mail,
    bEmpty: true,
    cSubmitAs: "XML"
    Unfortunately I cannot change the name of the attached XML file. It is automatically the PDF filename.
    Has anybody an idea how to change the attachement name?
    Many thanks.
    Regards,
    ra_be

    The attachment filename will always be the name of the PDF. The only way to change is to save the PDF under a different name before you email it.
    Paul

Maybe you are looking for