BW Archiving / Dynamic archive file name

Hello Experts,
i would like to archive the data in a cube by each period. Hence i want the archived file name to indicate the period also so, that it can be easily identified, which file contains which period data.
Eg File Name : 0FIAR_C03_PER_01_2005
where 01_2005 denotes that the files contains period 01_2005 data.
Could some one please suggest how can this be done using the function module FILENAME_EXIT_ ? Would appreciate if you could give me the exact steps for this.
Thanks in advance,
Sanjay

hi Sanjay,
create your function module name, e.g
FILENAME_EXIT_<u>FIAR_C03</u>, in logical file name maintain (transaction FILE >> logical file name, cross client), for 'Physical file' put <F=<u>FIAR_C03</u>>.
not sure if you can just use system parameter like <YEAR>, <MONTH>, etc.
for function module, you can manipulate 'output' for the file name. maybe see FILENAME_EXIT_ARCHIVELINK and FILENAME_EXIT_EXAMPLE.
detail system parameter for physical file can see :
http://help.sap.com/saphelp_nw04s/helpdata/en/2a/fa02aa493111d182b70000e829fbfe/frameset.htm
hope this helps.

Similar Messages

  • In OSB file protocol, trying to get the archived file name in proxy service

    Hi,
      I have a requirement that i need to process the archived file of file protocol,  with java callout in proxy service.
    I am able to get the file name which is reading with 'tokenize($inbound/ctx:transport/ctx:request/tp:headers/file:fileName,"\\")[last()]' , but this file is getting archived to archive folder. I want to pass the archive file name as input to the Java callout.
    Please let me know if  this can achieve in OSB proxy or any other options.
    Note : I am reading a xlsx file in the file protocol

    If you're using pass by reference option in the file transport, I guess the archive filename can be obtained from $body/ctx:binary-content/@ref. Try it out.

  • Is there a way to pass archive file name to the command-line control?

    Hi there,
    I have been researching the flash media live encoder laterly. But still cannot find confirmed anwsers on the following questions:
    1. Is there a way to pass an archive file name to the command-line control when starting an encoder?
    2. Can the username/password to the Flash Media Server be saved in the profile? If not, is there any otherway to provide(GUI mode) them automatically,
        like as variables to a script?
    Thanks a lot in advance.
    Helen

    1. The only way to inform the command-line encoder about the archive file name is to save the FMLE session profile with the file name. The node for saving the file name is <output><file><path>C:\sample.flv</output></file></path>. The easier way to update the xml profile is to use "Save Profile" option of the GUI mode. If you want to programmatically update the file name, read the profile and update the node before launching the encoder. I hope this answers your question.
    2. No. Credentials can't be saved in the profile. The only way to provide them programmatically is to use /ap and /ab commands for the command-line encoder. For GUI mode, there is no programmable option. But still you can try capturing keystrokes.

  • File Adapter - Archived file name issue

    Hello all.
    I am using an 11g composite application to read from the file system and move/archive the files to a "Backup" subdirectory. Everything works well, but the archived file name has the original filename plus an extra long guid. E.g.
    File_1.DAT_156dsfsdgw67rqwedb1c6b54d6fh7yerfa16wewet168erw)-dsfsdg
    Does anyone know how I can control the archiving feature of the file read adapter? I would love for it to just move the file to the Backup folder and keep the original filename.
    I look forward to a response.
    Thank you.
    Nick G.

    Thank you Sahil. I will look into it and test. I will post my results.
    Nick G.

  • How to capture Archive File name in File/Ftp Adapter

    Hi,
    I want to capture the archive file name when working with File/Ftp Adapters. I think there is no out of box property available to achieve this (Like jca.file.filename).
    Please let me know if there is any possible solution.
    Thanks
    JGun

    Hi,
    Use jca.file.PhysicalArchiveDirectory/jca.file.LogicalArchiveDirectory depends upon which you have configured.
    Thanks

  • What is to be given archive file name?

    hi
      I am importing a standard aplication "welcome"
      by following the following steps:
           file->import->par file.
      now it asks for 3 things .
      what is to be given in archive file name.
      For  project root folder: i m selecting "welcome"
      from the Program Files\SAPinst_WAS\J2EE-CD\IDE\eclipse\workspace\welcome  .

    Hi Kamlesh,
    > what is to be given in archive file name
    The "Archive file name" is the full qualified name of the PAR to be imported. You can browse for this PAR.
    Next entry is "Project name". This is the name of the project to be created. When you try to deploy the project later on, NWDS initially suggests this name as the name of the PAR file (but you can modify it, and this modification would be used next time you'd try to deploy again).
    > For project root folder: i m selecting "welcome"
    The "Project root folder" is the folder under which the project will be created. This should be somewhat constantly for all projects you are creating.
    So if you want to import "com.company.welcome.par", which is on your hard disc under c:/someFolder, the entry for "Archive file name" would be "c:/someFolder/com.company.welcome.par".
    If you want to use the same namespace as given, under "Project name" you'd just use "com.company.welcome". If you want to do midifications and to deploy the resulting PAR under a different namespace, you could use "com.company.modifiedwelcome".
    And last but not least under "Project root folder" you can use something like "c:\sap" or "c:\development\portalprojects"...
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Archive File Name

    Is it possible to get the archive file name and directory. If so how?
    cheers
    James

    No the way I worked around this issues was to create an another adapter that would write the archive using the adapter headers. So I had to manually configurate it and not use the standard archive functionality.
    cheers
    James

  • Dynamic Receiver file name in AS2 adapter

    Hi Experts,
    How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.
    We tried selecting dynamic attributes file name but we are getting followin error in CC.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.
    Thanks,
    Hari

    hi hari,
    You can't do it manually. As both adapter are in different context.
    You can go with UDF to slove ur problem.
    Just extract the input file name using Dynamic configuration
    Store that in some variable.
    Use same name in the dynamic file name in AS2 receiver. Below code might be useful.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
    conf.put(key,strfilename);
    Thanks
    Jai
    Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM

  • Dynamic Logo file names in PO XSL-FO stylesheet

    We have different company logo files for different operating units. Hence , we require to use a dynamic logo file name in XSL-FO template.
    When I use the below for a single file it works.
         <fo:inline>
    <fo:external-graphic content-width="50pt" content-height="50pt" src="url({'${OA_MEDIA}/Logo_medium_COMCEL.jpg'})" />
    </fo:inline>
    However, I would need to make the filename dynamic.
    When a tried usng an xsl variable tos tore fielname, it didnt work.
    Any pointers as to how we can achieve that would be helpful

    Thanks for your quick reply Dave, I appreciate your time.
    But I couldn't test the new template as I was neither able to create a new PO nor was able to run the PO Output for communication Report. When I tried to create a PO the Purchase Order form did not open saying I am not setup as an employee, even the PO Output for communication did not give any LOV for the PO's.
    I tried to define employee name in the employee's login
    information (System administrator/Security/User/Define) for my user, but some how my name doesn't appear in LOV. Any help is appreciated.
    Thanks,
    Sharmila

  • Include the file dynamicly by file name

    in my jsp,I want include another jsp dynamicly
    <%@ include file="thefile.jsp" %>
    thefile.jsp should be dynamic like:
    <%=String filename=="thefile.jsp" %>
    <%@ include file=filename%>
    I know above is not working since file only take static name.
    is there any way to include the file dynamicly by file name?

    String path = "..."; // to the ressource to include
    javax.servlet.RequestDispatcher dispatcher
              = getServletContext().getRequestDispatcher(path);
    dispatcher.include(request,response);

  • Creating dynamical flat file name in mapping?

    Hi.
    I know about the variations on how to use an input parameter and/or sysdate to create a dynamic output file name in a mapping.
    My challenge is nearly the same, but I cannot make OWB generate the correct code.
    Problem:
    - got a one column table that holds an identifier in a string field
    - got a function that reads and returns said identifier
    - imported function into OWB
    - trying to use the function call in the Flat File Operator's Target Data File Name, e.g. fixedfilename||fn_get_id()||sysdate||'.ext
    OWB creates the code:
    UTL_FILE.FOPEN(
    'my_location',
    'fixedfilename'||fn_get_id()||'_'||SYSDATE||'.ext',
    'w',
    32767
    However, when compiling the package code, it returns the warning:
    ORA-06550: PACKAGE BODY, line 2214, column 29: PLS-00201: identifier 'FN_GET_ID' must be declared
    which results in an error when trying to execute the mapping.
    I've tried substituting the function call in the FOPEN call:
    myId := fn_get_id();
    UTL_FILE.FOPEN(
    'my_location',
    'fixedfilename'||myId||'_'||SYSDATE||'.ext',
    'w',
    32767
    and this works fine, the mapping creates a file with the desired filename. But obviously not a good solution rewriting the generated code all the time....
    Anyone solved something similar?
    Could I use an input parameter and the autogenerated function GET_<PARAMETER>?
    But can I set the value of an input parameter inside the very same mapping?
    Regards,
    -Haakon-

    (It always helps writing out one's problems...)
    I managed to get it working :-)
    Added an input parameter to the mapping, and gave the outgroup variable a default value by calling my imported function.
    Then concatenated the implicitly generated function (GET_PARAMETER) in the Target Data flat file name.
    I now have a target file name that changes according to a departement id stored in a parameter table.
    Regards,
    -Haakon-

  • Dynamic attribute file name

    Hi All,
              I am trying to use dynamic attribute file name using UDF in message mapping:
    <i>String filename = null;
    filename = "Yahoo";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://seeburger.com/xi/common" , "dtSubject");
    conf.put(key1,filename);
    return "";</i>
    But its just giving me the name on the receiver side as in the sender side.
    I have checked FileName in Dynamic attributes in the reciever adapter.
    Regards,
    XIer

    your return statement looks like <i>return "";</i>
    Return the filename that you have assigned inside the UDF and can be achieved by
    conf.put(key1,filename);
    <b>return filename;</b>
    Do refer this blog as well
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

  • When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the original file name being replaced during the downloading process?

    When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the file name being changed during this downloading process?

    Hi Glenyse,
    Here are my steps.
    1.  I upload multiple image (jpg) files onto my photo album.
    2.  I select the "sharing" by email option for this album.
    3.  I enter the recipient's email address.
    4.  The recipient receives my message and clicks on the link.
    5.  The recipient accesses my photo album and clicks on one of the images.
    6.  The image opens up to its own screen.
    7.  The recipient selects the "download" and then save file option.
    Here is the part I do not understand.  For some reason, during this "download" process, the original name which I have given to the file is replaced by different name.  So I was hoping that someone knows how to prevent the file name from being changed during the "download and save" process.
    Much appreciated if you can help me find a solution to this problem.
    Mary  

  • Archive File Name in FTP adapter

    Hi,
    While archiving a file using an FTP adapter, I want to archvie it with a name which is going to be generated dynamically. However i don't see any placeholder where i can mention the file name for achving. Can anyone please suggest.
    Thanks,
    Phani

    Hi Phani,
    did you figure out a solution?
    Anders

  • How To Control The Archive File Name using file adpater or OSB file traspor

    Hi all,
    My requirement is I want to archive a file by appending my BPEL instant id to the file name.
    Is this possible changing the file name when archive the file???
    Thanks
    Phani

    I couldn't find that out when I had the same requirement. I was running out of time, so I let Archive functionality works as it works and used the write file option with opaque schema.

Maybe you are looking for