Same file name in target as source file

Hi,
I am doing a file to file scenario in which there is no mapping involved, it is a bypass scenario.
I want my target file name to be exactly same as the source file name.
Source file name dynamically changes based on date and time.
I have tried creating the target file using the Add timestamp characteristic. But it is not in the same format as the source file.
How can I achieve this???
Since there is no mapping invlolved, I can't use dynamic configuration or variable substitution.
Please advice.
Regards,
Sachi

Hi Sachi,
-->Are you bypassing the mapping rite....?
-->Then in your ID under Interface determanation what interface mapping did you maintained....?
-->I think you are by passing the IR.
-->I think this can be achived by using the ASMA but it requires the Mapping Program.
-->Even the above blog explains about getting the same file name using the ASMA and UDF.
Thanks

Similar Messages

  • Dynamic File Name depending on the Source File name

    Hi Experts,
    I have a problem like Dynamic File name depending on the Source File Name. I will explain with example as follwos
    Source File name                 Targer Folder/Filename
    NK01.VR59.L2007030         VR59/Rec.l200
    NK01.VR71.L2017030         VR71/Rec.l201
    NK01.VR77.L2027030         VR77/Rec.l202
    See above the exaple, Depending on the Source file name, I am deciding where i need to place my file and what name i need to name it.
    So please suggest me the solution and How can i do this with a single communication channel ? Do i need to create multiple CC for each folder??
    Points will be rewarded for Valuable anwer.
    Thanks in Advance,
    Best Regads,
    Vijay

    Hi VIjay,
    Thanks for quick reply. But i am getting error in End to End Scenarios only. If i remove the Return " "  statement from the UDF, while activating it is showing the error saying like missing return statement. I also mapped to the top most node to this UDF.
    I am getting the following error in End to End error Scenarios:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Same file name at Target with change in file extension

    Hi,
    I am working on File to File scenario. I need to create target file name similar to the source file name. This can be achieved by using ASMA. But my requirement is to change the file extension for the target file.
    For example:
    Source File u2013 InvoiceNotification.txtu2026.Then target file should create as
    Target File - InvoiceNotification.csv
    This can be achieved by using OS Command unix script in the receiver communication channel.
    Is there any better way of doing this..say something like Dynamic Configuration or Variable substitution?
    Thank you.

    Hi Achuth,
    I think you are doing content conversion at the receiver side. Go ahead with ASMA, get the file name.
    DynamicConfigurationconf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKeyFileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, a);
    return "";
    In the receiver file adapter, keep the extension as .CSV. That's enough.
    Else you can follow as said by Abhishek Salvi. Either way you can achieve the requirement.
    Thanks,

  • 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

  • Same file name from sender to receiver file adapter with out using UDF

    Hi All,
    I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties?  i mean with out using UDF.
    Thanks
    Karthik

    Hi,
    >>>Is it possible to do using only Adapter Specific message properties?
    yes
    just enable Adapter Specific message properties in sender and receiver channel for file name
    and you're done
    Regards,
    Michal Krawczyk

  • Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)

    Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)
    What can I do?

    Run the cleaner tool and install from scratch.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • Indesign CS4 "forgets" file name when saving as Postcript file.

    Like the title says Indesign CS4 "forgets" file name when saving as Postcript file.
    Example:
    I open up indesign CS4 and open up a file called "test5". Then I go to the print menu and save it as a postscript file. Once the save as dialog box comes up it wont say "test5" but it uses whatever file name I used last time I created a PDF. 
    I want indesign to recognize that when I create a postscript file that I want it to be named the same way as my file that is open at that moment. Changing the file name every time is not bad when they are called "test5" etc but here at this company we use super long file names and it's a pain to change it every time.
    Funny thing: Some machines here do it the way in the example but other machines will do it the correct way by using the same name in the save as box.
    Any suggestions on how to fix this? If something is not clear just ask!

    How about this - it's a workaround, I can't change ID or your system.
    I'm big on EXACT filenames also, case and space sensative. Do a "Save As" before printing - the file name should be correct and highlighted, ctrl+c copy, escape/cancel the Save As. Paste in the filename during the Save as Postscript File.

  • How can I change the report file name depending on which seq file is run in the main seq?

    I'm using TestStand 3.0.
    I have a main sequence file with a menu option to select one of several sequence files to run.
    How can I get TestStand to change report file name to the selected sequence file rather than the main sequence file name?
    Thanks
    Harminder

    Hi Harminder
    Try RunState.Root.Locals.ReportFilePath = "PathToMyFile.xxx"
    regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • I am not able to add videos to itunes. So I am not able to sync them with my IPhone4s. I ve tried: dragging to itunes, minimize file name of mp4, adding by file/folder still not adding. WHY? Please help.

    I am not able to add videos to itunes. So I am not able to sync them with my IPhone4s.
    I ve tried:
    dragging to itunes,
    minimize file name of mp4,
    adding by file/folder, but still not adding.
    WHY? Please help.

    This is very serious. Your computer got infected with ransom malware, Cryptowall.
    Go here for further info.
    CryptoWall 2.0 Anything Good about Buying you Keys? - General Security
    CryptoWall and DECRYPT_INSTRUCTION Ransomware Information Guide and FAQ

  • Get file name/path of current .cfm file...

    i am going to make a "tracking" script for a website.  my idea is to add a <CFINCLUDE> to every .cfm file on the server (right at the end, so it would be easier to remove when im done), and have the script that is included add a record to a database that contains the file name/path of the .cfm file.  for example, index.cfm will include trackscript.cfm, and after the index.cfm is processed, a database will have a record in it containing the file name/path for index.cfm.
    i am new to coldfusion, but i think i have everything figured out, except how to get the name of the file that will be added to the database.  is there some kind of function or variable available that will give me the filename of the currently executing .cfm file?

    I don't think sticking a <cfinclude> call into every file is really a very good way of doing this.
    You should have a look at using onRequestEnd() for this sort of thing.
    There are various variables in the CGI scope which one can use to build the originating URL of the current request; CGI.script_name and CGI.query_string are probably the most helpful here.  One can resolve the underlying file system path form a URL using expandPath().
    Adam

  • How to not append '.PART' to the file name of the currently downloading file, and just download the file with its normal filename

    In Windows, when Firefox (I'm currently using 7.0) downloads a file, it appends ''.PART'' to the file name of the currently downloading file and just renames it to its original file name after it finishes downloading.
    I sometimes like to watch a currently downloading video file, so it will be better if Firefox just downloads the file to its actual filename (like what Opera does), so I can easily double click the incompletely downloaded file and watch it with the video player assigned to that file extension, rather than the awkward ''Right click -> Open With -> Choose Default Program'' route with .part files.
    Does anyone know how to set Firefox to do this?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox and prevents Firefox from renaming the .part file.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?

    Want to change the 'default' extension for PL/SQL source to '*.prc'
    When navigating 'File' / 'Save As', and selecting the 'File Type' list box,
    The default 'File Type' for PL/SQL Source File is '*.pls'.
    Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?
    I have followed , 'Tools', 'Preferences' , 'File Types' and added '.prc' as 'Sql Script' file type, because (PL/SQL Source) is not present in the list.

    You can certainly overwrite the 'Save As' extension as you are saving the file. I have added an ER for more control over this functionality.
    sue

  • LSMW - Create Logical File Name so that the physical file name is automatic

    Hello,
    In LSMW, I do not want to create a logical file name for each project.  I would like the logical file name to automatically assign the physical file to the *.lsmw.conv of the project being executed. Is there a way of doing that?  If so, could someone share?
    Regards, Dean.

    not possible to create the logical file name to physical file name automatiically.
    because the logical file name created like  PROJECT name + SUB PROJECT name +OBJECT NAME .*.lsmw.conv
    if you change the object name the file will be change....

  • Dynamic CSV file name in target (Multiple workflow calling same dataflow with new global variable value)

    Hi their,
    I have multiple data flows doing 90% of the process same. The difference is in source query where clause and target flat file.
    I used the global variables to dynamically change the query where clause easily, but I need help in dynamically changing the target flat file (CSV file).
    What I want to do is have multiple workflows, which will first set the global variable to new value in the script box and then call the same data flow.
    Please let me know if you have any solution or any idea which might put me in the direction to my quest for solution.
    thank you,

    Hi Raj - in your content conversion for lineitem .. read the additional attribute as well.
    Change your source strcture and additional field company_code
    As you are already sending the filename for each line item using the UDF.. it's just you need to modify your UDF to take another input i.e. Company Code.
    or
    If your PI version is > 7.1 use the graphical variable to hold the filename..
    and while sending the company code information for every item just use the concat function to append filename & company code..
    http://scn.sap.com/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable

  • Map source file name in target payload.

    Dear All,
    I have an interfacing scenario in which I want to populate a IDoc(target) field with the Source xml File Name.
    How can I do this in graphical mapping?
    If theres a UDF, plz guide me on the code.
    Help!!
    Thanks.

    If theres a UDF, plz guide me on the code.
    DynamicConfiguration is teh concept that you need and Rajesh has already pointed you to teh blog.
    This has been discussed and re-discussed almost every other week. Please run a simple search before raising a query.
    Regards
    Soumen...

Maybe you are looking for

  • Bought a new printer and it uses 10.7 10.8 and 10.9 My os is 10.6.8 do i have to return printer?

    operating snow leopard 10-6.8 and bought a new printer that supports 10.7, 10.8, and 10.9. do i have to take printer back?

  • Changing text into dunning letter

    Hi I am trying to change some std text in the dunning letter. But we have some customized form/script for this and not using the std one.And for some reason i am not able to find that form/script.. Could somebody please help me in finding the actual

  • Bug, 4.1- Filmstrip doesn't keep up with current image

    I have the filmstrip set to auto hide/show. As I browse through my library, I'll pick an image to work on in Develop. I may then want to work on an adjacent image. Instead of going back to the library to select it, I want to hover over the film strip

  • File name already exists?

    The past few days, I've had trouble exporting certain sequences from FCPHD using Compressor 2. Basically, when I go to export via compressor, the error "File Name Already Exists" pops up. However, the sequence still appears in the compressor window.

  • GWDVA restarting after migration

    Last weekend I migrated my 7.0.3 HP2 system from Netware 5.1 to OES 6.5 SP8 on Netware. I used the migration tool to move all the data over and did fresh installs of all of the GW agents. Everything seems to be OK except for 2 things. The first seems