REG: Output File Name

Hi All,
          I have a file to file scenario where mapping is not used. My  Input file name is "XXXX.txt" and i want the output file name as "XXXX.dat". But the problem is XXXX is not a constant value but a dynamic value and i cant use a UDF because there is no mapping for this interface. Is there any other method by which this can be achived?
Thanks,
Siva

Hi!
For your input file you can work as follows:
Put the file in a special directory and then read this directory using wildcard filename definition:
e.g. *.txt looks for and processes all files ending with *.txt
For your output file (receiver file adapter) you may work with os command "rename" and/or try it using this stuff:
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6a316af5a23672e10000000a114a6b/content.htm
Regards,
Volker

Similar Messages

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Output file name format

    Hi All,
    How can i configure output file name to the desired format generated in target directory in communication channel configuration in conf scenario.
    ex: i want to generate the file in the below format..
    YYYYMMDD_<Receiver>.TXT
    Thanks and Regards
    Venkatesh

    Hi,
    This is the UDF u have to write in Mapping,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key =
    DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    Using this u will get the File name into target side,In this UDF add the Time stamp.
    Check this link for more details.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    phani
    Reward points if Helpful

  • Setting output file name in export transaction data package

    Hi all,
    I am running an "export transaction data" package in the data manager. I wanted to set the output file name so that it will be a constant value. I wrote the following in the package editor:
    INFO(%FILE%,\ROOT\WEBFOLDERS\COLMOBIL\VEHICLES1\DATAMANGER\DATAFILES\vehicles_to_pca2.txt)
    TASK(/CPMB/TD_FILE_TARGET,FULLFILENAME,%FILE%)
    The system run the package and reported success but the file was not created. When i did the same with an existing file name, it was not updated.
    When I run the same package with the following PROMPT command instead of the INFO command:
    PROMPT(OUTFILE,,"Please enter an output file",Data files (*.txt)|*.txt|All files(*.*)|*.*)
    The system works fine.
    Any ideas?
    TIA
    Avihay

    I am sad to report that apparently Adobe does not do a very good job with the PDF printer. I have just spent over an hour with support to get the answer we can not help you. I guess I will have to spend $50 for NovaPDF to handle my problem. It's a shame when a superior overall product like Acrobat is not able to keep up with the knockoffs on the small things.

  • Require output file name same as input file without extension

    I am doing a POC where I require that my output file name should be same as input file name. The input is a XML and output is Flatfile. If I use %SourceFileName%,
    i am getting the output with extension. How can I remove the extension? Do I need to write a custom pipeline component?

    I don't think Orchestration or custom Pipeline can help you on this as  you are setting
    %SourceFileName% Macros at your send Handler which comes after Pipeline Processing .
    As you are converting xml file to Flat file I would suggest to use  Macros  as
    %SourceFileName%.txt 
    %SourceFileName% Macro gives the file name along with extention. This won't work!

  • When I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
    ''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.''

  • How to programmatically disable prompts for output file names in Acrobat X

    My code to programmatically disable output file names (below) is not working on a Windows 7 64-bit machine using Acrobat Distiller X.  It works perfectly on a Windows XP machine with Acrobat Distiller 8.
    The latest API Reference I was able to find is dated June 2008.  My logic follows this convention.
    I have confirmed that the registry key is updated as specified below.  I have also confirmed that I am able to write to the directory indicated.
    Please provide any suggestions to resolve. 
    Thank You!
    ~Lori
    'Create the Registry Key where Acrobat looks for a file name
            CreateNewRegistryKey HKEY_CURRENT_USER, _
                         "Software\Adobe\Acrobat Distiller\PrinterJobControl"
    'Put the output filename (FilePath) where Acrobat could find it
            SetRegistryValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.EXE, _
                     T:\PDF Files\Current Week\NFS_Lori,Test.pdf

    I remember seeing that the problem is thunking. A little more specifically, because it's a 32-bit driver but a 64-bit executable, there's a 32-bit system spooler process which will always show up as the EXE name.

  • Can I print to AdobePDF with a pre-determined output file name?

    I have a list of PDF files that I need to reduce in size. I have tried many combinations of Adobe's "Save As Reduced PDF", "Save As Optimized PDF", as well as several compression programs. The best results I've found have been to print the PDF via AdobePDF, using the standard quality settings.
    This leads me to my problem. It's simple to batch the print process to print multiple files to AdobePDF, however each one requires the user to specify the output file name. Is there a way to interface with the AdobePDF tool in a way that the output file name is already determined? I.e. passed into the program as an argument? Any help would be greatly appreciated.
    Thanks,
         Dan
    EDIT: Under the Adobe PDF Settings, the option for Adobe PDF OUtput Folder is set for Prompt for Adobe PDF filename. There is also an option to dump to Documents\*.pdf, which retains the original filename. Is there a way to specify a different directory, rather than Documents, while retaining the *.pdf argument? Again, thank you.

    You would probably get better results printing from Acrobat. The HTMLLoader rasterizes the image first. You could possibly add a JavaScript function inside the PDF that prints and call that from your AIR app.
    See http://www.adobe.com/devnet/air/flex/quickstart/scripting_pdf.html for information on calling JS functions in a pdf file from AIR.

  • Use job parameter as output file name "alias" ?

    I have a Hyperion 9.3 job with a # of cycles. Is there a way to tell Hyperion to use the job parameter/filter as part of the file name? For example, if there is a filter called "division" and for one of the cycles that is set to "sales", is there a syntax like "{division}" I can use in the output file name so that it picks up the filter?

    Unfortunately, I have never seen any kind of syntax that would allow this in Hyperion. The only way I know to do it would be using the java sdk, but that is not something that can be done on the fly...

  • Configure:3955: checking for C compiler default output file name

    Hi,
    I am trying to configure oracle bsd on AIX and got the below error,
    # sh /ldap/db-4.6.21.NC/dist/configure
    checking build system type... powerpc-ibm-aix5.3.0.0
    checking host system type... powerpc-ibm-aix5.3.0.0
    checking if building in the top-level or dist directories... no
    checking if --disable-cryptography option specified... no
    checking if --disable-hash option specified... no
    checking if --disable-mutexsupport option specified... no
    checking if --disable-queue option specified... no
    checking if --disable-replication option specified... no
    checking if --disable-statistics option specified... no
    checking if --disable-verify option specified... no
    checking if --enable-compat185 option specified... no
    checking if --enable-cxx option specified... no
    checking if --enable-debug option specified... no
    checking if --enable-debug_rop option specified... no
    checking if --enable-debug_wop option specified... no
    checking if --enable-diagnostic option specified... no
    checking if --enable-dump185 option specified... no
    checking if --enable-java option specified... no
    checking if --enable-mingw option specified... no
    checking if --enable-fine_grained_lock_manager option specified... no
    checking if --enable-o_direct option specified... no
    checking if --enable-posixmutexes option specified... no
    checking if --enable-pthread_api option specified... no
    checking if --enable-rpc option specified... no
    checking if --enable-smallbuild option specified... no
    checking if --enable-tcl option specified... no
    checking if --enable-test option specified... no
    checking if --enable-uimutexes option specified... no
    checking if --enable-umrw option specified... no
    checking if --with-mutex=MUTEX option specified... no
    checking if --with-tcl=DIR option specified... no
    checking if --with-uniquename=NAME option specified... no
    checking for chmod... chmod
    checking for cp... cp
    checking for ln... ln
    checking for mkdir... mkdir
    checking for rm... rm
    checking for sh... /usr/bin/sh
    checking for a BSD-compatible install... /ldap/db-4.6.21.NC/dist/install-sh -c
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    and in config.log,
    configure:3955: checking for C compiler default output file name
    configure:3982: xlc_r -O2 -D_THREAD_SAFE -Wl,-brtl conftest.c >&5
    /ldap/db-4.6.21.NC/dist/configure[3983]: xlc_r: not found
    configure:3985: $? = 127
    configure:4023: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Berkeley DB"
    | #define PACKAGE_TARNAME "db-4.6.21"
    | #define PACKAGE_VERSION "4.6.21"
    | #define PACKAGE_STRING "Berkeley DB 4.6.21"
    | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    | #define HAVE_UPGRADE_SUPPORT 1
    | /* end confdefs.h. */
    |
    Is this beacase valid c compiler not existing?
    # which cc
    which: 0652-141 There is no cc in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    # ksh: which:: not found.
    # which c
    which: 0652-141 There is no c in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    Thanks,
    Message was edited by:
    GK Joe

    Joe,
    I presume you are trying to build Oracle BDB and not bsd as you have mentioned.
    Yes, the error message you are getting is for not having the CC compiler in your system or the path isn't set. Check in the /usr/vac/bin directory if you have one in your system. You might find both xlc and cc compiler there. Set this directory to your path so that 'configure' can see it.
    Regards,
    -Debsubhra

  • XML Publisher - Specify Output file name

    Hi All
    I am using XML Publisher in one of our OAF pages to generate PDF reports based on some parameters. I am using the shared region which OAF has provided. On export, I see that the output file name is : template code + random number + _out.pdf. Is there anyway to specify custom output file name?? As this is little critical for me, any pointers would be greatly appreciated.
    Thanks in advance,
    Murari

    Hi Avaneesh,
    Thanks for your prompt response. I see that the logic for file name is in xml publisher utility class: DocumentHelper. I dont see any option to pass file name as a parameter to DocumentHelper. So I am not sure if extending OAF region controller : "DocumentViewerCO.java" would be of any help?? Please correct me if I am wrong. Did you ever try changing output file name from OAF page?
    Many thanks,
    Murari

  • Output file names from Premiere sequences in AME CS5

    Why, oh why, does AME not automatically names files according to their sequence names when added from a Premiere project? Instead, it auto-names them sequentially based on the project name. It is extremely annoying and confusing when trying to queue-up a project with many sequences.
    Is there a way to change this behavior (other than to simply disable "Increment output file name", which results in multiple targets of the same exact name) ?
    I really wish you could have it name the files like the sequence names.

    Just to confirm what you're saying: Premiere Pro sequences added to AME from Premiere Pro are not being named properly? Because they should be...
    However, Premiere Pro sequences added to AME from AME (File > Add Premiere Pro Sequence) are NOT named for the sequence, and there is no way around this; you get the project name with a serial digit. There is no setting to change this behavior, unfortunately--it is how it is.
    I must agree: it is a particularly annoying oversight. How to change this behavior? Like this: Adobe - Feature Request/Bug Report Form

  • Output file names

    Is there a way to keep Compressor from adding the project name and settings name to the output file name? I know I can change it but it's a PITA with lots of files in a batch. I just want the original file name to be output.

    Under Destinations, duplicate your "Source" destination. Then click on it and look at the Inspector. You will be able to eliminate the "-Setting Name" part from your Template. Then change your prferences to make to make your Source-Copy the default Destination.

  • Dynamic output file name for scheduling a BIP report

    Hi All,
    I have a BI Publisher report. It has Department as prompt. we need to run the report for each department. I need to schedule the report such that, for each department i need to FTP the output with file name as department_INFO.pdf in the one folder (i.e. if dept is ABC, then i need to store the output with file name as ABC_INFO.pdf and ftp to the folder). Folder will be created already in the server.
    We have around 40 departments, so i need to manually schedule this report 40 times with 40 files names and ftp the output to the folder in the server.
    Can we dynamacally give the output file name based on the prompt we are using to run, instead of manually scheduling for each department.
    Please help me ASAP..we cant move further due to this problem.
    Regards,
    Sandy

    .

  • Make output file name reflect preset used?

    Is there any way to have the output file name reflect the preset used, similar to the way Apple's Compressor does? I need to do batch conversions for 20+ tv stations and individually renaming every output file to refect which tv station is super tedious. Any way to do this in Adobe Meida Encoder or should i just use Apple's Compressor?

    You should do this manually in Adobe Media Encoder, and not use Compressor.
    "Adobe Media Encoder is much easier to use than Compressor, encodes faster, and produces much higher quality output, as you can see in the video that accompanies this article."
    http://www.eventdv.net/Articles/News/Feature/Tutorial-Encoding-H.264-Video-in-Adobe-Media- Encoder-CS5.5-and-Apple-Compressor-4-80446.htm

Maybe you are looking for

  • Interaction Record and Multi Level Categorization

    Hello Forum, I would like to know if any one has implemented Multi level categorization for Interaction record in SAP CRM Web IC 7.0. If so how did you acheive this. I have done the following -     Create Catalogs, Codes and Code groups -     Create

  • My Noisy 24" HD

    Well..it's almost 2 weeks since I got my new 24' Imac. It's beautiful..no dead pixels and the fans are silent. The issue is the noisy Seagate HD. This is my second Intel Mac in less than a year, so I have some basis of comparison when it comes to noi

  • Filtering noise over 200kHz

    Hello! I'm recording rat ultrasonic vocalizations at 1MS/s using a PCI-6132 DAQ.  A colleague of mine is analyzing the sonographic data from the recordings, and asked me to apply a filter to the signal as it's recorded.  The specifications he asked f

  • ITunes Match disappeared?

    My itunes Match has just randomly stopped working on my iphone, playlists have disappeared. Settings weren't changed, all set to on. The only thing that \ changed is I updated my payment info in my account yesterday. Eeverytime I open an apple app (s

  • Error Code 21

    Just tried to sync my iTouch to a Windows Vista (as I normally do) and it said another update is available for download. I downloaded and then an error code 21 came on and it won't restore the iTouch. It just seems to be stuck and won't work on other