How to keep original file name in File- Soap- Soap- File scenario?

Hi Gurus,
I have a requirement as bleow:
There are two PI landscape for two different company and they are communicating using Soap adapter. We need to pass a flat file cross the two PI now, and need to keep the original file name.Anyone could shed some lights on this?
Thanks,
Rajesh

Hi Rajesh - See if you can make use of Dynamic configuration bean. I'm not sure if it works but you can give a try..
Unknown use case of DynamicConfigurationBean: Store file name to JMS header without mapping
Adding DynamicConfigurationBean in the Module Processor - SAP NetWeaver Process Integration - SAP Library
Set the adapter specific attributes in file sender channel for filename
swap the file name value to any other soap adapter attribute in the receiver channel using the above module
again swap the attributes in soap sender channel(your second system)
receiver file channel enable ASMA.

Similar Messages

  • 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

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

  • 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

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

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

  • 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

  • How to keep original aspect ratio when cropping in Camera Raw?

    How to keep original aspect ratio when cropping in Camera Raw? Cant figure it out! With shift, the aspect ratio is 1:1. But I didnt set it to 1:1 (I checked "normal").

    The Shift key works once you’ve set your crop ratio.  DSLRs would typically do 2:3 and others sometimes do 3:4.

  • 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

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

  • How to keep original Uploaded File Name in SharePoint Document Library?

    HI,
    I have document library. After Uploaded the file in document library. I want to keep the file name in some other filed.
    Why because in future i may change the file name in document library so in order to know the original name of the file.
    I want to do without any workflow. Is there any other default column like that?
    How could i achieve it?
    Thanks & Regards
    Poomani Sankaran

    Hello,
    Here is list of operations for file element, and you can save it in library column:
    http://social.technet.microsoft.com/wiki/contents/articles/22156.sharepoint-2010-a-complete-list-of-spfile-operations-using-ecma-script.aspx
    http://sprider.org/2011/12/13/sharepoint-ecmascript-to-adddeleteupdateget-list-items/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How can you keep the file name when using "Download Linked File As..."?

    I'm a longtime PC user finally making the transition to Mac.  Some of the tasks that seemed so simple in Windows have really stumped me!  One of the tasks I do frequently is download files into specific folders.  After much looking, I finally found the "Download Linked File As..." option if I right-click on the download link.  The problem is, when I choose this option, I lose the file name.  I get a window in which I can choose the desired folder, but the filename is always "0".  If I want to keep the filename (and I usually do), I have to type it in manually.  Is there anyway around this?

    You can post a screen shot by clicking on the liitle Camera icon above your reply.  :)
    Just checked on 10.7.4+, still the same, something is borked about your install, to see if we need to re-install...
    To find out if it's system wide or user specific, try this...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Does it work in the new account?

  • Appending the Original File Name as Suffix to Receiver File Name

    Been searching and I've seen Michael's blog about creating a UDF to place the original file name in the payload.    Since this is a file->file scenario, I have no mapping. 
    I have the Adapter-Specific Attributes turned on on the Sender to pass the file name in the DynamicConfiguration of the message header and I can see it in the message.
    What I want to do it to have a target file name in the form of:   XXXXX_<i>originalfilename</i>.
    So I have turned on variable substitution and created a variable called 'file'.
    In the File Name Scheme Parameter I have entered: XXXXXX_%file%
    If I set the variable substitution refererance for 'file' to message:message_id, my file name is created as XXXXX_message_id,  or any of the other options from -> <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm">SAP Adapter Help Page</a>
    How can I get the value of FileName as the value for my variable %file%?

    > Actually, what I meant was the mapping will not know
    > the value I have entered in the receiver
    > communication channel - File Name Scheme parameter
    > value.   For example in CC for Target System 1  the
    > FNS = FMRECEIVER1, the CC for Target System 2 the FNS
    > = FM_RECEIVER2 and so on.  
    >
    > Are you saying in the mapping I could access the
    > value of FNS from the communication channel in the
    > mapping?   
    No, you cant read in mapping what you set in CC.
    However, you can ignore the parameter FileName scheme in CC and just set it in mapping runtime.
    The way you are using, you'll have to maintain the prefix for each receiver adapter you have. If you had it in mapping, you could just do something like:
    String receiver = container
        .getTransformationParameters().
        .get(StreamTransformationConstants.SENDER_SERVICE);
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    String orgFileName = conf.get(key);
    String tgtFileName = receiver + "_" + orgFileName;
    conf.put(key, tgtFileName);
    and then you wouldn't have to maintain the file name scheme in CC.
    Regards,
    Henrique.

  • How should we get the out put file-name same as in put file-name in file to

    Hi frnds,
    having hundreds of files in the sender system with different names, how should we get the out put file-name  in the receiver system same as the in put file-name in file to file scenario ?
    Thanks in advance.
    truly,
    snrvakiti.

    Hi,
    In Receiver File Adapter you can set under 'Adapter-Specific Message Properties'
    check Use Adapter-Specific Message Properties
    check Fail on Missing Adapter Message Properties
    Check File Name
    Have a look at this link,  [File_to_File|http://allsapnetweavernotes.blogspot.com/2008/09/how-can-i-access-filename-from-fileftp.html]
    Regards,
    P.Rajesh

  • How to get the read input file name in bpel process using File Adapter.

    Hi,
    I am reading a .txt file from configured directory using File Adapter.
    I had configured file adapter to read file with naming pattern “SalesOrder.*\.txt”.
    Now I had requirement to access the actual file name in bpel process eg: “SalesOrder123.txt”
    How can I get the file name in bpel process.
    Any help is appreciated.
    Vidya.

    1) create a variable of message type. Click on Browse Message type. Here you select Message Type-->Project WSDL Files -->fileAdapterInboundHeader-->Message Types-->Inboundheader_msg. Then click OK
    2)Next dbl Click on teh receive Activity which is receing your File from teh File Adapter. Go to the Adapter Tab. Click on Browse variable and select the variable that you had just created above.
    This would get the File name in the variable declared

Maybe you are looking for

  • MacBook Display flashes white, red, blue, grey when starting up.

    This problem just started yesterday when I turned on my Mac. It made the apple sound and then it went to a blue screen then started flashing white, red, blue, grey and then a few grey patterns. It went away last night when I left it on for about 5 mi

  • Win 7 update "slow performance" relating to the font cache

    For those of you having font, slow print and/or PDF problems on Win 7 (or Win2008 Server), both x86 and x64: I just came across an MS support posting about a hotfix that  might *** emphasis MIGHT *** be of interest to you. The specific reason is that

  • Is anyone successfully using Logic Pro with a Thunderbolt RAID?

    I am having hanging issues before recording which I would like to narrow down possible causes - thanks

  • Delete Payroll Results in Bulk.

    HI I want to delete Bulk payroll results in Production system say for 1000 employees . I tried to create BDC/ LSMW but, iam not able to create BDC /LSMW for T-code PU01- Delete Payroll Results. Nor iam able to use Program RPUDEL20 in Production serve

  • What is the status of 1z0-050 exam??

    Can anyone explain, whats the status of 1z0-050 exam in this month i.e. Jun 2010. As Oracle has validated O11gR2 for the exam, is the exam has entirely been changed vs. O11gR1. Moreover, It is very confusing that Transcenders link, available on the O