Same file name at Target with change in file extension

Hi,
I am working on File to File scenario. I need to create target file name similar to the source file name. This can be achieved by using ASMA. But my requirement is to change the file extension for the target file.
For example:
Source File u2013 InvoiceNotification.txtu2026.Then target file should create as
Target File - InvoiceNotification.csv
This can be achieved by using OS Command unix script in the receiver communication channel.
Is there any better way of doing this..say something like Dynamic Configuration or Variable substitution?
Thank you.

Hi Achuth,
I think you are doing content conversion at the receiver side. Go ahead with ASMA, get the file name.
DynamicConfigurationconf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKeyFileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
conf.put(FileName, a);
return "";
In the receiver file adapter, keep the extension as .CSV. That's enough.
Else you can follow as said by Abhishek Salvi. Either way you can achieve the requirement.
Thanks,

Similar Messages

  • How to resolve same file extensions conflict using LabVIEW ?

    All,
    Let's say I have two files withe the same file extension. One of the files opens only with one particular program whereas another file opens only with another program.
    So I was wondering, by using LabVIEW , if there is a way to tell (programatically) to which program are each of these files assigned to.
    I am not quite sure if there is something that can be done by using WINAPI or .NET?
    Please help
    Thank you  

    The only way you are going to be able to do that is if there is something within the file itself that gives an indication what program might have saved it.
    For example, in the header for an .xls file, there is probably something that describes it as Microsoft Excel, perhaps even the version of Excel, that was put there when Excel saved it.  But if you have another program save the file, let's say notepad was used and the user picked .xls as the file extension, then there is nothing that will describe that Notepad saved it.
    But all of this is basically what ToeCutter was already telling you.
    If you need more help, then you will have to provide more information such as what types of files and what programs were used that got their file extensions mixed up.

  • Make a file extension to open always with the same app

    Hello, do you know how can I make a file extension to open always with the same app. So far I have been doing it by double click > open with > other > and then mark open always with this app, BUT
    I do not want to do this very time with all the same file extension I have in my hard disk, is there any way, like in windows, to select and preset a determined app to always open all files with the same extensión in my hard disk??
    Actually what I´m experiencing and would like to change is to open always .pdf extensión with Acrobat and not with Preview
    Thanks very much in advance for your help!!

    OK!!!!
    Got it!!!
    Thanks anyway!!

  • Pick a particular file and keep on target side with the same file name

    Hi Guys,
    I have got couple of files in a folder. I need to pick only two files, I have setup BPM procedure 2 payloads merge. To keep these merged file with  the same source filename.
    Source side file Directory
    abc_12345_20100408101029.xml (abc_seq number_timestamp.xml)
    xxx12345.xml
    test.xml
    abc_12345_20100408101149.xml
    Target Side, How do I keep with the same file name?
    abc_12345_20100408111239.xml ---  same file name with diffrent timestamp.
    One more question: How to setup a file adapter to trigger between 2:00am to 5:00 am? in a particular time
    Does anybody has got quick idea, any links etc.,
    Your quick and positive response will be much appreciates.
    Kind Regards
    San

    Hi,
    One more question: How to setup a file adapter to trigger between 2:00am to 5:00 am? in a particular time
    For this you can Availability time planning (i.e you can schedule the file adapter to poll for the files with in the time interval i.e 2 -5)...
    for generating the file name at target side you need to look for the Dynamic Configuration as you need to change the timestamp for the file..and i am not sure how this works in BPM..
    in normal scenarios dynamic configuration will help....
    HTH
    Rajesh

  • Different photos with the same file name!! How to change this?

    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?

    Celtic Mom
    Welcome to the Apple user to user discussion forums
    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?
    It sounds like you are using the finder inside the iPhoto library - do not do that - you will corrupt your library and lose the edits, keywords, etc that you have
    iPhoto does not care about duplicate file names - it handles it fine
    changing the title of a photo does not affect the file name - although when you export the photo you can use the title for the file name as an option
    What are you doing and what do you want to accomplish?
    Remember do not ever make any changes in the iPhoto library using the finder or any other program
    LN

  • When saving a File OS Is Creating Multiple Folders With The Same File Name

    Not sure what I changed but, now when I save a any file (ppt. word, Keynote,Pages e.g.,) to the desktop or any other location the OS will also create multiple file folders with the same file name as the file I'm saving. Inside the folders are what appears to be files locating the saved files. What can I do to fix this problem?
    I'm using the 10.7.2 version
    MacBook Pro

    Misio wrote:
    It looks like a finder bug. To replicate, I surf to any website, I right-click on a jpg image, select "Save Image As" and in the window that pops up I type in the filename "000.jpg", I select the folder Pictures, and click on Save.
    BTW, I don't know why, but the file was saved only as "000" without the file extension ".jpg". Does anybody know why?
    the extension is simply hidden. go to the get info panel for the file and uncheck the option to hide the extension.
    Then I surf to another image, and again I save it as "000.jpg" and now it asks me if I want to replace the existing filename, although the existing one is "000" and I try to save as "000.jpg", so I say yes, and then magically the file is saved with the full filename including the extension "000.jpg"
    When I did it a couple of times, always saving image as "000.jpg" from various sources, I ended up with two distinct files named "000" and both in the same folder Pictures.
    Please advise.
    it sounds to me like you saved one file as 000.jpg and the other and 000.jpg.jpg.
    check the info panels for the files for full names to verify if this is the case.

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • Same file name in target as source file

    Hi,
    I am doing a file to file scenario in which there is no mapping involved, it is a bypass scenario.
    I want my target file name to be exactly same as the source file name.
    Source file name dynamically changes based on date and time.
    I have tried creating the target file using the Add timestamp characteristic. But it is not in the same format as the source file.
    How can I achieve this???
    Since there is no mapping invlolved, I can't use dynamic configuration or variable substitution.
    Please advice.
    Regards,
    Sachi

    Hi Sachi,
    -->Are you bypassing the mapping rite....?
    -->Then in your ID under Interface determanation what interface mapping did you maintained....?
    -->I think you are by passing the IR.
    -->I think this can be achived by using the ASMA but it requires the Mapping Program.
    -->Even the above blog explains about getting the same file name using the ASMA and UDF.
    Thanks

  • To retain the same file name in target(File) that coming from source system(AS2).

    Hi All,
    I have a requirement to send the two file from the third party system(GXS) to SAP ECC via SAP PI(version - 7.4). We are using AS2 adapter at the sender side to pick the file and using File Adapter to place the file in ECC.
    Its a pass through scenarion(No ESR part is used).
    Requirement:
    We are going to get 2 files ->Example:  one from Axis and another one from ICICI -> each bank file will have a file name ->
    We have to post the file at the target system with the same name as source file name, the source file name could come dynamically(with diff time stamp).
    Please let me know, Is it possible to achieve the above requirement(we have to retain the file name in target that coming from source system) with Sender AS2 adapter, If yes then please suggest the best approach.
    Regards,
    Pradeep Bawlia

    Hi Guys,
    The above requirement is solved now.
    Solution - I used java mapping for extracting the same source file name and assignning the same to the target system.
    Code:
    public class ExtractFileName_ASMA extends AbstractTransformation{
    public void transform(TransformationInput in, TransformationOutput out) throws StreamTransformationException  
    DynamicConfiguration conf=in.getDynamicConfiguration();
    DynamicConfigurationKey key_AS2FileNmae = DynamicConfigurationKey.create("http://sap.com/xi/XI/AS2/AS2", "AS2Filename");
    DynamicConfigurationKey key_FileNmae = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File", "FileName");
    String As2FileName=conf.get(key_AS2FileNmae);
    conf.put(key_FileNmae, As2FileName);
    try{
    byte b[]=new byte[in.getInputPayload().getInputStream().available()];
    in.getInputPayload().getInputStream().read(b);
    out.getOutputPayload().getOutputStream().write(b);
    catch(Exception e)
    2. Another solution we can use the graphical mapping and need to use the dynamic config UDF at mapping level to acheive this requirement but here is one drawback - we need to do content conversion is this case.
    In case of Java mapping, no need to play with source file.
    WITHOUT USING ESR, WE CAN NOT ACHEIVE THIS REQUIREMENT.
    Regards,
    Pradeep Bawlia

  • Getting old site off the 'net without appropriate files. (to start over with same domain name)

    As a complete novice, I'm not even sure how to start this question...but, I have tried everything and I think I have "lost" my website in terms of bringing in back into DW and changing/updating it.  My backup files on my computer have disappeared and the appropriate files through my cPanel to bring it back to in order make changes aren't there.  The website still functions, but it is outdated for my business needs.
    So, at this point, my question is this; how can I gain control over the domain and start over from scratch.  I don't want what is out there anymore, but without control through the above mentioned devices, is it even possible to build a new website and get the old one off the 'net as it is and still keep the original www.name.com?
    I'm clueless at this point.  Thanks.

    Chazmonk wrote:
    So, at this point, I don't know what is really going on.  My main goal was to get my existing website off the net and put something updated on with the same domain name.  I was successful with what JTANNA suggested, but I don't know what I'm doing with a mirrored site in terms of what my needs are.  I am not against changing the domain name and just leaving this one out there, though I did put a great deal of time into building it.  I would take some further help if anyone has more suggestions, but I'm about ready to move one.
    Thanks for trying to help.
    You will need to sort out the FTP issues because when you have edited your site, you will need to upload it and so FTP details will be required.
    Your first port-of-call to sort this out is to contact your host who can reset the password for you so that you can start all over again.  The alternative, is to give your password/login details to Murray (PRIVATELY) so that he can try from his machine.  When this is done, you can always change the password for your own security.
    hth

  • Combine Files into a Single PDF with Same File Name

    I have one PDF form that I have to fill in some data and a Microsoft  Word Document.   Sometimes I wait a few days so I need to complete the same PDF form.  When I combine them, I get warning that PDF forms with the same name will be the same - if I do not want this, I should create a PDF portfolio.  The portfolio does not see like I want.  It combines the PDFs into some else.
    I could change the names of the fields that I need, but I am sometimes afraid that I missed something.
    Is there a way to get away with this issue so the combination is good?  I have to fax the documents in once created and the portfolio does not seem like I can do that.
    Adobe Acobat XI Pro and Windows 8.1
    Thank you!
    Corey

    So I think I found it - you go to File - Save As Other - Discard and then check Flatten form fields.  The fields can be changed (but that is fine, I am faxing the pages). 
    So I guess I am trying to verify, is this the correct way?
    I ask because I found Eight Free Acrobat XI Actions for Legal Pros that leads me to down a .sequ file extension.
    If the first one is correct, and I have a PDF page that needs to be used twice in the combination, this will work?  And that data field (say 9ROW OF SERVICE) the first page can have 01/22/2014 and the second will have 01/23/2014?  I just want to make sure because before when I reviewed the Binder, if I entered 01/23/2014, then the other PDF page has the incorrect date of 01/23/2014 instead of 01/22/2014.  I ask this as well because sometimes I might have to change the date or something else in a field with the same field name, and that other PDF file will update.
    Thank you!
    Corey

  • Automatically replace jpgs with tiffs of the same file name.

    Is there a way to relink automatically files replacing jpgs with tiffs of the exact same file name?
    Thank you!

    http://indesignsecrets.com/relink-from-one-image-file-type-to-another.php/comment-page-1
    Relink from One Image File Type to Another
    by:  David Blatner  | February 20, 2009
    18 Comments
    Share This
    Eugene asked an excellent question in the comments to this old post:
    Say if I do decide to change the .tif to .psd and I move the .tifs out to another folder, would it or would it not be a good idea if Indesign said, “Hey, those .tifs aren’t available, there’s a similar name with a .psd extension, would you like to use these instead?” Then you just press, yes use my .psd files.
    Many folks had asked for this ability, and so Adobe delivered: InDesign CS4 has a feature called Relink to Folder. It’s an awesome command (it lives in the LInks panel menu) because it basically directs InDesign to some other folder on your computer (or server, or whatever), where your images may live. So you can relink a hundred images from one folder to another quickly.
    But even cooler, you can tell InDesign whether to insist on the same file type or use a different one. Here’s the control in the Relink to Folder dialog box:
    So, you select one or more images in the Links panel, choose Relink to Folder, tell it which folder to look in, and choose a file extension. The original image doesn’t even have to be “Missing”! In fact, the two images (psd and tiff, in your case) can even live in the same folder.
    Sweet, yes?

  • Downloads with same file name override each other

    This happens with large files and/or slow connection.
    - The default limit is loading 2 files at a time.
    - Suppose the user is currently loading A.txt and B.txt
    - While loading, user also clicks http://url1/C.txt and http://url2/C.txt (different URL but same name), and they are added to the queue.
    - Firefox loads both of them into a single file, they should be separated instead (C.txt and C-1.txt)

    Celtic Mom
    Welcome to the Apple user to user discussion forums
    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?
    It sounds like you are using the finder inside the iPhoto library - do not do that - you will corrupt your library and lose the edits, keywords, etc that you have
    iPhoto does not care about duplicate file names - it handles it fine
    changing the title of a photo does not affect the file name - although when you export the photo you can use the title for the file name as an option
    What are you doing and what do you want to accomplish?
    Remember do not ever make any changes in the iPhoto library using the finder or any other program
    LN

  • Multiple files with the same file name within the same folder

    It looks like a finder bug. To replicate, I surf to any website, I right-click on a jpg image, select "Save Image As" and in the window that pops up I type in the filename "000.jpg", I select the folder Pictures, and click on Save.
    BTW, I don't know why, but the file was saved only as "000" without the file extension ".jpg". Does anybody know why?
    Then I surf to another image, and again I save it as "000.jpg" and now it asks me if I want to replace the existing filename, although the existing one is "000" and I try to save as "000.jpg", so I say yes, and then magically the file is saved with the full filename including the extension "000.jpg"
    When I did it a couple of times, always saving image as "000.jpg" from various sources, I ended up with two distinct files named "000" and both in the same folder Pictures.
    Please advise.

    Misio wrote:
    It looks like a finder bug. To replicate, I surf to any website, I right-click on a jpg image, select "Save Image As" and in the window that pops up I type in the filename "000.jpg", I select the folder Pictures, and click on Save.
    BTW, I don't know why, but the file was saved only as "000" without the file extension ".jpg". Does anybody know why?
    the extension is simply hidden. go to the get info panel for the file and uncheck the option to hide the extension.
    Then I surf to another image, and again I save it as "000.jpg" and now it asks me if I want to replace the existing filename, although the existing one is "000" and I try to save as "000.jpg", so I say yes, and then magically the file is saved with the full filename including the extension "000.jpg"
    When I did it a couple of times, always saving image as "000.jpg" from various sources, I ended up with two distinct files named "000" and both in the same folder Pictures.
    Please advise.
    it sounds to me like you saved one file as 000.jpg and the other and 000.jpg.jpg.
    check the info panels for the files for full names to verify if this is the case.

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

Maybe you are looking for

  • How can I maintain a single connection between Forms 9i and JNI?

    I am creating a JNI interface into a legacy application written in Pro C. Currently this legacy system is accessed from Forms 6i through userexits. Under this setup the Pro C application is able to share the connection to the DB established by forms.

  • Videos don't show up after syncing

    When syncing videos to my iPad and iPhone, occasionally one or more videos will not sync properly. They're all in the same file format, and will play just fine in iTunes. When I look at the files on my iPhone or iPad (from the settings view for the d

  • Unable to connect to Internet through KRZR - please assist

    Hi folks. I have paired my KRZR K1 to my Macbook. In order for me to use bluetooth and connect to internet on the Macbook I need to input some info on the Macbook. Through reading he different forums I have inputted the following info: Tel #: WAP.CIN

  • MacBook Pro/ProTools version to use with Digi 002 (or switch to Logic)??

    I was in the middle of a recording session using a PowerBook running ProTools LE7.4.1 with a Digi 002 interface when my drive crashed (techs are telling me it was just old age).  I realize now I was playing with fire using 5-6 year old equipment & sh

  • DC-Jack Lenovo 3000 Mod. 0769

    Can somebody tell me the function of the wires going from the DC-Jack to the mainboard? Two wires are black, two other wires are blue and one wire is red. I am mostly interested in the red one, because I made a big mistake, putting 20 V to that wire.