MDM lookup parameters from File Sender Channel

Hi SDNers,
In my current assignment I am required to make an SAP MDM lookup in a JAVA Mapping to fetch certain details to further process the message.
Currently the MDM server details along with user id and password are maintained in a properties file.
During Migration from Development to Quality or from Quality to Production Environment this properties file needs to be changed and the mapping needs to be reimported individually in each environment.
I want to avoid this cumbursome task of changing the properties file and re importing the Java Map on each environment.
Is there any way to mention the following 3 parameters in the Sender Channel itself (in my case it is FIle Channel)
Server IP Address, User ID, Password? so that the Java Map at runtime can access these parameters from the channel, as each environment will have different channel.
I don't know if I can use ASMA or Additional Parameters for achieving this.
Regards,
Gautam Purohit

Hi Michal,
Can you please elaborate this?
I need to give parameters like;
mdm.repository.host=Development_Server
mdm.repository.name=Development_Rep
for all three environments.
How can I achieve this using Value Mapping?
Regards,
Gautam Purohit

Similar Messages

  • File sender channel - file name "null"

    Hi all,
    I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and populate it in one field of the target message.
    I have read some blogs and forum threads about how to access the file name from the sender file channel. It calls for turning on the adapter specifc parameters in the channel and writing the following UDF (taken from Michal's blog #2664) -
    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;
    After doing all this, I am getting file name as "null". Can someone pls let me know the cause for this ? My concern is since I want to read only one file name, so I have updated only that specific file sender channel for adapter specific attributes.
    Regards,
    Shankar

    Hi Raj,
    I checked the ASMA for second channel also, but no luck
    I can see both the files names in their respective messages in SXMB_MONI under node 'Dynamic Configuration'. But the two messages enter the multi-mapping within BPM (where I have put trace to print the file name as per above code), the value is shown as "null".
    1) Is this file name access is possible only in simple scenarios ?
    2) Also, is the file receiver mandatory ? I have email receiver in my scenario.
    Any clues ?
    Regards,
    Shankar

  • File Sender Channel

    Hi,
    I have a job running which copies a file from remote server to my PI server. I have a file sender channel which picks up this file send it for further processing.
    Is there a way to make sure that the file sender channel reads the file only after it has completely been  copied from the remote server assuming that we dnt know what is the maximum time it could take to write the file.

    Two options,
    1. The script should write the file having set the indicator as read only. Only after it writes the file completely the read only option should be removed.
    the option ●      Process Read-Only Files (for transport protocol File System (NFS)) should be disabled
    2. Use this option,
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    Note
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    All above solutions will work only if its NFS and not FTP

  • File Sender channel polling successfully  but not picking the files.

    Hi All,
                    Can any one please provide any SAP Note  Or any Alert mechanism for the  File Sender channel in case where the XI channel in polling successfully at a particular folder from Source System  but not picking the files. Thanks in Advance for the solution.

    Hello,
                  If you want to know the reason for failure in picking up the file ,You can check the MessagingSystem monitoring for the reason behind failure.
    http://host:httpport/MessagingSystem/monitor/monitor.jsp
    For Alert may be you can follow prateek instructions.
    HTH
    Rajesh

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

  • Mass change in file sender channel.

    Hi,
    I want to do change in all my file sender channel and want to add following parameter.
    Parameter Name : clusterSyncMode
    Parameter Value : lock
    I have approx 300 file sender channel.
    So is ther anything by which I can perform mass change at the same time and can add parameter to it ?
    Please suggest if anything like this.

    You can change the parameter as a Service Property, applying to all communication channels at once. Please check the note below (for 7.1+, you must change it on NWA instead of VisualAdmin)
    [ Note 1259515 - 'clusterSyncMode' is available as service property|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1259515]

  • Defalt VI Parameters in SOAP Sender Channel Config

    Hi all,
    I have configured soap sender channel with Default XI Parameters as * for both Interface name space and Interface name.
    SOAP adapter sends the message with * as the interface namespace and interface and fails with the error "No receiver could be determined".
    Why is SOAP adapter is using the default XI parameters from the channel instead of the parameters passed with the SOAP message.
    I could make this work specifying the Default XI parameters with correct name space and interface, but my problem is I have 2 different interfaces from the same service and cannel, I don't want to create a separate channel for each of the interfaces.
    Please help.

    Hi Pratat,
    you have to set the
    Use Query String to true and the adapter will take the service/interface data from the query string instead of the Default XI Parameters
    Regards,
    Nicolá

  • File Sender channel stopped polling on FTP site

    Dear all,
    We have many file to Idoc interfaces running in production and all are they good.
    Yesterday we faced one issue, one of the interface's sender communication channel stopped polling and didn't picked the files from FTP.
    There was no error on communication channel monitoring and it is green.
    We stopped & started the channel then started picking the files. But this is not usual behavior of file adapter.
    We found one SAP Note 1083488, according to this note, we are in the latest SP level( PI 7.0 SP 14). So not required to apply this patch my case.
    What should i do to not to face next time
    Regards

    Hi Bhavana,
    Check the below Q & A.....
    >> Q: After configuring a large amount of File Adapter sender channels, the J2EE Engine becomes very slow and some services start to block. How can I solve this issue?
    A: Up to and including XI 3.0 SP13 each File Adapter sender channel permanently consumes a J2EE application thread. To solve this issue, increase the number of configured J2EE application threads using the SAP J2EE Engine Config Tool ("cluster-data" -> "Global server configuration" -> "managers" -> "ApplicationThreadManager" -> "MaxThreadCount").
    Starting with XI 3.0 SP14 / PI 7.0 application threads are allocated on demand by the File Adapter and returned to the thread pool after it has finished the polling sequence, so thread shortage situations will typically occur much more rarely than with earlier SPs.
    Also as said by Other SDN'ers check the locks.
    Thanks,

  • Issue with archiving in file sender channel

    Hi Experts,
    We have configured a file to  ABAP proxy scenario in our production PI  7.0 system. the  file sender  communication  channel  is configured to perform " file content conversion"    and archive the  source file  after it is processed successfully.
    Recently , the sender channel stopped archiving the files.  but it is processing them.
    we need the source files to be archived.  i do not see any  related error  in XI logs and default trace files . also it is not a problem with disk space on file system either.
    can you please let me know  how the issue can be resolved.
    Thanks.
    -Kaushik

    Hi
    Make sure that you have selected processing mode Archive
    Try by Checking Add Time stamp  check box.
    Check the Archive File path in correct format
    or put archive file in diffrent folder from which selecting file.

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • XSLT mapping to retrieve FileName from FILE SENDER adapter

    Hi
    I have an File Sender adapter scenario where I have switched on Adapter-specific message attributes (FileName).
    In my XSLT mapping program I need to RETRIEVE the filename and map it. Can anyone help please?
    Thx in advance

    Hi Bohamo
    Refer the following link.It provides the required solution for you.
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/83/2200cb50d345c793336d9a1683163e/frameset.htm
    Thanks
    Ram

  • Double dot in file from mail sender channel

    Dear All,
    I have a volatile problem in mail channel with receiving xml file as attachment.
    The flow is: Mail with attached XML file (ORDER05 in xml format) --> XI  --> Idoc
    Sometime, may be for one percent of mails, mapping receives from channel double dots in fields with quantity(1..000 instead of 1.000). If I resend the same mail again, it is processed without errors.
    Have somebody faced with such problem? What can be decision of this problem?
    I've recreated communication channel - it didn't help.
    Thank you in advance
    Lev

    Dear Prateek,
    Looking at payload after channel I see double dot and same picture in RWB and in SXMB_MONI. I can see right payload only in the mail, which I receive on my own mail address (as CC). If I resend this mail from my Outlook address, channel work properly.
    But this problem appear rarely, may be in one percent cases and only with mail from one particular vendor. The same channel is used for 3 vendors.
    I don't use custom modules in channel, only 2 standard modules:
    localejbs/AF_Modules/PayloadSwapBean
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    Regards
    Lev

  • Multiple Files as attachments in File Sender Channel

    Hi All,
    I am trying a scenario where i need to pick all files in a folder and zip them at once. The name of the ZIP file can be anything, but names of the files in the zip file should not change.
    Example : sample_il0.csv, sample_il1.csv, sample_il2.csv, sample_il3.csv.
    now the Zipped file can be any thing. Like completezip.zip. But in the completedzip.zip should have these sample_il0.csv, sample_il1.csv, sample_il2.csv, sample_il3.csv files.
    The condition is the names of the files should not be changed in the Zipped file. Zipped file name can be anything. This is much like selecting all files at once and right click and zip them at once on windows.
    For this i am using additional files option in sender file adapter and payloadzip bean.
    It is creating resultant completezip.zip file and this zip file has 4 files namely MainDocument, sample_il1.csv, sample_il2.csv, sample_il3.csv.
    Everything is good except MainDocument . Here i am  expecting sample_il0.csv file.
    <SOAP:Body>
    - <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink">
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d33190d134c811e1b0861606dd288802sap.com">
      <sap:Name>MainDocument.zip</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d33190d234c811e1cb7a1606dd288802sap.com">
      <sap:Name>sample_il1.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d331b7e034c811e1c7dc1606dd288802sap.com">
      <sap:Name>sample_il2.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d331b7e134c811e192371606dd288802sap.com">
      <sap:Name>sample_il3.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
      </sap:Manifest>
      </SOAP:Body>
    Here my question is how to change MainDocument.zip to sample_il0.csv  as shown in the below.
      <sap:Name>MainDocument.zip</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
    If i am able to bring above as below, then i think, everything will work fine.
      <sap:Name>sample_il0.csv</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
    How to change the obligatory name of main payload ?
    Best Regards,
    Subbu

    I somehow think you have complicated the scenario with modules and additional files. You could have zipped the file at sender using some script and then made a simple file transfer.
    For your question, I don't think you can change the name of MainDocument. It is the name of the first picked file which seems to be converted into MainDocument.
    Regards,
    Prateek Raj Srivastava

  • MDM Sender Channel - reading file name

    Hi all,
    Is there any simple way to read the name of file sent by MDM when I am using MDM sender adapter ?
    I know if it's file sender channel, then we can read file name by writing a UDF. But just wondering about MDM sender adapter.
    Regards,
    -Shankar

    Hi Paul,
    you can always delete this inside your mapping:
    for instance trim the first 13 letters from /home/example
    then if your directory is always the same you'll have a filename only
    Regards,
    michal

  • File Sender Communication Channel not working

    Hi All,
    We have one file sender channel which sends file after every 3 hours.
    But currently it has stopped the processing of file.
    If we see in RWB it shows that "Correctly configured and started",but if we start and stop the chanel it doesnt show any processing started message.
    File is there in the folder but the channel doesnt poll the folder to pick up the file.
    We have refreshed the cache and activated the channel again.
    But still no luck,does anybody have any idea?

    Hi Shweta,
    Please check the parameters of your File adapter. There can be following  possibility if File adapter is not picking the file :
    1. File adapter is not active
    2. Incorrect File name, Directory name or path,
    3. File does not exist in the source directory.
    4. If you are accessing file from other server (use FTP protocol) check you have READ and WRITE access.
    Thanks
    Farooq.
    <b>*Rewards points if you find it useful*</b>

Maybe you are looking for