Dynamic configuration of receiver communicaton channel?

I have files, Header line tells which server it should go.(Like ip address and port). How can dinamically configure the receiver communication channel.
Thank You
Ganges Leaves

Hi,
I have very similar requirement, In my scenario I need to pick up files from 4 static locations and based on the file name and pick up type(file/ftp) I can find out the destination's connectivity information from a Cross-Referencing table(Based on MS-SQL Database table- I can get this using look API) in this table we maintaining more than 100 destinations(host/user_name/password etc).
Now I need to set the connectivity information dynamically at runtime. I know this is not possible with Standard XI but does anyone thinks this is possible by any technical way using with XI.. Adapter Modules or Java Proxies?
This is very Critical to win the war with other middleware tools. Please let me know your thoughts and comments...
thanks,
Laxman Molugu

Similar Messages

  • Doubt om Dynamic Configuration of receiver file

    Hello ,
      for Acheiving the Dynamic configuration of receiver file name ,adapter specific message attribute is used...But how to suppress the name of file in the content of the Received file...
    Is my question correct..do we get the file name in content of the receiver file,while using the Adapter specifc message attribute.
    And another question ,in the Variable substitution ...do we get the above problem,then how to tackle the situation to suprress the file name in the payload of receiver file.

    HI,
    You can handle the dynamic file name via Dynamic configuration or with the help of Variable Substitution.
    Please refer
    have a look
    Dynamic File Name using XI 3.0 SP12 Part - I --> Dynamic File Name using XI 3.0 SP12 Part u2013 I
    Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II --> Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
    With Variable Substituion, you may need to supress the filename
    Dynamic File Name - Suppress the Substitue varible
    Let me know if you need anymore info.
    Thanks
    Swarup

  • Dynamic configuration of Receiver FTP File channel

    Hi,
    The scenario is sending an IDOC from an R/3 system (using IDOC adapter) to a FTP file system. I want to dynamically configure the filename and the target directory in the following cases
    1. With filename and the target directory coming as a part of the source IDOC
        structure
    2. There is mapping involved (pass thru) and the file name and target directory are
        NOT a part of the source IDOC structure.
    I have seen blogs which explains the situation using mapping for File-To-File scenario (Not IDOC-To-File scenario) and some blogs explaining for Http adapter and email adapter, but not for the above scenarios for IDOC-To-File Scenarion.
    Your input is highly appreciated.
    Regards
    Ganesh

    hi
    use Varable susbtituion in receiver file adapter
    you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    ●      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    ○       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    or look into help
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    please reward points
    Thanks
    Sreeram.G.Reddy
    Message was edited by:
            Sreeram Reddy

  • How to configure HTTP receiver comm channel with dynamic URL parameters?

    I need to perform HTTP Post using PI. URL contains some parameters. I need to set these parameters with different values in run time.
    Please help to do this.
    Thanks
    Ranji

    Check the section Adapter Specific Message Attributes from this help section:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    The parameters can be set in the Message Mappinga nd then using the appropriate options in communication they can be included in the message header....for more info search with keywords "Dynamic Configuration" and you will get to know how the procedure works.
    Regards,
    Abhishek.

  • How to pass dynamic filename to Receiver JMS channel

    Hi experts,
    I want to pass the dynamic filename to receiver JMS message Properties.
    for example
    I am passing directory name via adapter module AF_Modules/DynamicConfigurationBean with key and value combination like below. How to pass dynamic filename value to a dynamic property ( say DCJMSMessageProperty1)
    eg.
    key.0 - >insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    value.0 - >  testdirectory ( which is static value)
    Note: Im have not created any ESR object . i just have to bypass the file to a jms queue. I have used AAE integrated configuration scenario ( file to jms )
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:45 PM
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:46 PM

    Already given link for the dynamic configuration code snippet in the earlier reply... Below is the code snippet
    Note: Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC
    //UDF code
    String filename="";
    String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
    try{
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
            StreamTransformationConstants.DYNAMIC_CONFIGURATION);
          DynamicConfigurationKey key  =  DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",   "FileName");
           // read filename value
           filename = conf.get(key);     
          // So far we extracted filename value .. now do your logic  something like this...
          DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
           conf.put(key2,filename);
         } catch(Exception e){

  • How To Configure XI Receiver Communication Channel ?

    Hi Expert,
         I have a Scenario wherein i  have 2 XI systems & i need to pass the messages between these 2 XI / PI system using XI Adapter. Can any body tell me how to configure the XI Adapter Step by Step. Is it required to Create the SM59 RFC destination with type H. Pl. Explain me in detailed.
    Regards
    Umesh

    Hi Umesh,
    In creating XI receover communication channel, you have 2 options for Addressing Type:
    1. URL Address - no need to create RFC destination. You just have to specify the XI receiver host name, HTTP port, path (/sap/xi/engine?type=receiver), Authentication data (logon details for SAP Client number of the PI system).
    2. HTTP Destination - create RFC destination in SXMB_ADM and specify the RFC destination name in your receiver communication channel.
    For SAP documentation, see this link: http://help.sap.com/saphelp_nwpi711/helpdata/en/e1/091640a991c742e10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    Jenny

  • Dynamic Configuration - CC Receiver - Abap Mapping

    How can I add info in the xml message in Dynamic Configuration from Abap Mapping ?
    Thanks in advance.

    Hi,
    The following should do the trick:
    data: l_dyn_record type MPP_DYNAMIC.
    l_dyn_record-namespace = 'http://sap.com/xi/XI/System/File'.
    l_dyn_record-name = 'FileName'.
    l_dyn_record-value = 'myFileName'.
    CALL METHOD dynamic_configuration->add_record
      EXPORTING
        record = l_dyn_record.
    Regards,
    Daniel

  • Dynamic Configuration of Mail receiver Communication Channel

    Hi,
    like in /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping for http receiver CC, i am trying to do header customisation, with XHeaderName1 for mail header fields like content-type, content-disposition, but it doesn't works ...
    in my mapping i've added :
    > (...)
    > DynamicConfigurationKey cDisposition = DynamicConfigurationKey.create("http:/""/sap.com/xi/XI/System/Mail", "XHeaderName1");+
    > dynaConf.put(cDisposition, "attachment;filename=myFile.txt");
    in Communication Channel ASMA i've added variable header : XHeaderName1 --> Content-Disposition
    in monitoring i see that XHeaderName1 is filled with attachment;filename=myFile.txt
    but in the mail send like this, this configuration has no effect
    Someone can help me ?
    Edited by: MedAmine on Aug 19, 2009 3:20 PM

    Only one standard mail header field can be influenced: this is indeed "Content-Disposition".
    You have done halve way, the only thing you have missed is to set the additional parameter 'OMail.AddContentDisposition' to false within 'Advanced Mode'.
    Have a look at this WiKi:
    http://wiki.sdn.sap.com/wiki/display/ESOAInfrastructure/Dynamic+Email+Attachment+name+for+Received+Mails+with+ASMA+and+without+using+mail+package

  • Dynamic Configuration for two file adapters communication channels

    Hello Experts!!!!!!
         In one of the interface in my landscape, I am using two file adapters for creating two files with different names and at two different destination on F.T.P.
    However the receiver service for both the communication channel are same.
    In message mapping I am using multi mapping to create two files out a single message.
    Now i have a requirement of changing file path and file name using dynamic configuration for both the comm channel.
    When i doing dynamic coniguration for both the comm. channel. My interface is creating two files but with same name and on same destination which is set for second communication channel through dynamic configuration.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating two files with same name and at same destination.    
    Please suggest, if separate dynamic configuration for separate communication channel of same receiver service can be done?
    Thanks & Regards,
    Amol

    Thanks for your prompt responses!!!!!
        Is there any way, By which in dynamic configuration I can find out the communication channel name and then change its parameter.
    I mean if iam using say comm. channel A and B.
    Then in dynamic configuration for A, I will first take communication channel A by calling it and then change its path/file name.
    and then do samething for comm. channel B in its dynamic conf.
    Regards,
    Amol

  • Getting an error in Dynamic Configuration

    Hi Guys,
    I need to dynamically post the file into different directories based on the file in the source payload.
    In Receiver File Communication Channel
    Target Directory : *
    Filename : *
    Checked the ASMA Attributes for filename and directory
    Iam refering this weblog
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    In the mapping
    <filename> ---> UDF --> topnode of target message.
    My UDF is as below
    public String Directory(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key  = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
    String FileName = conf.get(key);
    FileName = a;
    conf.put(key, FileName);
    String Directory = conf.get(key1);
    Directory = "/SAPInterface/XI/PPD/DHX/out";
    conf.put(key1, Directory);
    return " ";
    But in runtime(moni) iam getting  error as
    com.sap.aii.af.ra.ms.api.MessagingException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    Please suggest me how to correct this.
    Thanks
    Srinivas

    Hi Srinivas,
    You said you are having dynamic directories to post the file. But I see you hardcorded or put constant for directory which is /SAPInterface/XI/PPD/DHX/out. I think you need to put //SAPInterface/XI/PPD/DHX/out.
    Try this in udf:
    public String Directory(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key  = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
    String FileName = conf.get(key);
    FileName = a;
    conf.put(key, FileName);
    Directory = "//SAPInterface/XI/PPD/DHX/out";
    conf.put(key1, Directory);
    return " ";
    Put FileName and Directory in file name and directory paramters in receiver communication cahnnel and cehck.
    Regards,
    --Satish

  • Dynamic configuration of Adpater in SAP PI

    Hi,
    I have a requirement where in I have to dynamically configure connection adpater in SAP PI 7.1 EHP 1,  the configuration data will be pulled form database on the bases of the message content.
    Thanks in advance.
    Gautam

    Not sure if you are lookingg for dynamic configuration as mention in the below blog..
    <a href="/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping Configuration of Some Communication Channel Parameters using Message Mapping</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>
    <a href="/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules Configuration In Adapter Modules</a> <a href="/people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further Configuration In Adapter Modules</a>
    ~SaNv...

  • Dynamic Configuration of SOAP Action

    Hello Everyone,
    I am currently working on a project which requires us to set the SOAP action dynamically:
    I did follow the guidelines mentioned in the following links
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Dynamic webservice selection
    The process which we are using is as follows
    We are creating the following UDF and mapping the root nodes in message mapping using it
    DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
    // access dynamic configuration
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    conf.put(keyURL,"RetrieveList");
    return "";
    In the Receiver Comm Channel we are setting the use adapter specific identifiers option and the use variable binding option. We are leaving the SOAP Action field blank.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!-- Inbound Message
    -->
    <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>SOAP:Server</faultcode>
    <faultstring>String index out of range: 0</faultstring>
    <faultactor>Server</faultactor>
    </SOAP:Fault>
    Now we tested the scenario using TCP Mon and we identified that for the value of SOAP Action we are getting the following results
    SOAPAction:
    SOAPAction: actual value
    It means that 2 SOAP Action are generated one being the empty SOAP Action from Receiver Comm Channel and the other being the one generated using UDF.
    Can anyone please update us on if our steps are proper or is there a way to supress the SOAP Action which we left empty in the receiver comm channel.
    Your help is truly appreciated.
    Thanks.
    Kiran

    Did you follow all the three steps I have pointed in the thread,
    1. In the Receiver SOAP adapter,Select options ,
    a) Use Adapter Specific Message Attributes
    b) variable Transport Binding.
    c) Keep the SOAP action field empty.
    In the receiver SOAP adapter, make sure that the soap action is empty and the above options are selected.
    In this case, the SOAP action from the UDF will be choosen.
    But, if you enter something in the receiver SOAP adapter's SOAP action this will be treated as the SOAP action rather than the UDF code.
    Regards
    Bhavesh

  • Dynamic Configuration in SAP PI 7.3

    Hello,
    I am doing one file to file scenario in PI 7.3 (Java Stack only).
    There is one requirement i.e. The output file name will change according to Development, Quality and Production. Prefix will be added to the outputput file name according to Development, Quality & production.
    I am new in SAP PI . Please suggest me what to do for the above requirement.
    Thanks & Regards,
    Moumita

    Hi Moumita,
    Please find the details
    1) read the source directory and based on source directory name set the file name in dynamic configuration
    In sender communication channel select the ASMA parameter Directory and read the dynamic configuration as below
    String devFileName = "DEV_out.txt";
    String qaFileName = "QA_out.txt";
    String regFileName = "Reg_out.txt";
    String directory= "";
    DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","Directory");
    directory= conf1.get(key1);
    If (directory.equals("DEV"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, devFileName);
    return "";
    else
    If (directory.equals("QA"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, qaFileName);
    return "";
    else
    If (directory.equals("Reg"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, regFileName);
    return "";
    2) read the system id and based on that set the file name in dynamic configuration.
    String System = System.getProperty("SAPSYSTEMNAME");
    String devFileName = "DEV_out.txt";
    String qaFileName = "QA_out.txt";
    String regFileName = "Reg_out.txt";
    If (System.equals("DEV"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, devFileName);
    return "";
    else
    If (System.equals("QA"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, qaFileName);
    return "";
    else
    If (System.equals("Reg"))
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransf
    ormationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, regFileName);
    return "";
    regards,
    Harish

  • 'Use Temporary File' in Receiver File channel

    hi all,
    I am facing a strange issue with receiver file channel which I am not sure if somene had already faced. I couldnt find any help from blogs..!
    I have configured the Receiver File channel with Write mode as  'Use Temporary File'  with a temporary file name(say tmp.xml)  scheme and Empty-Message Handling set to 'Write Empty File'
    When the scenario is executed, its so happening that the temporary file of 0 bytes(empty file) is being created as tmp<msgID>.xml before the actual file is being completely written. It is expected that once the Actual file is completely written, the tmp file should be deleted, but here is not the case.Thus causing both the files being present in the target location. This is not happening often though.
    As the receiving application is processing all files from the target direcotry, the file is getting errored out in the target application.
    I think the 'Write Empty File' has nothing to do with this as the option 'Write Empty File' is for empty payloads resulting from the message mapping.
    Please correct me if am wrong and also provide me the inputs on my issue. Am on PI7.0
    thanks in advance,

    Hi Tilak,
    this is real time interface
    real time by using a file... that's a non-sens according to me. You should use a non physical solution (web service, JMS, JDBC, etc...) but a not a file. well... Anyway, you can image that the receiver application schedule the folder every 30s or every 1min, that's almost a real time. Real time is mainly a conceptual view (only synchronous exchange needs really real time). Morevoer, if you really wanted a real time, you should not add a tool like PI (or other) between your source and your target system, the more we have systems, the less it's efficient (in term of delay and response time!).
    Even if we propose that the receiver application should have a condition to its script to avoid picking the tmp*.xml files, after a period of time there would be a chance that the *tmp files may increase in number..
    No ! coz if my theory is good, if your receiver application does not pick-up tmp.xml, that means this file is not currently treated and so PI is authorized to delete it. So no increase of tmp.xml files in this folder.
    Another solution: to create the target file without option "temporary", but to create it in another folder than this one scheduled by your receiver application, and use an OS command AFTER processing, in your receiver CC, which move the created file from the "temp" folder to the target folder.
    [http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature]
    regards.
    Mickael

  • Is Dynamic Configuration possible with IDOC adapter.

    Hi,
    I have SOAP to IDOC scenario. I have many SAP receivers and are determined at runtime in a Java map.
    Can i use Dynamic Configuration for IDOC adapter?
    Thanks
    Shakthi

    Hi Sivasakthi,
    Why do you need Dynamic Configuration in receiver IDOC?
    Regards,
    Sanjeev.

Maybe you are looking for

  • Adding f4-help to selection screen parameter field

    Hi all. I need to add search help to a parameter field on selection screen: PARAMETERS:              p_reciv LIKE soos7-recnam. What is the easiest way? tia, regards

  • Re: Satellite A300D: winload.exe missing or corrupt

    Hi I tried to make recovery to my system by using F8 and its works but suddenly the battry fail during the opration, So i repated the steps again after i connect the charger but i coudn't, and i received the message... +Windows failed to start. A rec

  • Thinkpad T440p - "Thinking" of buying - Questions

    Hello everyone! I am a long time stalker of the community and have been a fan of the ThinkPad series for a few years now and am looking to purchase my first one. A T440p, been looking at used and referbished models. First I have a few questions. 1. I

  • How often are you using the Internet on the iPhone?

    I was wondering how often you guys are using the Internet on the iPhone? Do you guys enjoy using the the Internet on it? Also, do you like the keyboard on it? Just letting you know that I am typing this on my iPhone!! Sam

  • Flickr Refresh Rate Apple TV

    I have a Flickr account which I often post new pictures to. I want my Apple TV to automatically cycle through the account, but to recognise the new pictures and add them to the slideshow as they are uploaded to Flickr. Can anyone tell me how often th