Using File Name to determine the Receiver

Hi All,
I have to determine the receivers based on the Input file name. I am using the context object File Name in the condition editor. But based on the first 4 characters of the FileName I have to route the file. Can anybody please help how to formulate this expression in the condition editor?
Thanks,
Geetha

Hello Geetha,
         You need to specify this in you mapping as in condition editor you can not specify values at runtime. What you need to do is
-> Select the Extended Reciever Determination in ID
->In IR specify the mapping for determining the receiver (You need to use the another mapping for this)
        . Here copy the MessageType 'Receivers' from the component  as your target MT
          SAP BASIS 7.0 (Depends on your version)-> "htt://sap.com/xi/XI/System" namespace.
       .  Define Message Mapping between Outbound Message Type(The one with your filename) and 
         Standard Message Type u201CReceiversu201D which is as Inbound message type and which is in the SAP
         BASIS -->http://sap.com/xi/XI/System
       . In mapping specify your service based on your First 4 character of your file name(Use SubString)
IF filename -> SubString(0,4) ->Equals ->   filename -> SubString(0,4)  Then  Select Your Service  ( Service in Constant value). ELSE (your logic)
Once you finish this remaining as usual in IR, while InterfaceMapping you select two mapping programs.
Remmber to use the Extended Interface Determination in ID, This resolves your issue.
Regards,
Pasanna

Similar Messages

  • Receiver file name should contain the same plant value as  sender filename

    Hi All,
    I have a requirement in PI 7.0 and the scenario is synchronous which is as follows:
    - XI will read a flat file which has the naming convention Plant_100.txt where 100 is the plant number , after reading the file XI will trigger standard BAPI call to ECC system.
    - ECC system will return an response message back to XI , XI need to need write this message in to a log file and the file name should be Plant_100_logs.txt.
    - Here plant value 100 is neither passed to ECC system nor this value will be returend back from ECC system . So , is there anyway where we can make sure that plant value can be added to the log file without using an BPM in between ??
    Regards
    Vinay P.

    Hi,
    Using Dynamic configuration in Message mapping you can read the source file name and creta the target file name as same as source file.
    For BAPI call in Mapping you can use RFC lookup.
    So crete a scenario FILE to log FILE
    In mapping using RFC lookup make a BAPI call.
    And use dynamic configuration to set the file name.
    Refer this
    http://www.****************/Tips/XI/ASMA/Index.htm

  • 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

  • How to put // infront of file name in SAP SFTP receiver adapater

    Hello,
    How can we put double forward slashes(//) in front of the file name in receiver SAP SFTP adapter? The receiving SFTP server is based on mainframe with VMS  and for some reason the receiver system wants to have // in front of the file name.
    I tried with all options of put // in the directory or part of the file name parameters in the channel,but I get following error.
    Transmitting the message to endpoint <local> using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: 4: Putting ./'//TESTFILENAME' failed.
    please let me know,if there is a work around for this requirement.
    thank you,
    Sri

    Usually filename schema will not allow you to put special characters. Please refer this link for restricts. Filename - Wikipedia, the free encyclopedia
    You may also try Run Operating System Command option to execute Unix script to add '//'
    Could you please let me know the file type ?

  • How to create an Excel file from XML in the Receiver File Adapter Comm Ch

    How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
    I saw this blog, but I don't know how to create a XSLT transformation.
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    Any help would be appreciated. Thanks.

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • Is it possible to change file name policy in the JRE cache folder?

    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    Thanks,
    -Dima

    dgomel wrote:
    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    I suggest you solve the real problem - big files.
    There are two scenarios
    1. Initial download
    2. Updates.
    The first takes as long as it takes. No way around it.
    The second means that you can't use one jar. Otherwise every single update requires downloading the entire application every time. Multiple jars means only the one that changed is downloaded.

  • Passing file name variable to the save as dialog

    Hi:
    I have an event listener that checks if the user has selected the file/"save as" menu and brings up another dialog window asking for some additional information about the client and job. I would like to pass a variable from this custom dialog to the file name field in the standard Save As dialog.
    Anybody have an idea how I can do this?
    I am using inDesign3 on Windows XP. I am using VB for the scripting.
    thanks!!
    Dan

    Hi: thanks for looking at it.
    Actually, I am not calling the save as in my script, the user is clicking on Save As and the event listener I have in the start up folder is picking that up. The event listener calls up a script that asks users to fill in a couple of fields about the specific job and once they do that and click ok, the default inDesign "save as" dialog is brought up. So that is my question -- how to pass the information from my dialog to the standard "save as" dialog (as the file name of the file).
    The event listener is of the beforeInvoke on the Save As... menu.
    Any idea?
    thanks!!
    Dan

  • JMS ReplyTo Queue Name parameter in the receiver JMS communication channel

    Hi All,
    Can any please explain the use of JMS ReplyTo Queue Name parameter in the receiver JMS communication channel?
    Thanks
    Karthik.

    Hi karthik,
    JMS ReplyTo Queue Name parameter  is used for Specify the name of the queue to which the responses are to be sent.
    Thanks
    Govind.

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • How can i send PGP encrypted file from PI to the receiver

    Hi experts,
                        I am unable to send the  PGP encrypted file from PI to the receiver. where the Clients sends the file using PGP encryption,
    But i am trying to send the same with PI. But i am not able to send the same can you please help me out to get the same incorporated using PI 7.1
    and sends to the receiver ( the rceiver would be FTP ).
    Regards,
    Amruth

    hi,
    You can write an adapter module to encypt your payload before sending to Reciever:
    /people/dijesh.tanna/blog/2008/09/15/sap-pi-integrating-macafee-e-business-server-with-sap-pi-70-for-pgp-encryptiondecryption
    http://www.bouncycastle.org/documentation.html
    http://www.cryptix.org/
    http://aedaptive.com/index.php/solutions/pgp-for-sap-netweaver
    http://www.pgpi.org/doc/pgpintro/
    PGP encryption: Do we need to write adapter module?
    If you are getting PGP file from sender and want  to send this file to target without any mapping transformation you can use this blog:
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Thanks.

  • Using File Name as Watermark

    Is it possible to export a JPEG version of a photo with the file name displayed on the photo? This would be useful for a big proofing job I have. I haven't been able to find any info on this in Aperture support or even any third party software for this purpose in a general internet search. Any ideas? Thanks!

    The free and rather good plug-in BorderFX will allow you to position metadata on top of the image and export as a JPG file.
    If PDF will do, Aperture includes good tools to create contact sheets with metadata. These can be saved as PDFs from the OS X print dialog (i.e.: not the Aperture dialog, on which you format the page, but the next one, from which you actually send the job to the printer).

  • Error Occurred While Converting the file"name of song" The file name.......

    I get this message when I try to import some CD's to my library.
    A window pops up and says
    Error occurred while converting the file "name of song"
    The file name was invalid or to long.
    Anyone else ever get this message, and how can you import CD's???????

    I have had this exact same problem. I'm not sure how to fix it...

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

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

  • Get substring of file name up to the last underscore

    I have filenames and I want to get a substring of the file name up to the last underscore if it exists and if not up to the last period.
    Create table FileNames (fileName varchar(40))
    insert into FileNames values ('this_is_a_long_filename.ext')
    insert into FileNames values ('this_is_an_even_longer_filename.ext')
    insert into FileNames values ('short_filename.ext')
    insert into FileNames values ('supershort.ext')
    What I want returned is:
    this_is_a_long
    this_is_an_even_longer
    short
    supershort
    Any help would be appreciated.
    lg

    This will work too... 
    IF OBJECT_ID('tempdb..#FileNames') IS NOT NULL
    DROP TABLE #FileNames
    GO
    CREATE TABLE #FileNames (
    fileName varchar(40)
    insert into #FileNames values ('this_is_a_long_filename.ext')
    insert into #FileNames values ('this_is_an_even_longer_filename.ext')
    insert into #FileNames values ('short_filename.ext')
    insert into #FileNames values ('supershort.ext')
    SELECT
    fn.fileName,
    LEFT(fn.fileName, LEN(fn.fileName) - COALESCE(NULLIF(PATINDEX('%[_]%', REVERSE(fn.fileName)), 0), PATINDEX('%.%', REVERSE(fn.fileName))))
    FROM
    #FileNames fn
    Jason Long

Maybe you are looking for

  • IC WebClient Shared Services Business Roles

    Dear All I have a question regarding the some of the IC Webclient Shared Services roles provided by SAP. I know that as of CRM 7.0 EHP 1.0 SAP provides separate roles for Accounting Interaction Center, Employee Interaction center and ITDS- IT HelpDes

  • Need help identifying vocal effect

    Hello! I am a huge fan of obscure British 60's psychedelic and have been trying to mimic the vocal effects used on this song. I'm guessing it would be a combination of delay through a Leslie speaker but seem to not be able to achieve the same results

  • Publishing multiples entries

    Hello, My problem is that i'd like when i post through PodcastCapture to generate multiple entries so each formats will have an entry in iTunes ? I thought at first that duplicating the groupblog task will be enough, but in fact it seems necessary to

  • Difference/Dependency of RZ21 and DSW

    Please let me know whats the diffrence in configuring CCMS alerts in RZ21 (CEN- SOL) and configuring CCMS in(CEN- SOL) Solution Manager -> DSWP -> Solution Monitoring ?? is Solman-> Solution Monitoring a shortcu way or a WIZARD way to RZ21 (creating

  • BBP_CUF_EXIST When trying to book goods in.

    When we try to GRN on SRM we get an error BBP_CUF_EXIST and ideas, we have applied an SAP Note 992106 - Parameter error when calling up FM BBP_CUF_EXIST, this has made no difference. Any ideas?