Dynamic File Name as source file format

Hi Experts,
I have to load daily Excel Workbook to HANA.
Files will come to shared Folder in BODS Job Server in the format 'FILE_NAME_<DAYMONYYYY>'.xlsx format.
Everyday the file name will be appended with System Date Format.
Example: 'FILE_NAME_17JUL2014.xlsx', 'FILE_NAME_18AUG2014.xlsx' etc.
I tried to achieve it by creating a substitution parameter and using it to dynamically define file name.
But I am not able to define the parameter correctly. (screenshot attached).
Please advise where I am doing wrong.  Is there any better way to achieve it.
Thanks,

Hi Bala,
Thanks for your suggestion.
For a test I have created
1. A Flat File named "FLAT_FILE_2014.txt".
2. A Global Variable $G_FILE_NAME as varchar(18) and value 'FLAT_FILE_'||Year(sysdate())||'.txt'.
3. Used it in the File Name for File Format.
Below is the result:
When I hard-code the file name as "FLAT_FILE_2014.txt", I am getting the data Preview.
But When I am using global variable $G_FILE_NAME, I am not getting the data Preview.
Please check attached "C.png"
Please suggest.
Thanks,
Krishnendu.

Similar Messages

  • 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

  • How to create Same file names for source and target.

    hi
    Can any body send Procedure for below requirement.
    how to create the dynamic file names for a source and save the file with same name in the Target, because it has to identify that which sender had sent the file and the target file should be again sent back to the customer as a link.
    Please help me.
    Thanks

    Hi,
    See the below link
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - sender file name as receiver file name
    Regards
    Chilla

  • How to overwrite source files, or use source file names?

    Hi all
    I would like AME (5.5.1.12, under Windows 7) to overwrite the source files that it is encoding, or if that's not possible, save the exported files to a different folder with the same file names as the sources.
    However I can see no way to do this without manually specifying a file name for every file. I need to process 400 files so this is not practical.
    Currently AME automatically adds a "-1" suffix to the exported file name, whether it's saved in the same folder as the source or a different folder.
    Can anyone advise, please?

    Hi Jim,
    Thanks for the reply. However, overwriting source files during a batch process is a common feature in audio/video software. It's possible in Audition, for instance, as well as in third-party programs such as Sound Forge, Wavelab and Samplitude.
    Presumably in these cases the software writes to a temporary file, either in RAM or on the hard drive, before deleting the original and replacing it with the new one.
    I'm surprised to hear that AME can't do this for conversions that stay within the same file format (such as the bit depth of a wave file).

  • Error dynamic File Name in Receiver File Adapter

    Hi all,
    Dynamic file name for Receiver file Adapter Problem
    my multi mapping look like this in design mode
    messages
         message1
              SD01_E
                   FileName
                   row
         message2
              SD02_E
                   FileName
                   row
    by processing the xml look like this:
    <ns2:SD01_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    or
    <ns2:SD02_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    in file receivere adapter  i have try this but it dos not work
    payload:SD01_E,1,FileName,1
    Error:com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:1, col:0)
    is there any way to have access to Filename  in different root elements??
    regards
    Ralf

    Hi Ralf,
    i think, you need for each XML msg (each different root element) a new adapter -> a new IF determination, new rec agreement and a new channel.
    Regards,
    Udo

  • Plugin Register Error - Assembly file name is in invalid format. Only file name is allowed.

    Hi,
    when I add a step in a plugin registered in disk using the 2013 or 2011 tool for CRM 2013. it got a error as below.
    Assembly file name is in invalid format. Only file name is allowed.
    Anyone know this? thank you.
    Detailed log as below
    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid
    format. Only file name is allowed.
    Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ErrorCode>-2147204719</ErrorCode>
      <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid format. Only file name is allowed.</Message>
      <Timestamp>2014-12-31T05:16:55.9984484Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147204719</ErrorCode>
        <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid format. Only file name is allowed.</Message>
        <Timestamp>2014-12-31T05:16:55.9994483Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>
    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at Microsoft.Crm.Tools.Libraries.RegistrationHelper.RegisterStep(CrmOrganization org, CrmPluginStep step)
       at Microsoft.Crm.Tools.PluginRegistration.StepRegistrationViewModel.btnRegister_Click(Object sender, EventArgs e)
    Dynamics CRM Consulting

    Hi,
    Have you checked the below links.
    http://mscrmdeveloper.wordpress.com/2014/09/04/problems-adding-step-to-disc-based-plugin-assembly/
    http://gustafwesterlund.blogspot.com/2014/05/issues-with-new-plugin-registration-tool.html
    Hope this Helps!!!
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • 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.

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • Logical File name of Transaction File

    Hi All,
    I am using FILE_NAME_GET function module to get the Physical file name based on logical file name.
    But here i am not getting total file name, i maintained Physical File name as ZDM\INTB18\<PARAM_1>.
    Transaction File is stored in application server and it's name is ZDM\INTB18\RMCB18_DATETIME.
    Could you please anybody suggest how to get total file name.
    Thanks,
    Rami Reddy.

    Hi Rami,
    Have you utilised the Parameter WITH_FILE_EXTENSION in the function ... e.g.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
      physical path (Windows): C:\SALES\<FILENAME>
    Get file name for WINDOWS platform, with file name extension
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          WITH_FILE_EXTENSION = 'X'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Rgds, Derrick

  • Configure receiver file name as Sender file name

    Hi All,
        In PI7.1.  We have scenario(file to file). Here the sender system send multiple files and In the receiver system we need to populate the same filenames as Sender file Names.
    Could you please let me know is there a configuration to have Receiver file schem name As like sender file names.
    Thanks in Advance,
    Naga.

    Hi Naga,
    This can be achieved using either variable substitution or Dynamic Configuration by enabling Adapter Specific Message Attributes in sender and receiver file channels.
    If the sender file name and receiver file name needs to be exactly same then just check Adapter Specific Message Attributes in advanced tab of both sender and receiver channels. Check on File Name under that.
    Lot of help over this is already available in sdn, kindly serach and you will get lot of helpful blogs and wikis
    Regards,
    Gautam Purohit
    Edited by: Gautam Purohit on Apr 16, 2010 11:26 AM

  • Mapping physical file name to logical file name

    Hi All,
    Can anybody let me know wht is the procedure to map a logical file name to physical file name. wht is the use of logical file name when there exists physical file name?
    Thanx in Advance

    As far as creating the Logical path  it’s done through the transaction code ‘file’ by using options
    Steps are:
    1. Logical file path definition which is logical file path name.
    2. Assignment of physical path to logical path - where we give the physical path to the logical path name defined in the last step.
    After creating the Logical path the procedure to attach the file name to the Logical path is as follows:
    Use the function Module C13Z_FRONT_END_TO_APPL to upload the file from the front end to the application server.
    Source file on front end will be the CSV file path which is to be uploaded to the application server
    Target file on application server will be the physical path of the file on the application server where the file is to be uploaded.
    Attach the physical path of the file on the application server to the Logical file using transaction code ‘file’.
    Logical File:   The Logical name of the file which will be used by the interfaces to upload the file
    Physical file:  The name of the physical file on the application server
    Logical path:  The path of the physical file on the application server where it is stored.
    The possible reason for the use of Logical file name could be we can have directories within SAP in which we can have logical files stored. These files can be used by various interfaces. Different Logical paths can be used for different interfaces. the second reson can be to give more user friendly name to the file rather than a long physical name to the file.

  • Get file name of running file

    I simply want to know what is the filename of the running file
    i.e.String findFileName(){
    //return this program's file name somehow
    }If you are wondering why do I want to know this, then here you are:
    I'm making a feature for downloading the latest version of the application and then replacing the old version with the new one.
    Any help?

    MariusGav wrote:
    I'm making a feature for downloading the latest version of the application and then replacing the old version with the new one.Do you mean just like java web start? Perhaps you should look at how this works and either use it or learn from it.
    I simply want to know what is the filename of the running fileIs that the class file, the jar file or the source file? Files don't run. Threads run code in class methods.
    If you are wondering why do I want to know this, then here you are:You can try
    URL urlForThisClass = getClass().getProtectionDomain().getCodeSource().getLocation();

  • 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*******/

  • Outgoing file name as incoming file name??

    Hi,
    I have a scenario FILE >XI>FILE.
    I need to write the outgoing file with the same name as the incomming file.
    For example the incomming file is abc.txt. The outgoing file from SAP should be abc.txt.
    Any SUGGESTIONS!!
    Regards
    Vijaya

    Hi,
    you have to create a module to the file receiver adapter that will insert the filename into the payload of the XML message
    sap note:
    819761 - XI 3.0 File Sender: Accessing source file name from a module
    then you can use <b>variable substitution</b> (from SP12)
    to name your output file
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    this is how you should do it:)
    Regards,
    michal

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

Maybe you are looking for

  • How to Specify Metadata When Adding Content Using iTunes U Web Service?

    I've been developing Java applications using iTunes U Web service and uploaded content to iTunes U site using iTunes U Web service without problem. Now I want to add metadata fields (name, artist name, album name, etc.) for the tracks I uploaded. It

  • Group/Ungroup in Pages version 1.2 not working

    Hi, In Pages version 1.2 I have a problem using group/ungroup. When I create two objects, for example circles, selected them both an touch one object to get the popup menu, there is no group option available. In both Numbers and Keynote this option i

  • Logic+digidesign 192+Motu 828MKII: lightpipe or not?

    I'm thinking of stopping with the combination DAE+DTDM and switch to DAE+Core audio+Motu 828 MKII. My questions: - Does core audio with 828 MKII sounds better than DTDM with digi 192? - Is DAE+Core audio more stable than DAE+DTDM? - Is it sufficient

  • Installing the EM Agent

    Hi, I have a server with a few databases and got an EM Grid Control installed a few months ago. Everything works fine, but now I have another server with also a few databases on it that I want to connect to the current OMS. I have problems during the

  • How to change deployment.properties

    hi there, here's the situation : i am working on an intranet aplication with jws. The company has a proxy. So most of the users can't access internet. The users need to install java 5.0 to run the application. I've managed to automatically install it