Change name of output file.

Hello.
I'm a new in PI.
I have created communcation channel:
adapter type: FILE.
transport protocol: FTP
then I defined target directory and file name scheme.
In proccessing tab I choose Add Time Stamp. File was created in my directory, but with this name XXX20100618-153919-672.dat.
Can I somehow change the name of file like
XXX[ddmmyyyy][mmtt].dat
Thanks a lot!
Edited by: earnestik on Jun 22, 2010 6:49 AM

> In proccessing tab I choose Add Time Stamp. File was created in my directory, but with this name XXX20100618-153919-672.dat.
>
When you select Add time stamp the output file name come like that only,so chnaging name to your desired format at cc level not possible.
> Can I somehow change the name of file like
XXX[ddmmyyyy][mmtt].dat
Try with Dynamic Configuration UDF, in message mapping,then we can achieve this one easily.
String filename=XXX;
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
String timestamp = dateformat.format(new Date());
String newfilename=fileName+timestamp+".dat";
// change to new file name
conf.put(key, newfilename);
return "";
some small changes required in above code, do it your slef,
if you dont know how to use Dynamic Configuration UDF search in SDN.
Regards,
Raj

Similar Messages

  • Custom name to output file of syndication

    Hi
    It may be a dumb question can we control the name of output file while using Syndication server. 
    Regards
    Bala Pochareddy

    Hi,
    No...You can not. May be you can try to use OS level commands to rename the file once it is placed in the folder.
    Regards,
    Rajani

  • How to apply input file name to output file in file adapter

    Hi Friends
    In my file to file scenario,i want to use input file name to output file by using adapter specific attributes,for this i have java code.Please suggest me how can i use this java code in mesg mapping and to which field i need to mapping this.
    Thanks
    pullarao

    Hi Pullarao,
    I have two questions ...
    1. Are u want the static file name in the target file?
    if yes...then follow the Bhavesh instruction.
    2.If u want a dynamic file name in the target file using UDF....then your UDF should mapped to the <b>root element</b> of target structure.
    /**********UDF********/
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
           .getTransformationParameters()
           .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    /*******END UDF*******/

  • How to change name of home file on mac

    Hi, not entirely sure of the name of this file. Currently it is "anthonycullinane" which is my fathers name, it was changed when my iMac was taken into an apple store for a service, i don't have a clue why it would've been changed but i'd like to change it back
    if you look in the favourites bar in the finder window you'll see what i mean.
    I've attempted to "unlock" the file to allow changes to be made but there is no option to rename the file. The text input is grey and doesn't allow change

    You cannot rename your user account name easily. You need to do some extra steps and use the root user, so be very careful and make a backup of your files before modifying anything.
    Then, follow these steps > http://support.apple.com/kb/ht1428

  • To change name of output field hearder in SAP Standered report.

    Dear All,
    Is there any options to change the  name of output field hearder in SAP Standered report.
    Regards,
    Pankaj Vashista

    answered

  • Changing names for compressor files, nothing works yet.

    I've read different posts on how people have to change the name of the file before compressor will complete any sort of compression.
    Happened to me too constantly. So I'd just change the name once I got that red exclamation mark and then it would just finish compressing just fine.
    This time I changed the name before I clicked submit.
    The name of the file was Animal Control.
    But before clicking submit I named it Animal Control Audio, and Animal Control Video for both files.
    And I still got the stall out with the red exclamation mark.
    This is no good since I feel like I can now no longer rely on Compressor if I need go go somewhere.
    Thanks for any solution to my misunderstanding of the program.

    I'm having a hard time understanding your question. When exactly are you getting the exclamation mark warning, before or after submitting?
    If you're watching the History window in Compressor after submitting your encoding batch, then QMaster writes a file with the name you specified. In this case, when Compressor is still the front-most app, it will see that new file being written in your destination directory, and will put up the exclamation mark ... this is normal behavior.
    Also, have you tried setting a different destination to see if this clears up whatever problem you're having?

  • Change name of .xml file.

    Can anyone help me?
    Being new to podcasing and not realising that I only need one xml file even for multiple episodes I gave my file a specific name relating to the subject of my first episode. Realising my mistake I would like to re-name the .xml file, is that possible now that iTunes have already accepted my podcast?

    Sure, just copy your old file over to the new URL.
    Then edit the "old" copy and cram this into it:
    http://www.apple.com/itunes/store/podcaststechspecs.html#_Toc526931687
    So when Apple visits the old one, they find the new one.
    You can also do the fancy 301 redirect (not 302) if you know what that means, or want to figure it out. It's an HTTP response code in the HTTP protocol to note that a document has "permanently moved"

  • How to change name of downloaded file by URLLink.acsm

    When I browser my URLLink.acsm:
    "http://host:8080/fulfillment/URLLink.acsm?action=...."
    it download a file named "URLLink.ascm". How can I change that file name to "title.acsm" insteed of "URLLink.ascm"?
    For example: "ShakespearInLove.acsm".
    I'm using ACS4 4.1
    Many thanks,

    Thanks for this thread !!!
    ...that Is a question I asked myself today as I used Adobe ADE for the first time.
    (I hope they enhance it --- it is REALLY unpractical for reading eBooks).
    When you open the URLLink.acsm file in a Text-Editor,
    you will see a lot of tags inside < and >, like:
    <fulfillmentToken>
      <distributor>...</distributor>
      <operatorURL>...</operatorURL>
      <expiration>...</expiration>
      <transaction>...</transaction>
      <resourceItemInfo>
        <resource>...</resource>
        <resourceItem>1</resourceItem>
        <metadata>
          <dc:title>...</dc:title>
          <dc:creator>...</dc:creator>
          <dc:format>...</dc:format>
          <dc:publisher>...</dc:publisher>
          <thumbnailURL>...</thumbnailURL>
        </metadata>
        <src>...</src>
        <downloadType>simple</downloadType>
      </resourceItemInfo>
      <hmac>...</hmac>
    </fulfillmentToken>
    I tried to change the filename inside the <dc:title> tag.
    However this is the filename on the server where you download your eBook.
    Does anyone know an "<output-tag>" that lets the user determine the filename?
    Or any other solution??
    Strange that on the whole www this question has only been asked once...

  • Is It possible to give custom name for output files in Bursting

    Hi ,
    I am using bursting for mailing the output and PDF files are coming with names such as xdo1_null.pdf can the name be changed to invoice.pdf ..etc
    Thanks in advance
    Best Regards,
    Mahesh

    sample file, you can use any name and append the xml data elements too...
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type ="bursting">
    <xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO">
    <xapi:delivery>
    <xapi:email id ="123" server="[email protected]" port="25"
    from="[email protected]" reply-to="[email protected]">
    <xapi:message id="123" to="[email protected]" cc="" attachment="true"
    content-type="text/html" subject="Purchase Order Number: ${EMPNO}">Please
    see attached Purchase Order File: ${EMPNO}</xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="PO_${EMPNO}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="xdo://CUS.TEST_BURST_1.en.US/?getSource=true"
    filter=""></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Edited by: Sattti on Nov 2, 2008 8:26 PM

  • How to change name of uploaded file

    I am using the a multi-part form and the pl/sql gateway to enable users to upload files to portal. The files automatically get stored in the wwdoc_document$ table. The key to the file is a column called "name" which consists of a sequence number and the file type e.g. 4747.gif.. I want to change this name to a different value.
    When I change it using the standard sql Update statement, none of the pdk apis work on the record; they all return errors. I am able to change this value as long as I use a unique value, I just can't run any of the wwdoc apis against the row after that.
    Does anyone know how to change this value for a given row???
    Mike Kleiman

    See Upload taglib in Coldtags suite:
    http://www.servletsuite.com/servlets/uptag.htm

  • Changing name of class file and it still working

    I am simply trying to change the name of this class file i have named G3webcam.class
    and i want to change it to webcam.class when i do this the applet does not work any more. If someone knows of a simple fix please help me.

    Look at previous post...you cannot do this with a class file. The class loader will try to find G3webcam.class and cannot find it...so it will throws an exception.
    In order to change, you need to the source code to all the classes of your application, including G3webcam. Then, you can rename the G3webcam.java to webcam.java. Change all the name of G3webcam in the source code to Webcam (including all source file tha use this class). The compile the application. Java compiler will then create the webcam.class file for you.
    Unless you're an expert in reading the Java byte code, i don't see anyother way. (Reflection maybe?, but then, you will have to have the code inside your application to do that, which i doubt at this moment)
    DJ Decompiler or any decompiler only decompiler the Java byte code to text...so you can read it in text. You can save it as webcam.class, but it will do nothing except make the application not running again.

  • How do you change name of the files before sending files to FTP site?

    Hi guys,
    my environment is SQL Server 2008 R2.
    Currently, I'm trying to figure out how to tackle the following project:
    I have over 100 files that I need to send via FTP on daily basis.
    Before doing so, I must change the extension of the file to a specific characters stored in a sql server table, for example if the file name is Store1.txt the new name will be Store1.111
    I was hoping that you guys can point me in the right directions :-)
    Codernater

    I would use a script task for renaming, Pass the data from the SQL table with the extension you want via a object variable to the script task iterate the files in the directory and rename as requried
    this code and link would help you
    http://stackoverflow.com/questions/12347881/renaming-files-in-folder-c-sharp
    DirectoryInfo d = new DirectoryInfo("....");
    FileInfo[] infos = d.GetFiles();
    foreach(FileInfo f in infos)
    File.Move(f.FullName, f.FullName.ToString().Replace("abc_","");
    Abhinav http://bishtabhinav.wordpress.com/

  • Portal change name of upadated files

    Hi,
    when I update a file in a content area, Portal changes its name.
    I update a file entering in edit mode, I click on "browse" and then I search the new file to upload.
    If one (or both) of this two conditions:
    - item level security
    - item versioning (and checkout is made)
    is enabled, Portal gives to file a new name, generally created adding "_0" or "_1" etc...
    I'd like to leave ever the same file name. Is it possible to do? I don't want to disable anyone of two settings I've described above.
    Please help me.
    Thank you

    Always look on http://portalcenter.oracle.com for any documentation related to Oracle Portal.
    You'll find the configuration guide on the Documentation page. See Section B.8 Managing the Session Cleanup Job.
    Regards,
    Jerry
    PortalPM

  • CHANGE NAME OF A FILE

    Hi to All
    I need do it the following:
    I process a file, this file is store in server aplication SAP, and going to be always. I open the file and process the information here stored.
    But, I need mark this file, so that the next process, doesn´t consider this file.
    ¿How I do so that the program rename the  file ??
    Thanks by their aid
    Regards
    Dario

    Programmatically you can rename the file on the applciation server, but you can copy it and into a new file name, and delete the one.  Here is the an example.
    report zrich_0001.
    Parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
                d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.
    data: itab type table of string.
    data: wa type string.
    start-of-selection.
    * Read file
      open dataset d1 for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset d1 into wa.
          if sy-subrc <> 0.
            exit.
          endif.
          append wa to itab.
        enddo.
      endif.
      close dataset d1.
    * Copy to new file
      open dataset d2 for output in text mode.
      loop at itab into wa.
        transfer wa to d2.
      endloop.
      close dataset d2.
    * Delete the first
      delete dataset d1.
    Regards,
    Rich Heilman

  • Using referenced files in Aperture and changing names of Master files

    My Aperture library (masters) are stored on an external hard drive. The label for each image is simply the one that the camera supplied on the SD card. After importing the images into Aperture, I give them a more meaningful version name. Is there a way I can now add those version names to the masters stored on the external hard drive? (I would eliminate the numbers provided by the camera) Please give specific steps if this is possible. Thank you so very much!

    You can change the name of the Master as it is imported into Aperture, have a look at the manual regarding Import Options:
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=4%26sec tion=6%26hash=apple_ref:doc:uid:Aperture-UserManual-91292IMP-SW8
    For masters already added to your library you can rename them to match the version names, have a look at the manual regarding Renaming Master Image Files:
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=5%26sec tion=15%26tasks=true

Maybe you are looking for

  • Cant find and uninstall

    I tried to download free trial but there is an window apperas ,,A conflicting or prerelease version of Adobe Photoshop Cs6 exit on this computer.The confliction version must be removed befor installing from curent media.,, I tried to search that exis

  • Aperture help/questions - File Size, Versions, etc

    Hi, I am new to the Mac, and after a small learning curve am now loving it. Can’t believe what I missed all those years under Windows. Anyway one of my biggest problems has been workflow and photo management, so I rushed out and bought Aperture witho

  • Cannot ingest .MTS files from Canon Vixia HF S200

    I have an iMac, OS 10.6.8, Intel Core 2 Duo processor.  I'm using FCE 4.0.1 and MPEG Streamclip 1.9.2.  My camera's parameters are:  video compression MPEG-4 AVC/H.264; 1080/60i frame rate; FXP (17Mbps) mode. With the camera powered and plugged in (U

  • Creative Vado HD Pocket Video Cam Firmware v1180 released!

    Hi everyone, There is a new firmware release available in the download section. Creative Vado HD Pocket Video Cam Firmware v80 Release date : 2 Jan 09 File Name : VADOHD_PCFW_US_80.exe div class="DownloadDate">[b]This download contains an improved ve

  • JDeveloper 11.1.1.4 Design tab not visible

    Hello Everyone, I'm using SOA 11.1.1.4 version and I have unable to see the Design tab along with Source and History tab in BPEL. I've updated the SOA Extension and restarted the Jdeveloper and still facing not appearing the desing tab. What I did I