Target file name - YYMMDD FILE - how to achieve

Hi guys!
I need to produce target file in my receiver fila adapter of name, where date is a part of the name. However, it is not a part of message, so there's no way, how to get it from payload.
Any ideas, how to achieve it?
example: 070924FILE
Olian

Hi Olian
have a look at this Thread
mapping UDF
File Name with extension
mapping UDF
Re: convert to julian date
Thanks !

Similar Messages

  • XML as target file - how can i change its character set?

    Hi all,
    i need to create my target as XML-file und to save all my information there, but with other character set (not with default). In other words i must have in XML-file in header
    <?xml version="1.0" encoding="ISO-8859-15"?>.
    Now i have
    <?xml version="1.0"?>.
    What can i do?
    Thanks in advance.

    I don't think Finder does this (I've tried).
    iTunes does though. Where you can set artwork or the "poster frame"...
    This may not be what you want but if it helps, I know 2 ways  do this is
    Open the video in QuicktimePlayer7 | View | Set Poster Frame (even then, you might need to save it as .mov (ie in a 'mov container').
    Drag the file into iTunes and set the artwork (as in http://www.dummies.com/how-to/content/adding-album-cover-art-or-images-in-itunes .html)
    From there, iTunes will use that frame as the "poster frame" ie the photo/frame that shows when you browse your videos. Which is what you want, but limited to iTunes.
    When I do either of these above, the frame I set does not show when exploring files in "Finder" (or in the other Explorer tool I use called "Pathfinder").
    So it maybe, that exactly what you want, is not possible.

  • How to get target file name and buffer the incoming messages?

    Hi Experts
    I have one scenarion like
    I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    I dont want to add any time stamp for target file to avoide duplication.
    Can we do this using XI. If yes please suggest me how to achive this.
    Regards
    Sowmya

    >
    Sowmya wrote:
    > Hi Experts
    >
    > I have one scenarion like
    > I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    >
    > I dont want to add any time stamp for target file to avoide duplication.
    >
    > Can we do this using XI. If yes please suggest me how to achive this.
    >
    >
    > Regards
    > Sowmya
    there is no standard way to achieve this. I suggest a redesign.
    post the files to a different directory and write a script which will move the file to the required target directory only if it is not present there.

  • Variable subsitution for target file names

    Hi All,
    I am using variable subsitution for dynamic file names. I am using the multimapping for multiple files in the target.So i coluld not able to use the dynamic configuration for file names. Now i want to replace all the spaces in the filename to underscore.
    For example
    My payload filed value "file name in the target file".
    Now my filename  "file_name_in_the_target_file".
    How to achieve this using Variable subsitution.
    Regards,
    Ramalakshmi.G

    Use replaceString Function.
    file name
    Constant (" ")               --> replaceString -------> TargetField
    Constant ("_")
    Regards
    Ramesh

  • Target file name as field in target structure

    Hi SDNers,
    I have a requirement where I need to populate a field in target structure with the target file name, this will be a counter.
    So if the interface is run 2 times already the third file should have name XXXXXXX_03 and also this needs to be mapped to a field in the target structure.
    Any ideas on how to achieve this?
    (Pls Note: I am aware of ASMA and variable substitution)
    Regards,
    Gautam Purohit

    Hello Gautam!
    File adapter - How to pass File name and path at runtime
    This SDN topic probably covers the requirement you mentioned!
    BR,
    Lucas

  • Field names with spaces in target file using fcc

    Hello Friends,
    My target structure fields:
    MT_Target
    ItemNo, ItemName, ItemQuantity, AmountValue, TotalAmount
    My requirement here is - In the target file - these fields should be generated with space. Shown as below:
    Item No, Item Name, Item Quantity, Amount Value, Total Amount
    How can i achieve this.
    Thanx
    S.

    if i understood u correctly u want to have a header line in ut target file same as that ur field names but with a space in between??
    if yes  the use :
    NameA.addHeaderLine=3
    NameA.headerLine =Item No, Item Name, Item Quantity, Amount Value, Total Amount
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

  • Need to genereate Target file name same as Source File Name thru Local J2SE

    Hi Everyone,
    I want to genereate Target file name exactly same as Source File Name. I know how to handle this in Central Adapter Engine(Sender & Receiver Communication Channel).
    But I need to do this in Local J2SE adpater engine.
    Please help me in this regard.
    Thanks & Regards,
    Nagaraju

    U can use the parameter to save the filename in the message header
    file.messageAttributes=<name,directory>
    This is similar "Adapter-Specific Message Attributes" concept.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm
    Regards,
    Prateek

  • Need Target File  Name  Timestamp  is  same  as Source File name Timestamp

    Hi ,
           I want to genereate Target file name (Target_09062008082030.xml)   but  this time stamp is exactly Sorce FileTime stamp..(Source_09062008082030.xml)..
         so, i want to create a  target file  with the same source file time stamp.. 
    for this.. i sed Message Specific attributes... in both sender and receiver side.. but  that was creating with the complete name.of source file name.. but i want only Timestamp of the source filename... and remaing is the constant.. for this  how can i proceed  ..
    Thanks
    Jain

    See in Sender CC when you set the Adapter Specific Message Attr  for file name it will send the filename in the header of the XI Message.
    To acces this file name inside mapping you need to create a UDF . The type can be any thing as you desire.
    You dont need to pass any variable .if suppose you want the file name (constant) e.g ABC_<timestamp>.xml
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String fileName= conf.get(key);
    //see above your key is FileName which will be sent by the sender CC automatically... You are simply accessing it here using get() method.
    //now ur filename will contain name of the source file... you need to perform a substring operation to get the timestamp and create a new file name as you desire.
    fileName = "New_<timestmp>.xml"; //for e.g
    //set this file name again in header message using put()
    conf.put(key, fileName);
    //when you check on the adapter specific message attr for fileName in the receiver CC ,it will automatically take this new file name value.
    return fileName;
    // if you want to use this new fileName inside your mapping payload (for other fields) you can assign this to any target field,else just assign it to the root tag which will make no difference if this file name is not used anywhere.

  • Regarding Target File name

    Hi Everyone,
    I want the Target File name to be as Update_Order_%y%y%y%y%M%M%d%d%H%H%m%m%s%s.A04.
    How do i proceed to create such files.
    Any help would be appreciated.
    Thanks & Regards,
    Varun

    >
    Varun Reddy wrote:
    > Hi Everyone,
    >
    > I want the Target File name to be as Update_Order_%y%y%y%y%M%M%d%d%H%H%m%m%s%s.A04.
    > How do i proceed to create such files.
    > Any help would be appreciated.
    >
    > Thanks & Regards,
    > Varun
    Hi,
    1. In the Sender File Communication Channel, check the option Set Adapter-Specific Message Attribute and Filename.
    2. Assuming Update_Order is a constant string, Use this UDF. If Update_Order is a element at your source structure, pass it as a parameter to the UDF.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" );
    dateformat.format( new java.util.Date() );
    String tagetfilename="Update_Order_" + dateformat;
    conf.put(key, newfilename);
    Regards,
    Chandra

  • Target file of the same name as source file

    Hi,
        I am working on a file to file scenario. I need the target file name to be same as the source file name.
        I checked the adapter specific message attributes in the sender as well as receiver file adapter,and also checked the file name.
        Now am using variable substitution for the file name in the receiver file adapter.
        I defined the variable value as :
        message:FileName
       But no file is getting created in the destination folder.
       Can anyone help me out with this.
    Thanks and regards,
    Pravesh Puria.

    Pravesh,
    If you have selected  File adapter --> Adapter Specfic Attribuest --> File name in the sender and receiver file adapter , then do not go for variable name substittutuion.
    Just make a dummy file name in the receiver file adapter for the file name field and XI will automatically use the same file name as the source when creating the file.
    Regards,
    Bhavesh

  • How to create variable record length target file in SAP BODS

    Hi All
    I have a requirement to create target file which will have various record layout; meaning different record length (similar to cobol file format), but this is for the target. Please let me know what is the best practice and how to solution this requirment.
    Thanks
    Ash

    Hi Shiva,
    Thanks for your feedback. My issue is that I have 10 different detail records (each record type is fixed length).
    For each customer account, I have to write to file the header record, the detail records in the exact order, then continue with next account and so on and then write the trailer record. I have given sample layout below. Highlighted text is the record identifier in this exmaple while the underlineds are account numbers. Fields are fixed length right padded with space or 0.
    220700000000SA00    Wednesday     2014-12-12  ASA00034 334 000   ---> (this is header)
    220700000010SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000010SA14 AAA  00034354 DDD 000000000+    --> (detail rec)
    220700000010SA15 888e a88 00000000+            --> (detail rec)
    . . . . . remaining detail records
    220700000012SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000012SA14 AAA  00034354 DDD 000000000+   --> (detail rec)
    220700000012SA15 888e a88 00000000+           -->  (detail rec)
    . . . . . remaining detail records
    220700000000SA99    Wednesday     2014-12-12  d334 000   --> (trailer is header)

  • File name in the target file field

    Hi,
    In this below particular blog we are creating the UDF and assigning the output of UDF to a filed in the target file structure.
    /people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
    And even we are entering the target file name manually in the UDF. Whatever the filename that we enter in the UDF that will also be displayed as the target file name. To do this even we are selecting the adapter specific attributes.
    Please correct if my understanding is wrong.
    thanks
    kumar

    Hi Kumar,
    <i>Whatever the filename that we enter in the UDF that will also be displayed as the target file name</i>
    Yes
    <i>To do this even we are selecting the adapter specific attributes.</i>
    "We could be" instead of "we are". If u want to access sender metadata, u should use ASMA.
    Check this out
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    <i>[Reward if useful :)]</i>
    Regards,
    Prateek

  • How do i add time and date to target file

    hello,
    1. When do we generally go for FCC?
    2. Is it possible to assign field seperator without FCC on the reciever side file adapter?
    3. how do I add timestamp as well as DATE to the target file?
    thnks
    venkat

    Hi venkat
    1. When do we generally go for FCC?
        we can do the FCC at sender side as well as at the receiver side.
        Sender side: we do the FCC at the sender side only if we are getting a flat file   from the sender, and so that it can be understand by the XI,because XI can understand only the XML.
         Receiver side:we do the FCC at the receiver side only if the receiver requires the flat file.
    2. Is it possible to assign field seperator without FCC on the reciever side file adapter?
    no, it is not possible.
    3. how do I add timestamp as well as DATE to the target file?
    if you want to add date and time in the target file for this you have to select the parameter
      File Construction Mode* : AddTimeStamp
    in the processing parameters of the file adapter(Receiver).
    Thanks
    Rinku

  • Tried opening a file in library and it states can't open database with library name? It says Relaunch then will not open? and Blocks me completely from Aperture. I have to go to Finder to Rename it? I need this file how do I get it to open?

    Tried opening a file in library and it states can't open database with library name? It says Relaunch then will not open? and Blocks me completely from Aperture. I have to go to Finder to Rename it? I need this file how do I get it to open?

    Aftershotz,
    You're going to have to give a bit more information.
    What do you mean by "opening a file in library?"  There is no function of Aperture to open files -- you can open (switch) libraries.
    You'll have to be more specific about error messages, too.  Perhaps some screenshots would be useful to diagnose your problem.  "Can't open database with library name" is not enough detail about what Aperture is really telling you.
    nathan

  • How to achieve Incremental deployment of Code Files to different environments of windows azure using TFS and Visual Studio ?

    Hi
    We are new to Windows azure and are developing a web application. In the beginning of the project , we have deployed complete code using Sitefinity Thunder to different environments which actually publish complete code. But now as we are in the middle of development
    , we are just required to upload any new files created which can be quite less in numbers (1 or 2 or maybe few). Now if we deploy with thunder , it publishes all files and then deploys complete code which takes good amount of time. Hence we are thinking to
    attach each Azure Cloud Service which is actually a different environment like staging, UAT to a TFS branch and then just check in code from local development machine to TFS and then deploy only checked in files to azure environment linked to TFS.
    I hope this possible but if you can help send some links where I can see how to achieve this , that will be helpful. 
    Also I would like to know whether a single cloud service can be linked to a single TFS branch or multiple cloud service can be linked to a single TFS repository? Why I am asking is – because we want to deploy a checked in files revision number to a staging
    cloud service and then will test there and then if everything works well then will be required to deploy these revision files to the next cloud UAT cloud service and then production cloud service. Please help.

    Hi,
    We can use TFS to manage our azure cloud service application code, refer to the following to get more information about how to deploy sitefinity to azure.
    #http://www.sitefinity.com/documentation/documentationarticles/manually-deploying-your-project-to-windows-azure
    #http://www.youtube.com/watch?v=E2aZ7lE1JUA
    #http://www.sitefinity.com/documentation/documentationarticles/sitefinity-azure-configuration
    If any question about sitefinity, please redirect to sitefinity forum:
    http://www.sitefinity.com/developer-network/forums if the issue was related with azure, welcome to post again.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • My iPod isn't recognized by my computers...

    I own an iPod Shuffle and ever since iTunes 7, my iPod isn't even recognized by my computer...however, I can listen to my iPod, but I can't charge it at all so I have left it alone. Is this happening to anyone else...Is this what everyone else is tal

  • Picture in screen painter

    Hi, How to insert a picture in screen painter.? Thanks, Suresh

  • Java 2D custom paint

    Hi im using the following line of code to display my nubers on screen g.drawString(this.toString(), 25, 25); and this is the toSting method it uses public String toString(){ return String.format("%s : %s", systolic,diastolic) ; However this is plain

  • Model BEFW11S4 wireless router just stopped working with Mac; still works with Windows

    I have the above model Linksys wireless router, hard connected to a Windows XP Pro desktop unit. I also have a Windows XP Home laptop. My wife has a Mac PowerBook laptop. On Thursday last week her laptop started having trouble connecting to Internet.

  • Invalid Batch ** in Batch Determination

    Hi The system does not propose any batches, I receive the error message above.  What else could be missing? Analysis Log shows only as follows: Batch stocks are being read...    Batch 0000000060 Storage location 0020 Search according to selection cri