How to get filename from mail attachment

Hi all,
I have a XI scenario Mail->XI->RFC. I have created my own adapter module which handle all attachments from incoming mail.
Everything work fine, but in my module I try to get information about filename of mail attachment. I use getContentType() metod to get the filename but this method return only the mimetype of the document. The getDescription() method return olny string "mail attachment". I need to get the original filename of the attachment or at least the file extension. 
Is it possible to get the whole filename from mail attachment?
Thanks
Peter

Hi,
You can tryout with adapter modules . You can make use of following Adapter attributes also -
http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
Similar discussion-
Email attachment file names
PayloadSwapBean-
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Regards,
Moorthy

Similar Messages

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • Unable to get filename from mail to XI to file scenario

    Hi
    How could i get the name of an attachment to be used as the file name on my File Adapter in a Mail to file scenario? 
    I recieve the files as attachments and I have used the payload swap bean to swap my actaull message content to attachment. That works perfect, the contents of the file are saved successfully on my file system.  The file is sent as a plain text file and not xml and no mapping is done, I just get the files from the mail and save them into a file server for further processing.
    Your help will be highly appreciated
    Ronny

    Hi
    I have installed my Module, but when I try to call it from within the adapters I get an error
    exception caught during processing mail message [614]com.sap.aii.af.mp.processor.ModuleProcessorException: Error during processing local bean: localejbs/mailAttachmentFileNames caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of mailAttachmentFileNames.
    I have searched all the logs and the module is active. I even restarted my J2EE engine, twice but still nothing..
    please assist
    Ronny

  • How to get filename from selected directory

    Helle experts,
    I've a string variable from a directory with following content:
    G:\SAP_R3_MRSS\SAP_MRS\FAVORIT.PDF
    now I just want to select the filename, in this case FAVORIT.TXT
    How can I do this ? The directory/filename may vary.
    Some ideas ?
    Thanks
    Gerd

    Eric's split is probably the best way, but if you need a way to break the path into drive, path, and file, you could use a standard, well-used regular expression:
    PROGRAM zzfile.
    DATA:
       g_regex     TYPE string VALUE '\b((?#drive)[a-z]):\\((?#folder)[^/:*?"<>|\r\n]*\\)?((?#file)[^\\/:*?"<>|\r\n]*)',
       g_path_file TYPE string VALUE 'G:\SAP_R3_MRSS\SAP_MRS\FAVORIT.PDF',
       g_drive     TYPE string,
       g_path      TYPE string,
       g_file      TYPE string.
    FIND FIRST OCCURRENCE OF REGEX g_regex IN g_path_file SUBMATCHES g_drive g_path g_file IGNORING CASE.
    IF sy-subrc = 0.
    *  WRITE g_drive.
    *  WRITE g_path.
      WRITE g_file.
    ENDIF.

  • How to get a voice mail or recording (from the microphone) to repeat?

    I want tp know how to get a voice mail to repeat, once I have listened to it.  Same question for something I have recorded with the microphone.

    Tap the voice mail or recording you want to repeat.  It should start playing from the begining again.

  • How to get string from jtextpane along with its attributes

    sir,
    How to get string from jtextpane along with its attributes
    i,e font,size,style,color etc.
    please help me out.
    my mail id is [email protected]

    JTextPane extends JTextComponent
    JTextComponent.getDocument()
    a Document is a set of Element, see Document.getRootElements(). Each Element has attributes, stored within an AttributSet object see Element.getAttributes()
    a Document can also be rendered as a String, see Document.getText( offest, length ), use it with 0 and Document.getLength() as parameters.

  • HT4489 how to get Contacts from my google account?

    how to get Contacts from my google account?

    If you mean you want to get them in iCloud, export the contacts from Google as a vCard (see https://support.google.com/mail/answer/24911?hl=en), then import this to iCloud (see http://support.apple.com/kb/PH3605).

  • How to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos

    how to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos

    Make sure Settings > iCloud > Photos > iCloud Photo Library (Beta) = "Off"
    Then sync your iPhone using iTunes and make sure your sync settings for photos are set correctly in iTunes.

  • I got a new computer and don't know how to get music from ipod touch to itunes library

    I recently got a new computer and don't know how to get music from my ipod touch to show on my itunes library. 

    You need to transfer the iTunes folder from the old computer to the new one.
    iTunes: How to move your music to a new computer (Mac or Windows):
      http://support.apple.com/kb/HT4527

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • How to get data from PDF form?

    PDF forms can send data in url like GET or POST method. Is it possible to get data from url, like in PHP http://sever/file.php?item1=value1&item2=value2&item3=value3
    In APEX url have specific construction and I don't know how to get value of items (1...3)
    Please let me help to find simple method of geting data from URL.
    Best Regards,
    Mark

    The APEX URL syntax is detailed here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BCEDJBEH
    How to get it from PDF is another matter...
    I'm working on an app that downloads PDFs with a Large amount of data as a blob, takes that blob and changes it to XML, then goes through the xml to validate each section of data and then add it into the schema that my apex app is referencing....
    I didn't write the original code but I do know that it isn't a quick thing to implement and includes using some uploading some java jar files to your schema and writing some custom java code.
    Someone else may be able to help with grabbing PDF data into the URL for the amounts of data you want to pass to apex.
    Gus..
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
    Edited by: Gussay on Sep 21, 2009 5:52 PM

  • How to get Position from EmployeeInfo in DIAPI

    I am using DIAPI(JCO) for SAP B1. According to one or my reuirement i am in need of Position from the EmployeesInfo. But there  seems no option or method for getting position from that. Can anyone guide me how to get that from EmployeesInfo ? Any help is appreciated..

    Looking at the DI API properties vs. DB fields mapping documentation in the SAP Business One developer area (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c5f5dbcc-0a01-0010-5d82-f25f2bee715e)
    it seems that this field is not exposed (yet).
    I.e. you could only run a SQL statement to get this information.
    Sorry,
    Frank

Maybe you are looking for

  • Difference between sy-datum and sy-datlo

    difference between sy-datum and sy-datlo

  • Could this be the DC-in Board?

    Hello! I'm hoping someone can help me out. I have an iBook G4, 1.4G w/ 512 onboard. (No peripherals plugged in) - Ok, so here's the deal: History: Yesterday I was burning a DVD. I copied the dvd to my harddrive, and then opened Toast to burn it to a

  • Is there a way to open a corrupted image?

    I took about 80 photos with my Canon PowerShot A590 last week of very cool street art in SF.  About 7 of the photos were of artists doing their work ... a one time opportunity to catch this.  Later that day I looked back at those photos in the camera

  • Report on actual dispatches without WMS

    Dear All, My client has a requirement to get a report on actual quantity dispatched from a warehouse on a daily basis. With movement type 601, what we can find is the invoiced quantity for a particular date, which may be due for delivery on any other

  • Multiple scxi 1127 switches scanning, dmm 4070

    Hi, I am using 2 switches SCXI-1127 in a PXI/SCXI combination chassis. The readings are done through a dmm 4070. I need to scan 60 thermocouple channels, i.e. 32 on the first one and 28 on the second switch. Now, I found http://zone.ni.com/devzone/cd