File Adapter-Module configuration

Hi All,
I have the following requiremnt.
"Duplicate files should not process"
Following are the File Access Parameters.
Source Directory: ABC (ex: contains aa1,aa2,aa3,aa4 files)
Filename: *
File name mask: aa*
My doubt is if they place aa1 file again in ftp , i should not process.
For this I'm thinking to write module configuration.
Can any one suggests , whether this is the correct approach? If it is could u explain how to write this module and where to write this module and how to import in xI, do i need to pass any parameter name in module configuration.
Regards,
venu.

Hi Venu,
You can go with Module in the Sender File Adapter.
First you need to check the file name and you need to store this file name in the Database.( you can use Java Database).
If there is an entry in the database for that file, then reject the whole file as per the business requirement. So that you can avoid , overhead of Mapping. Because if there is an error set the flag in the message and check this flag in your Receiver Determination, if it is an error send into error directory.
Another way is outside the XI, i.e using shell scripts.
Regards,
Moorthy

Similar Messages

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

  • No SuchAgorithmException in Adapter Module configured EAR file

    Dear All,
    I have created an adapter module using 3DES encryption/decryption algorithm for File/FTP adapter configuration and have deployed it at J2EE server of respective XI system.
    The alogorithm and adapter module are working fine in DEV & QA environments but in Mirror system(which is similar to Prod), I have been encountering Error:-
    <i><b>java.security.NosuchAlgorithmException: Algorithm DESede not available</b></i>
    Can you please suggest what could be issue here? Any inputs will be highly appreciated.
    Thanks and Best Regards
    Prashant Rajani

    Hi
    see the below links
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/d517412797f523e10000000a155106/frameset.htm
    CJS-20030  Checking if the secure store exists fails,
    SHA-1 MessageDigest not available during WebAS Java install
    /thread/12191 [original link is broken]
    /thread/11521 [original link is broken]
    verify url secKey
    Regards
    Chilla

  • File adapter module

    Hello experts,
    1.
    I want to retrieve the value of <b>Target directory</b> for a file <b>reciever</b> communication channel inside module. Is it possible?  Any code samples?
    2. My audit logs are not getting printed inspite of having a log-configuration.xml in place and proper audit log statements in the code? anybody face similar situations before? These statements are inside a <b>reciever file</b> adapter module.
    Amol

    Hi Kapil,
    file.targetFileName
    In General put the following piece of code in sender or receiver adapter and u can get all the parameters specific to that Adapter Type in channel(Configuration) for outbound and inbound channel depending on direction of channel in which module is configured.
    String[] chattr=ch.getAttributeNames();// ch is channel object
    If u put this in receiver module of file adapter, the string array will hold the names of all the parameters pertaining to Receiver File Adapter(file.targetFileName,file.targetDir,etc). Same procedure holds good for sender channel.
    Once u get the parameter name, u can get the value as given by my earlier post in this thread.
    Hope this helps.
    Regards,
    Sudharshan

  • File Adapter Module - Change name of Generated File

    Hello all,
    My customer has XI v3.0 SP9. For the moment an upgrade is not envisaged.
    Since SP14 it is possible to dynamically change filename generated with receiver File adapter. This is done with a manipulation during mapping and a configuration in adapter.
    As I am in SP9, is there another solution, by example using a module processor ?
    My XML :
    <root>
        <lineFile>....</lineFile>   
        <lineFile>....</lineFile>
        <lineFile>....</lineFile>
        <filename>
    </root>
    Thanks a lot,
    J.C.

    Hi,
    AFAIK - as far as I know
    >>>>(Too much tests to do on other processes)
    it's good this way the customer will learn the need for test tools
    like mercury loadrunner - you can store all the tests inside
    and when an upgreade comes just execute them...
    customers always learn the hard way
    Regards,
    michal

  • Problem in Receiver File adapter :Module XML2PLAIN

    Hi Friends,
    I have a FILE -> FILE scenario ,In this when I am downloading the data in XML format it is getting downloaded successfully.The output look like this ...
    <b>I have only one field to be displayed in the output</b>.
    <?xml version="1.0" encoding="utf-8" ?>
    <Returnkey>
    <field1>000000000621185CA</field1>
    </Returnkey>
    Module Name                                                      Modulekey
    localejbs/AF_Modules/MessageTransformBean      XML2Plain
    <b>Module key parametername                      parameter value</b>
    XML2Plain      Transform.Class            com.sap.aii.messaging.adapter.Conversion
    XML2Plain      Transform.ContentType   text/plain;charset=utf-8
    XML2Plain      xml.addHeaderLine         0
    XML2Plain      xml.conversionType       SimpleXML2Plain
    XML2Plain      xml.fieldFixedLengths    25
    Please some one help me out I,I have tried all the options  and I cant use File content conversion in this case ,(I have JMS adapter which actually sends this information to MQ,as  it is working in XML format AND not in plain format ,I am testing this temporarily with a receiver file scenario)
    Thanks in advance.

    Hi
    you can use the following modules and the parameters.
    Processing sequence :
    localejbs/AF_Modules/MessageTransformBean
    localejbs/SAP XI JMS Adapter/ConvertMessageToBinary
    localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService
    Module Configuration:
    Transform.Class----
    >com.sap.aii.messaging.adapter.Conversion
    TransformContentType----
    >text/plain;charset=utf-8
    xml.addHeaderLine----
    >0
    xml.conversionType----
    >SimpleXML2Plain
    xml.fieldFixedLengths----
    >10,10,10(for ex)
    xml.fixedLengthTooShortHandling----
    >Cut
    if you still face the problem please reply me back.
    Thanks
    Rinku

  • How to send input parameters to a file adapter module

    Hi all,
    i have a requirement like , i need to pick a file from a file server based on a condition. that condition we write in adapter module (in file sender channel).
    the condition needs some input , so how can we send input parameters to adapter module.
    please suggest me some way,
    thanks in advance
    jhansi

    hi jhansi,
    u define the parameters to send to a module in 'module configuration' (in module tab) by giving the key to identify the module for which u r giving giving the parameters.
    for details refer this:
    Adapter module
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    This is all u have to do
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    [reward if helpful]
    regards,
    latika.

  • PI SFTP RECEIVER ADAPTER MODULE CONFIGURATION

    Hi,
    I am new in SFTP adapter. I want to transfer file from proxy to SFTP. I want to output file is in csv format. But now it is in  xml format.
    Please help me!!!
    My module configuration is in attachment..

    Hi
    I have got the problem. You have to modify your target structure in the below format
    <row>
    <column-name1>ABC</column-name1>
    <column-name2>12345</column-name2>
    <column-name3>Text1</column-name3>
    </row>
    Create any parent node and inside that create the sub-eliment STATUS and USERID
    something like
    MT_Succefactor
       <record>
       <STATUS>
       <USERID>
        </record
    Then you will get the desired output. Use the below content conversion paramters

  • Adapter module configuration

    The message that reaches the file receiver channel is
    <EDI_DC40>
                  structure1
    </EDI_DC40>
    <EK1NA1M>
                  structure 2
    </EK1NA1M>
                 So i wanna write a module configuration which will rename the first tag as <ek1na1m>. Plz help

    Hi Sumaya,
    you are creating the adapter module using the document i told or not...
    if you are using that document, then see in the process method you will write all your code......you will take the message as a string........then you can manipulate your string as you want - means you can rename your node..........then you can set this string as your XMLpayload.....
    Thanks,
    Rajeev Gupta

  • File Adpater Module Configuration

    I have a scenario where i need to send the file to webservices,the file is in xsd:base64 binary format,the file is getting splitting up in the moni inbound message payload,I think this can be rectified by using module conifguration in file adapter by using tranform beam & converting to base64 binary,Can any one please tell me how to use processing sequence & module configuration for base 64 binary.....
    Advance thanks for your help
    Sriram

    Hi,
    Check this blog
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    HowToGuide-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • FileName in Sender File Adapter Module

    Hi Folks,
    In my sender file adapter have written a module to read the picked file name. The protocol used is NFS.
    Notice that the file name read in the module has the absolute path, including the directory path. E.g The file name xyz has to be picked from source directory
    XIServer\Outbound. In the module when I retrieve the file name, it comes up as
    XIServer\Outbound\xyz. Is this expected behaviour?
    I was expecting just the file name<xyz> to be retrieved.
    Thanks,
    Anand

    HI,
    Create an UDF and write this code.
    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;
    in Adapter u will have Adapter specific parameters check the file name check box.
    Using this UDF u will get the file name at target side.
    Regards,
    Phani.

  • File Adapter Module - Help

    Hi
    For a file adapter I had enabled the option <b>Archieve File</b> in my communication channel. So the system will put the file in the archieve folder after it is read. My requirement is to check if the file already exits in the archieve folder or not. Any means of checking it? or shud i make use of adapter modules? If yes kindly point some helpful tips on the same.
    Kindly fwd any useful doc to [email protected]
    regds
    prabhu

    Prabhu,
    The os command in the file adapter should exists in the XI server only.
    Whatever command you provide in the Adapter will result in the SID+"ADM" user id exectuing this command at the oS level of your XI server.
    So this script should exist on the XI server.
    Now, if the archive directory is on the FTP server you will have to connect to the FTP server from the script and check if the file exists and then do the needful.
    Check this blog out for executing Scripts on file adapters,
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    Regards
    Bhavesh

  • Receiver File Adapter Module processor issue

    Hello all,
    I have deployed (using SDM) a specific module for one of my file communication channel.
    In MDT, I have the following error :
    Exceptions survenues pour Adapter Framework : Object not found in lookup of Module0001
    La diffusion du message vers l'application via File_http://sap.com/xi/XI/System a échoué en raison de : com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of Module0001.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of Module0001.
    Where can be the source of this problem ?
    Thanks a lot

    Jean
    Also check if the "JNDI" name that you have specified in the Receiver Adapter module
    excluding localejbs matches the deployed name in the "J2ee Aministartor Deploy service.
    for example if you have
    localejbs/sap.com/BeanName
    you should have
    the service deployed under
    /sap.com/BeanName
    regards
    krishna

  • Help required in File Adapter Module Development

    Hi All,
    I am working out a File to File scenario where my source file is in some different format. Please find the below sample:
    <Root>
    <ID>100</ID>
    <NAME>SAP</NAME>
    <END-Root>
    Before taking this into IS, I need to change the file to a proper XML format. I need to replace "END-" with "/".
    <?xml version="1.0" encoding="UTF-8" >
    <Root>
    <ID>100</ID>
    <NAME>SAP</NAME>
    </Root>
    I think I can achive this by developing Adapter Modules. I am new to Adapter Module development.
    Can you please tell me if there are any inbuilt Adapter Modules for this. If not please suggest me some relevant blogs to solve this issue. Thanks in Advance.

    Hi Phani Kumar
    There are more than one ways to do this. As per your timelines and skill set you can decide
    1. You can use the XMLAnonymizerBean this is an inbuilt module
    Check Stefen's blog
    Remove namespace prefix or change XML encoding with the XMLAnonymizerBean
    2. You can read this complete file in a single field and then you can create XSLT or Java mapping to parse it in a target XML you desire.
    Check these
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken](XSLT mapping)
    Java Mapping (Part I) (Java Mapping)
    The specified item was not found. (Java Mapping helper DOM)
    The specified item was not found. (XML Node into string)
    3. You can develop Adapter modules for this
    Refer
    Check Guides
    XI 3.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    PI 7.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    PI 7.1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c

  • Help on adapter module configuration

    Hi Folks,
    I want to pick a file and placed in the archive location.  I want to develope a adapter module for this. Can any one please let me know how would I develope an adapter module for this.
    Your help is highly appreciated.
    Thanks,
    Enivas

    Hi,
    It depends which SFTP adapter you are using as some vendors support archiving such as AEDAPTIVe SFTP Adapter (http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver) but I guess you are using Seeburger SFTP adapter ?
    However, if your adapter does not support archiving and you want to write an adapter module, you can refer the following link:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81

Maybe you are looking for

  • ITunes Fix for Manually Moving Music and other Media

    Intro Any iTunes 7.x user who manages their own music library outside of the "iTunes Music" folder might be able to tell you that iTunes DOES NOT respond well after manually moving tracks from one place to another on their computer systems. In fact,

  • Just a comment/question on OS upgrades (VZW/Sprint).

    First, the question: I upgraded the 8330 Curve OS to 4.5 on a friend's device (VZW).  No problem, everything seems to work as near as he can tell, but for some reason it is very laggy...I searched and couldn't find a specific answer to the question.

  • Msn 6.02 closes all the time?

    Hi all: Im using microsoft Messenger for mac version 6.02 and lately i keep being logged out all the time from messenger. I dont know what the reason is but i have tried deleting and re-installing it but it doesnt help. Would be greatful for some hel

  • Flash CheckBox in Flex.

    I am using a framework in my Flex project that is Sprite based so I can't use the Flex components inside of base Sprite object.  So I want to use the Flash Checkbox inside of the Sprite, but trying to import fl.controls.Checkbox isn't working, as Fle

  • TWO objects of XML FORM

    I have two questions 1- I would like to get the Form in the XML format. I have regular submit button BUT when I distributed the form, I got it in PDF format. I tried to put a regular button then I put mailto: someone@somewhare then I picked the send