Selecting files as attachment

Selecting files as attachment by clicking attachment icon and subsequently folder, subfolder and file worked fine till today.
All of sudden mail stops at first level of folders with effect that mail attaches all pictures - yes this took some while - instead of allowing to select a single picture. Doesn't matter if you select or unselect the icon for windows compatibility.
What's wrong?
Thanks for your kind assistance

I do have sample code
sending email with attachment using BCS,
i can only post it by thursday,
currently refer this.. i will post sample code later
DATA lt_message TYPE bcsy_text.
DATA lv_mail_title TYPE so_obj_des.
DATA document TYPE REF TO cl_document_bcs.
DATA recipient TYPE REF TO if_recipient_bcs.
DATA send_request TYPE REF TO cl_bcs.
DATA sent_to_all TYPE os_boolean.
DATA bcs_execption TYPE REF TO cx_bcs.
DATA email_id TYPE ADR6-SMTP_ADDR
send_request = cl_bcs=>create_persistent( ).
*Create Title
CONCATENATE 'Mail Subject' '-' 'xxx'
INTO lv_mail_title RESPECTING BLANKS.
*Create Message(EMAIL Body)
APPEND '<p>Dear Sir/Madam</p>' TO lt_message.
APPEND '<p>The Message body.......</p>' TO lt_message.
APPEND '<br>' TO lt_message.
*Create Document
document = cl_document_bcs=>create_document(
     i_type = 'HTM'
     i_text =  message_body
     i_subject = subject ).
*Add Attachement
document->add_attachment(..
...). "Check this method
*Add document to email
send_request->set_document( document ).
recipient = cl_cam_address_bcs=>create_internet_address(
i_address_string = email_id ).
*add recipients to send request
send_request->add_recipient( i_recipient = recipient ).
sent_to_all = send_request->send(
i_with_error_screen = 'X' ).
COMMIT WORK.
IF sent_to_all = 'X'.
MESSAGE s398(00) WITH 'Message Sent Succesfully'.
RETURN.
ENDIF.
thanks & regards,
suji

Similar Messages

  • In Forms Central, attempting to do file attachment, but "select File" option is grayed lout/unavailable - how do I make it available?

    in Forms Central, attempting to do file attachment, but "select File" option is grayed lout/unavailable - how do I make it available?

    Is it necessary that all the files are on the local hard disks? In the case of the laptop I could understand this if the laptop is also used outside the network, but the desktops should stay in place, no?
    It could be as easy as to make a shortcut on all the computers to the samba-share and tell the inlaws that they have to use the samba-share to store their (shared) files.
    You are correct about this but I doubt they would remember to use this all the time so I want to sync the folders just in case.
    Assuming the laptop is always going to be in the same IP address when it connects to the network (which is unlikely in default configurations), you could create a script that checks for the existence of the machine on the network then perform a sync.  I had a script written in Python somewhere that would check to make sure the server side was up and run unison, but it could be modified to check for the laptop and copy files.  Let me know if that's something you're interested in and I can post it for you.
    This sounds like what I'm looking for. Also I wander If it could be done by NetBIOS  name instead of ip address? This way It wouldn't matter.
    The script sounds like what I'm looking for though
    Thanks for the help!

  • Can you attach a select file into a mail in "Outlook" then send to a specify address?

    I have been looking around and trying to find ways to do the following with extendscript:
    1. Open ‘Outlook’
    2. Create a new mail
    3. Attach the files which was selected to a mail then send to a specify address
    Is this possible?
    I found this that dose it for MAC but I need to do it in a windows platform

    Hi John
    Well not a very inDesign question is it but this will do what you want.
    // Send selected files as attachments through outlook on windows 
    // By Trevor htps://forums.adobe.com/message/6546861#6546861
    // Need a custom script , willing to pay for it send me a private message.
    var notify = true; // set to true if you want a popup measage to say that the mail is sending
    var delay = 1.5 // the number of seconds you want the popup to appear
    var ToAddress = "[email protected]"; // You might need to change this 
    var MessageSubject = "Howdy Barack, take a look at this"; // You might need to change this
    // bodyText set at line 27 Below
    var myAttachments =  File.openDialog ("Select the files you wish to attach", "All Files: *.*", true);
    if (!myAttachments) {
        alert("Sorry mate I can't send your attachments if you don't select them\rPlease try again next year\rThanks");
        exit();
    var n, MessageAttachments = [], bodyFileNames = [], fName = "";
    for (n = 0; n < myAttachments.length; n++) {
        fName = myAttachments[n].fsName;
        MessageAttachments[n] = 'newMail.Attachments.Add("' + fName + '")';
        bodyFileNames[n] = fName;
    MessageAttachments = MessageAttachments.join("\r") + "\r";
    bodyFileNames = bodyFileNames.join("\" & vbNewLine & \"");
        // the \" & vbNewLine & \" is a way off putting in line feads
    MessageBody = "Howdy i spent yonks of time making this. \" & vbNewLine & \"" + bodyFileNames; // You might need to change this
    //VBS code very very very heavily based on the answer of ShaddowFox333 http://www.tek-tips.com/viewthread.cfm?qid=728333 
    myVBS = '''Dim ToAddress
    Dim FromAddress
    Dim MessageSubject
    Dim MessageBody
    Dim MessageAttachment
    Dim ol, ns, newMail
    ToAddress = "''' + ToAddress + '''"
    MessageSubject = "''' + MessageSubject + '''"
    MessageBody = "''' + MessageBody + '''"
    Set ol = CreateObject("Outlook.Application")
    Set ns = ol.getNamespace("MAPI")
    Set newMail = ol.CreateItem(olMailItem)
    newMail.Subject = MessageSubject
    newMail.Body = MessageBody & vbCrLf
    newMail.RecipIents.Add(ToAddress)
    ''' +
    MessageAttachments + "newMail.Send";
    try {
        app.doScript (myVBS, ScriptLanguage.VISUAL_BASIC, undefined, UndoModes.AUTO_UNDO);
        if (notify) {
            var tempFile = new File (Folder.temp + "/" + +new Date + ".vbs");
            tempFile.open('w');
            tempFile.write('''Set shell = CreateObject("Wscript.Shell")
                        delay = ''' + delay + '''
                        shell.Popup "Sending document by outlook", delay, "InDesign Mail Manager", 64
                        Set fso = CreateObject("Scripting.FileSystemObject")
                        fso.DeleteFile("''' + tempFile.fsName + '''"),DeleteReadOnly
            tempFile.close();
            tempFile.execute();
    catch (e) {alert ("Drat goofed up")}
    Trevor
    OTT: Congrats Uwe

  • How to Insert user selected files as list attachment using JavaScript?

    I could able to Inset list items using ECMA Script, But for the user added attachment how to save it to list item.
    Please help

    check the similar post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3d92510f-f966-45b2-989d-734ba21c5ce5/how-to-attach-file-to-list-item-using-javascript-in-sharepoint-2010?forum=sharepointcustomizationprevious
    More links
    http://sharepoint.stackexchange.com/questions/88487/using-sharepoint-client-api-to-upload-file-as-attachment-in-javascript
    http://sharepoint-community.net/forum/topics/copy-attachments-of-sharepoint-list-item-to-a-document-library

  • Not able to send pdf file as attachment in my apple mail.

    Hi, I was easily able to attach pdf files to my apple mail.  infact I could just open a pdf file and then send it as attachment in the email earlier. but after downloading and upgrading to os X Mountain lion, I am neither being able to attach and send pdf files in my apple mail, nor can I send PDF file as an attachment.
    Is there any issue with OS X Mountain Lion.
    Issue 1.  I compose Email , then click attach > Browse > select pdf file > click attach > it shows in my Email body either as an icon or as first page of the pdf document > I send it. >>> But when the receipient opens the Email, that pdf attachment is missing. In fact When I put a cc to my self and I open the Email, the attachment is mssing in the incoming E amil.
    Issue 2. I open the PDF document > Click on File > send as attachment in E-Mail > on right, a menu appears where I select the File and click attach> I get a message
    The SendMail doesnot know how to talk to your default mail client. Please select a different mail application to use. Attaching a screen shot.
    I never had these issues earlier with my Lion OS . but since the time I have upgraded to mountain Lion OS, I am having these issues.
    Are these the Mountain Lion issues, how to fix these please.

    I believe, the software team forgot to put a button for send or share as an attachment to preview.

  • Running Safari 6.0.3  When trying to print files using Adobe Reader 11.0.02, print preview screen is all black.  If files are attached to an email, receiver can't open it.  It does work OK in Firefox 19.0.2  Any ideas?

    Running Safari 6.0.3  When trying to print files using Adobe Reader 11.0.02, print preview screen is all black.  If files are attached to an email, receiver can't open it.  It does work OK in Firefox 19.0.2  Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Excel file as attachment in mail

    Hi Friends,
    I have a requirement of sending th Excel sheet through email attachment.
    I am getting the records into the internal table,but after sending the Email and receiving it the first line in the excel sheet is a blank line.
    Can you please provide me a solution with source code.

    Hi Pooja,
    check thios code...hope it helps
    *& Report ZWBSAP_EMAIL *
    *Send an email via SAP Workplace
    *Select files from SAP server
    *Note:
    Uses custom table zlookup to pick up a group of email addresses to send to
    if more than one is needed.
    Please note some hard coding.
    REPORT zsap_email MESSAGE-ID z001.
    TABLES: rlgrap, btcxpm, zlookup.
    DATA:
    v_zcode(3) TYPE c,
    svrname LIKE zlookup-zdesc,
    wa_error(80) TYPE c,
    global_filemask_all(80).
    DATA: t_soud LIKE soud.
    DATA: p_infolder LIKE sofdk.
    DATA: p_outfolder LIKE sofdk.
    DATA: object_hd_display LIKE sood2.
    DATA: object_id LIKE soodk.
    DATA: document LIKE sood4.
    DATA: header_data LIKE sood2.
    DATA: link_folder_id LIKE soodk.
    DATA: folder_selections LIKE sofds.
    DATA: folder_list LIKE soxli OCCURS 0 WITH HEADER LINE.
    DATA: receivers LIKE soos1 OCCURS 0 WITH HEADER LINE.
    DATA: objcont LIKE soli OCCURS 0 WITH HEADER LINE.
    DATA: objhead LIKE soli OCCURS 0 WITH HEADER LINE.
    DATA: object_content LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: object_hd_change LIKE sood1.
    DATA: BEGIN OF files OCCURS 0,
    line(200) TYPE c,
    END OF files.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    *Email to addresses
    SELECTION-SCREEN: BEGIN OF BLOCK bl1 WITH FRAME TITLE text-bl1.
    PARAMETERS: p_mailto(240) TYPE c.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN COMMENT 10(2) text-001.
    *Use zlookup-ztype as group to define multiple email to addresses
    SELECT-OPTIONS: s_mailto FOR zlookup-ztype.
    SELECTION-SCREEN: END OF BLOCK bl1.
    *Subject
    SELECTION-SCREEN: BEGIN OF BLOCK bl2 WITH FRAME TITLE text-bl2.
    PARAMETERS: p_subj LIKE document-objdes.
    SELECTION-SCREEN: END OF BLOCK bl2.
    *Body
    SELECTION-SCREEN: BEGIN OF BLOCK bl3 WITH FRAME TITLE text-bl3.
    PARAMETERS: p_body1 LIKE solisti1-line LOWER CASE.
    PARAMETERS: p_body2 LIKE solisti1-line LOWER CASE.
    PARAMETERS: p_body3 LIKE solisti1-line LOWER CASE.
    PARAMETERS: p_body4 LIKE solisti1-line LOWER CASE.
    PARAMETERS: p_body5 LIKE solisti1-line LOWER CASE.
    PARAMETERS: p_body6 LIKE solisti1-line LOWER CASE.
    SELECTION-SCREEN: END OF BLOCK bl3.
    *Attachments
    SELECTION-SCREEN: BEGIN OF BLOCK bl4 WITH FRAME TITLE text-bl4.
    PARAMETERS: p_fname1 LIKE files-line.
    PARAMETERS: p_fname2 LIKE files-line.
    PARAMETERS: p_fname3 LIKE files-line.
    PARAMETERS: p_fname4 LIKE files-line.
    PARAMETERS: p_fname5 LIKE files-line.
    PARAMETERS: p_fname6 LIKE files-line.
    SELECTION-SCREEN: END OF BLOCK bl4.
    AT SELECTION-SCREEN.
    PERFORM chk_selection.
    IF NOT wa_error IS INITIAL.
    MESSAGE e001 WITH wa_error.
    ENDIF.
    START-OF-SELECTION.
    END-OF-SELECTION.
    PERFORM send_email.
    FORM chk_selection *
    FORM chk_selection.
    CLEAR wa_error.
    *Loop only once ???
    *If more checkings to be done.
    *Think about it and if not clear.
    *Let it sink in for a couple of minutes.
    *Still doesn't make sence? Go home and sleep on it.
    DO 1 TIMES.
    *Check Email to
    IF p_mailto IS INITIAL
    AND s_mailto IS INITIAL.
    wa_error = 'Invalid or no EMAIL TO selection'.
    EXIT.
    ENDIF.
    ENDDO.
    ENDFORM.
    *& Form send_email
    text
    --> p1 text
    <-- p2 text
    FORM send_email.
    PERFORM get_folder_info.
    PERFORM fill_body.
    PERFORM ins_new_object.
    PERFORM crt_attachments.
    PERFORM fill_receivers_info.
    PERFORM snd_email.
    ENDFORM. " send_email
    FORM Get_folder_info *
    FORM get_folder_info.
    CLEAR t_soud.
    *Small so should be quick.
    SELECT * FROM soud
    INTO t_soud
    WHERE sapnam = sy-uname.
    p_infolder-foltp = 'FOL'.
    p_infolder-folyr = t_soud-inbyr. "inbox
    p_infolder-folno = t_soud-inbno.
    p_outfolder-foltp = 'FOL'.
    p_outfolder-folyr = t_soud-outyr. "outbox
    p_outfolder-folno = t_soud-outno.
    ENDSELECT.
    ENDFORM.
    FORM fill_body *
    FORM fill_body.
    object_content-line = p_body1.
    APPEND object_content.
    object_content-line = p_body2.
    APPEND object_content.
    object_content-line = p_body3.
    APPEND object_content.
    object_content-line = p_body4.
    APPEND object_content.
    object_content-line = p_body5.
    APPEND object_content.
    object_content-line = p_body6.
    APPEND object_content.
    ENDFORM.
    FORM ins_new_object *
    FORM ins_new_object.
    object_hd_change-objnam = 'Notes'.
    object_hd_change-objdes = p_subj.
    CALL FUNCTION 'SO_OBJECT_INSERT'
    EXPORTING
    folder_id = p_outfolder
    object_hd_change = object_hd_change
    object_type = 'RAW'
    owner = sy-uname
    IMPORTING
    object_hd_display = object_hd_display
    object_id = object_id
    TABLES
    objcont = object_content
    objhead = objhead
    EXCEPTIONS
    active_user_not_exist = 1
    communication_failure = 2
    component_not_available = 3
    dl_name_exist = 4
    folder_not_exist = 5
    folder_no_authorization = 6
    object_type_not_exist = 7
    operation_no_authorization = 8
    owner_not_exist = 9
    parameter_error = 10
    substitute_not_active = 11
    substitute_not_defined = 12
    system_failure = 13
    x_error = 14
    OTHERS = 15.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM.
    FORM crt_attachments *
    --> P_SUBJ *
    FORM crt_attachments.
    document-foltp = p_outfolder-foltp.
    document-folyr = p_outfolder-folyr.
    document-folno = p_outfolder-folno.
    document-objtp = object_id-objtp.
    document-objyr = object_id-objyr.
    document-objno = object_id-objno.
    document-objnam = 'Notes'.
    document-objdes = p_subj.
    document-okcode = 'CHNG'.
    document-file_ext = 'TXT'.
    link_folder_id = object_id.
    header_data-objla = 'EN'.
    header_data-objnam = document-objnam.
    header_data-objdes = document-objdes.
    header_data-objpri = '5'.
    header_data-objsns = 'O'.
    header_data-file_ext = 'TXT'.
    REFRESH files.
    CLEAR files.
    IF NOT p_fname1 IS INITIAL.
    files-line = p_fname1.
    APPEND files.
    ENDIF.
    IF NOT p_fname2 IS INITIAL.
    files-line = p_fname2.
    APPEND files.
    ENDIF.
    IF NOT p_fname3 IS INITIAL.
    files-line = p_fname3.
    APPEND files.
    ENDIF.
    IF NOT p_fname4 IS INITIAL.
    files-line = p_fname4.
    APPEND files.
    ENDIF.
    IF NOT p_fname5 IS INITIAL.
    files-line = p_fname5.
    APPEND files.
    ENDIF.
    IF NOT p_fname6 IS INITIAL.
    files-line = p_fname6.
    APPEND files.
    ENDIF.
    IF NOT files[] IS INITIAL.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING
    method = 'ATTCREATEFROMPC'
    TABLES
    files = files
    CHANGING
    document = document
    header_data = header_data.
    IF sy-subrc = 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDFORM.
    FORM fill_receivers_info *
    FORM fill_receivers_info.
    DATA: BEGIN OF reclist OCCURS 0,
    rec LIKE receivers-recextnam,
    END OF reclist.
    *Build reclist
    REFRESH reclist.
    IF NOT p_mailto IS INITIAL.
    reclist-rec = p_mailto.
    APPEND reclist.
    ENDIF.
    IF NOT s_mailto IS INITIAL.
    SELECT zdesc
    INTO reclist-rec
    FROM zlookup
    WHERE ztype IN s_mailto.
    APPEND reclist.
    ENDSELECT.
    ENDIF.
    REFRESH receivers.
    LOOP AT reclist.
    folder_selections-folnam = 'INBOX'.
    CALL FUNCTION 'SO_FOLDER_LIST_READ'
    EXPORTING
    folder_selections = folder_selections
    owner = sy-uname
    region = 'P'
    TABLES
    folder_list = folder_list
    EXCEPTIONS
    component_not_available = 1
    operation_no_authorization = 2
    owner_not_exist = 3
    parameter_error = 4
    x_error = 5
    OTHERS = 6.
    IF sy-subrc = 0.
    CLEAR receivers.
    receivers-rcdat = sy-datum.
    receivers-rctim = sy-uzeit.
    receivers-recnam = reclist-rec.
    receivers-recno = folder_list-parno.
    receivers-rectp = folder_list-partp.
    receivers-recyr = folder_list-paryr.
    receivers-sndtp = folder_list-partp.
    receivers-sndyr = folder_list-paryr.
    receivers-sndno = folder_list-parno.
    receivers-sndnam = sy-uname.
    receivers-sndpri = '1'.
    receivers-msgid = 'SO'.
    receivers-msgno = '619'.
    receivers-deliver = 'X'.
    receivers-not_deli = 'X'.
    receivers-read = 'X'.
    receivers-mailstatus = 'E'.
    *receivers-ADR_NAME
    receivers-resend = ' '.
    receivers-sortfield = ' '. "'USER WF_BATCH INDIGO BATCH'.
    receivers-sortclass = '5'.
    APPEND receivers.
    ELSE.
    CLEAR receivers.
    receivers-sel = 'X'.
    receivers-recesc = 'U'.
    receivers-recnam = 'U-'.
    receivers-recextnam = reclist-rec.
    receivers-deliver = 'X'.
    receivers-not_deli = 'X'.
    receivers-read = 'X'.
    receivers-mailstatus = 'E'.
    receivers-adr_name = reclist-rec.
    receivers-sortfield = reclist-rec.
    receivers-sortclass = '5'.
    APPEND receivers.
    ENDIF.
    ENDLOOP.
    ENDFORM.
    FORM snd_email *
    FORM snd_email.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    folder_id = p_outfolder
    object_id = object_id
    outbox_flag = 'X'
    owner = sy-uname
    check_send_authority = 'X'
    originator_type = 'J'
    link_folder_id = link_folder_id
    TABLES
    objcont = object_content
    receivers = receivers
    EXCEPTIONS
    active_user_not_exist = 1
    communication_failure = 2
    component_not_available = 3
    folder_not_exist = 4
    folder_no_authorization = 5
    forwarder_not_exist = 6
    note_not_exist = 7
    object_not_exist = 8
    object_not_sent = 9
    object_no_authorization = 10
    object_type_not_exist = 11
    operation_no_authorization = 12
    owner_not_exist = 13
    parameter_error = 14
    substitute_not_active = 15
    substitute_not_defined = 16
    system_failure = 17
    too_much_receivers = 18
    user_not_exist = 19
    originator_not_exist = 20
    x_error = 21
    OTHERS = 22.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM.
    Thanks
    Nayan

  • Send file as attachment

    Hi,
    I recently switch from a complete Windows envrionment to a Mac one. I use a MacBook air with Mac OS X Lion.
    I recently installed Office for Mac 2011 to use Outlook 2011 with my Exchange. I changed the setting in the Mail app and Outlook to use my Outlook as default mail client.
    There's still something I need to correct. When I "right-click" a file and select send file as attachment, it opens the Mail App to send it. I don't know how to completely switch to Outlook. I don't care about not using mail app at all.
    I've tried a couple of things, like deleting com.apple.LaunchServices.plist but I still have the same issue.
    Any suggestions ?
    Thanks

    That service is hard-coded to Mail and can't be changed through any user setting. Try this workaround:
    http://www.officeformachelp.com/2010/11/create-a-service-to-attach-files-to-a-ne w-outlook-for-mac-mail-message/
    If Library in Automator does not list Microsoft Outlook, the "Create New Outlook Mail Message" action should be listed in the second pane (along with all the other Microsoft application actions).
    Regards.

  • Mail the local files as attachment and some body text

    hello Exprests
    I have a requirement where i have to mail the local files as attachment and some body text also...
    I am using the following code, and the problem is that i am getting a blank TXT as an attachment.
    Please help me solve this issue, if u change the spool request no., client & put ur mail id and execute it u will find that apart from the pdf we get an un wanted attachment also..
    Please suggest me the solution..
    WORK TABLE AREAS
    TABLES: tsp01.
    INTERNAL TABLES
    DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
    lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
    lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
    DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
    lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
    DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
    TYPES: BEGIN OF y_files,
    file(60) TYPE c,
    END OF y_files.
    DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
    DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
    DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
    STRUCTURES
    DATA: folder_id LIKE soodk,
    object_id LIKE soodk,
    link_folder_id LIKE soodk,
    g_document LIKE sood4,
    g_header_data LIKE sood2,
    g_folmem_data LIKE sofm2,
    g_header_data LIKE sood2,
    g_receive_data LIKE soos6,
    g_ref_document LIKE sood4,
    g_new_parent LIKE soodk,
    l_folder_id LIKE sofdk,
    v_email(50).
    DATA: hd_dat LIKE sood1.
    VARIABLES
    DATA: client LIKE tst01-dclient,
    name LIKE tst01-dname,
    objtype LIKE rststype-type,
    type LIKE rststype-type.
    DATA: numbytes TYPE i,
    arc_idx LIKE toa_dara,
    pdfspoolid LIKE tsp01-rqident,
    jobname LIKE tbtcjob-jobname,
    jobcount LIKE tbtcjob-jobcount,
    is_otf.
    DATA: outbox_flag LIKE sonv-flag VALUE 'X',
    store_flag LIKE sonv-flag,
    delete_flag LIKE sonv-flag,
    owner LIKE soud-usrnam,
    on LIKE sonv-flag VALUE 'X',
    sent_to_all LIKE sonv-flag,
    g_authority LIKE sofa-usracc,
    w_objdes LIKE sood4-objdes.
    DATA: c_file LIKE rlgrap-filename,
    n_spool(6) TYPE n.
    DATA: cancel.
    DATA: desired_type LIKE sood-objtp,
    real_type LIKE sood-objtp,
    attach_type LIKE sood-objtp,
    otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
    ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
    CONSTANTS
    CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
    c_objtp LIKE g_document-objtp VALUE 'RAW',
    c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
    *=======================================================================
    *=
    *=========
    *z_send_email_fax2
    *function z_faian_mail_fax2.
    ""Interface local:
    *" IMPORTING
    *" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
    *" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
    *" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
    *" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
    *" TABLES
    *" LT_BODY_EMAIL STRUCTURE SOLI
    *" EXCEPTIONS
    *" ERR_NO_ABAP_SPOOLJOB
    Fist part: Verify if the spool really exists
    *select single * from tsp01 where rqident = src_spoolid.
    DATA src_spoolid TYPE tsp01-rqident VALUE '23242'.
    DATA header_mail TYPE so_obj_des.
    DATA lt_body_email TYPE STANDARD TABLE OF soli WITH HEADER LINE.
    DATA l_t VALUE '1'.
    header_mail = 'Subject line of mail'.
    IF l_t = '1' .
    RAISE err_no_abap_spooljob. "doesn't exist
    *ELSE.
    client = '200'."tsp01-rqclient.
    name = 'SPOOL0000023242'."tsp01-rqo1name.
    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
    authority = 'SP01'
    client = client
    name = name
    part = 1
    IMPORTING
    type = type
    objtype = objtype
    EXCEPTIONS
    fb_error = 1
    fb_rsts_other = 2
    no_object = 3
    no_permission = 4
    OTHERS = 5.
    IF objtype(3) = 'OTF'.
    desired_type = otf.
    ELSE.
    desired_type = ali.
    ENDIF.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    rqident = src_spoolid
    desired_type = desired_type
    IMPORTING
    real_type = real_type
    TABLES
    buffer = l_objcont
    EXCEPTIONS
    no_such_job = 14
    type_no_match = 94
    job_contains_no_data = 54
    no_permission = 21
    can_not_access = 21
    read_error = 54.
    IF sy-subrc EQ 0.
    attach_type = real_type.
    ENDIF.
    CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    owner = sy-uname
    region = ou_fol
    IMPORTING
    folder_id = l_folder_id
    EXCEPTIONS
    OTHERS = 5.
    fill out informations about the header of the email
    CLEAR: g_document.
    g_document-foltp = l_folder_id-foltp.
    g_document-folyr = l_folder_id-folyr.
    g_document-folno = l_folder_id-folno.
    g_document-objtp = c_objtp.
    g_document-objdes = header_mail.
    g_document-file_ext = c_file_ext.
    g_header_data-objdes = header_mail.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING
    method = 'SAVE'
    office_user = sy-uname
    IMPORTING
    authority = g_authority
    TABLES
    objcont = lt_body_email
    attachments = lt_attachments
    CHANGING
    document = g_document
    header_data = g_header_data
    EXCEPTIONS
    OTHERS = 1.
    folder_id-objtp = l_folder_id-foltp.
    folder_id-objyr = l_folder_id-folyr.
    folder_id-objno = l_folder_id-folno.
    object_id-objtp = c_objtp.
    object_id-objyr = g_document-objyr.
    object_id-objno = g_document-objno.
    link_folder_id-objtp = l_folder_id-foltp.
    link_folder_id-objyr = l_folder_id-folyr.
    link_folder_id-objno = l_folder_id-folno.
    REFRESH lt_rec_tab.
    CLEAR lt_rec_tab.
    lt_rec_tab-sel = 'X'.
    lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
    lt_rec_tab-recnam = 'U-'.
    lt_rec_tab-deliver = 'X'.
    lt_rec_tab-not_deli = 'X'.
    lt_rec_tab-read = 'X'.
    lt_rec_tab-mailstatus = 'E'.
    lt_rec_tab-adr_name = fax_mail_number.
    lt_rec_tab-sortfield = fax_mail_number.
    lt_rec_tab-recextnam = fax_mail_number.
    lt_rec_tab-sortclass = '5'.
    APPEND lt_rec_tab.
    lt_rec_tab-recextnam = ."Email id .
    lt_rec_tab-recesc = 'U'. "object_type.
    lt_rec_tab-sndart = 'INT'.
    lt_rec_tab-sndpri = 1.
    APPEND lt_rec_tab.
    c_file = 'C:\Documents and Settings\abgupta\Desktop\Abhinav\zpk.txt'.
    lt_files-file = c_file.
    APPEND lt_files.
    begin of insertion by faianf01
    hd_dat-objdes = header_mail.
    CALL FUNCTION 'SO_ATTACHMENT_INSERT'
    EXPORTING
    object_id = object_id
    attach_type = attach_type
    object_hd_change = hd_dat
    owner = sy-uname
    TABLES
    objcont = l_objcont
    objhead = l_objhead
    EXCEPTIONS
    active_user_not_exist = 35
    communication_failure = 71
    object_type_not_exist = 17
    operation_no_authorization = 21
    owner_not_exist = 22
    parameter_error = 23
    substitute_not_active = 31
    substitute_not_defined = 32
    system_failure = 72
    x_error = 1000.
    IF sy-subrc > 0.
    ENDIF.
    end of insertion by faianf01
    lt_note_text-line = 'test prgram for email'.
    APPEND lt_note_text.
    send email from SAPOFFICE
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    folder_id = folder_id
    object_id = object_id
    outbox_flag = outbox_flag
    link_folder_id = link_folder_id
    owner = sy-uname
    check_send_authority = 'X'
    TABLES
    receivers = lt_rec_tab
    note_text = lt_note_text
    EXCEPTIONS
    active_user_not_exist = 35
    communication_failure = 71
    component_not_available = 1
    folder_no_authorization = 5
    folder_not_exist = 6
    forwarder_not_exist = 8
    object_no_authorization = 13
    object_not_exist = 14
    object_not_sent = 15
    operation_no_authorization = 21
    owner_not_exist = 22
    parameter_error = 23
    substitute_not_active = 31
    substitute_not_defined = 32
    system_failure = 72
    too_much_receivers = 73
    user_not_exist = 35.
    ENDIF.
    COMMIT WORK AND WAIT.

    Hi!
    Add the actual body right after the line, you have created the Multipart object.
    // create and fill the first message part
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(this.text); //body of message
    Multipart mp = new MimeMultipart();
    // Adding the body
    mp.addBodyPart(mbp1);
    //adding attachments
    //... and so on...-Raine-

  • External File URL attach to FB03 - document service object

    Hi ;
    My requirement is Scanned copy of hard Vouchers stored in one Windows based External drive.this drives contains yearly ,monthly wise sub folders.
    in that sub folders Scanned Copies stored with voucher numbers. this hard Copy of voucher number Updated in FI Document- document header text file.
    based on Input file name customized program to identify the File from External drive and find the URL of scanned File and attach in FB03- Service for object tool.
    How to achieve this requirement this through SFTP Script . FTP is not using in my System.
    highly appreciate if somebody help me on this..
    Regards
    satish

    Hi Satish,
    You may look into option of writing an ABAP program to scan through the list of files in the share drive and pick up one which matches the selection and then perform upload and attach to FB03.
    Some examples of coding is available in thread http://scn.sap.com/thread/1925928
    Regards,
    Deepak Kori

  • In mail i cannot choose individual files as attachment

    in mail I cannot chjoose individual files as attachment just the entire folder

    Did you assign the signature to the e-mail address you are using? Mail/Preferences/Signatures - select the account and use the + to add the signature to that account.

  • Maintenance Optimizer Step 2 - Select Files cannot view

    Hi,
    We're using Solman 7.0 EHP to download EHP4 for ERP 6.0. We have maintained in SMSY, system type = ERP 6.0.
    From the Maintenance Optimizer step 2- Select files, we cant see both the option of "maintenance" or "enhancement package installation" as shown in the SAP guide. The only option is "Find Download Files" button. Anyone here experience this issue before ?

    Hi,
    First of all, please make sure that:
    - You are a registered ramp up customer.
    - The S-user defined in AISUSER in solution manager has the
      authorization to download ramp-up installation files.
    Also make sure that you have installed all the notes listed in
    1122966 for your Solution Manager release.
    The option of installing Enhancement Packages in an ERP 6.0
    system is only offered in the Solution Manager Maintenance
    Optimizer if the systems assigned to the process are assigned to
    the product version ERP 6.0 or ERP 2005 in the Solution Manager
    system administration (transaction SMSY).   The product version
    ECC 6.0 must not be used for the installation of Enhancement
    Packages. The attached Note 1022072 describes step by step how to
    change a product version assigned to a system.
    The following notes should also be usefull:
       1134872 : Maintenance Optimizer: FAQ for Stack Delta Files in EPS
       1156571 : Maintenance Optimizer: Download Basket and SLM Download
       1168160 : MOPZ: Unicode selected automatically
       1170592 : MOPZ: S-User Enhancement
       1233954 : MOpz: No XML would be generated in EPS inbox
       1277035 : Solution Manager: EHP4 product data missing
    Best regards,
    Felipe Pitta

  • File upload (attachment) function does not work in screen suppliers appl

    Hi Friends,
    I am working with SRM5.0 SP08.
    I go to screen suppliers, opens newly registered suppliers (prospects). Under documents tab, we have an option to attach files manually.
    When I browse & select file on my PC and click on "ADD" button, this file does not get attached.
    Can anybody suggest solution, if have come across similar problem?
    Your valuable inputs will be highly appreciated.
    Best Regards,
    Prashant

    Hello!
    I used the REPAIR_BDS_OC1 report, but it sent me some lines in red, do i miss something?
    do i need to configure anything else?
    I have SRM 7.01  SP 0
    I continue without open the Document tab in SUPPLIER PRESCREEN
    I hope you can help me!

  • After updating to Mavericks, I can't seem to open files to attach to gmail messages.

    After updating to Mavericks, I can't seem to open files to attach to gmail messages. I can still drag and drop into them, but I'm unable to click on my documents through the paperclip icon on the bottom of composing my message.  Anyone else know a solution or facing the same issue?
    Thanks!

    Select
    View ▹ Show View Options
    from the menu bar. In the dialog that opens, select
    Arrange by: None

  • Selected file cannot be linked because its type (video) does not match the original file's type

    I've been using Premiere Elements 9 for a couple of years now, and a few months ago I began having problems importing AVI files created from a BlackMagic Intensity Pro capture card.  (These issues were not previously occurring, and since they surfaced, I have exhausted the various settings for the BlackMagic card, used various software such as BlackMagic's own Media Express as well as the freeware VirtualDub, and still have the following problems.)
    In addition, these AVI files play just fine, in their entirety, using Windows Media Player and in Quicktime.
    The problem (or possibly two, but I suspect they could be related) is that most of the AVI files I attempt to import will either (1) import all video and NO audio, or (2) import ONLY a short segment of audio and video, and the length that Elements imports varies.  Usually only in the range of a minute or two.  The rest of the file is not imported at all.
    After much digging in forums, and testing various settings in trying to figure out the issue, I decided to back up all of my files and completely wipe all hard drives and start over with a fresh installation of Windows and Premiere Elements 9.  I haven't installed much else yet, as I wanted to first find out if the reinstallation improved things with Elements.
    For the first project I created in Elements after the reinstallation, Elements successfully imported an entire AVI that was nearly 2 hours long, audio and video.  This was a file that previously would not import properly into Elements.  This suggested that my earlier installation of Elements must have been corrupted somehow.  At this point I was very hopeful that all was well.
    I proceeded to edit the video as I had wanted, saved the project, and exported it to an MPEG format file.  I had originally wanted to export it as an MOV, but I hadn't yet installed Quicktime, so Elements couldn't do that just yet.  The MPEG export was successful and plays fine.
    However, I then installed Quicktime, and once it was finished, I restarted the PC and reloaded the same project.  This time, Elements claimed the media was offline.  I double-clicked on a segment of the video, and directed Elements to the raw file, but then an error message popped up:  "The selected file cannot be linked because its type (video) does not match the original file's type (audio and video)."  This was the same file I had JUST edited and of which I created an MPEG.
    I tried creating a new project and the "Get Media" function to import the AVI again, but this time only the video imported with NO audio.  (This would explain why the error message said what it did, but not why the audio wasn't imported.)
    What in the world is going on with Elements???  I am baffled since the ONLY task I have done on this machine after a complete reinstallation of both Windows and Elements is edit one AVI.  I find it very hard to believe that just installing Quicktime caused this.
    Some info on my system:
    System:  Asus P6T w/ Intel i7 920 and 12 GB memory
    OS: Windows 7 Ultimate
    Video Software:  Premiere Elements 9
    Capture Card:  BlackMagic Intensity Pro (PCI-e)
    Capture Software:  AVIs recorded with either BlackMagic Media Express or VirtualDub (only prior to the reinstallation, as neither of these programs are currently installed)
    I'm getting to the point with Elements that I might need to just abandon it and find something else that is more reliable.  Anybody have suggestions to help with this, so I won't have to migrate?

    mtnsports
    We think that we need to start off with definiting the properties of these .avi files that you are importing into Premiere Elements 9.0/9.0.1 (assumed that you are working for the required 9.0.1 Update).
    You say that the "avi" was created from a "BlackMagic Intensity Pro capture card". What are the properties of this .avi that you imported into Premiere Elements? Not all .avi are created equal. What is the video and audio compression, frame size, frame rate, interlaced or progressive, pixel aspect ratio, typical duration?
    Based on the properties of the video what have you been setting as the project preset?
    Let us start here.
    More later.
    ATR

Maybe you are looking for