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

Similar Messages

  • 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

  • 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

  • Application Module Configuration Properties file?

    Hi,
    Any body knows where could i find the Application Module Configuration Properties file on the disk.
    (This properties on wizard are appeared when we right click on application module and select configuration...)

    Curt,
    Thanks for your direction. That link is vary useful to be familiar with the AM configuration setting.
    Frankly, during last few months I was extremely busy to develop JSP pages. And didnt study much about AM But now that we are close to move the application to production I faced unacceptable problems. Recently I started to read your/and other folks treads to get more familiar with AM.
    Here is some of the problem i faced, which i think are AM related:
    1-The application speed goes down as soon as more than 2-3 browser(user) work with the same application(most probably I have memory leak).
    2-Some times I received following error when tried to load a JSP page in the application:
    Error Message: oracle.jbo.PCollException: JBO-28020: Passivation error on collection TXN, node id -1 void
    3-I faced following error when I tried to work with two applications in one or even two browsers:
    Error Message: JBO 30004: An application module that was not checked out was checked in...
    So, please let me know your idea on those and/or any point that I have to check.
    By the way, I am still on JDev9i-Beta and I accepted all default setting at the time I created AM . but the state of each page explicitly defined at the page level(mostly stateful, but on some of the pages i didn't mentioned the state which by default is stateless).
    Thanks.

  • Proxy to file using dynamic configuration

    Hi Frnds,
    I  have a scenario ABAP_Proxy-XI-File, here in the proxy I am getting a pdf file with xml as attachment now I need to save the pdf file to the target folder with the name availble in one of the fields of attached xml file.
    I have used Adapter specific attributes option for filename substitution but getting the follwoing error:
    Attempt to process file failed with 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 anyone can help me in overcoming this issue.
    Regards
    shiva

    U have a limitation here. At XI u can read only 1 file (pdf or xml). Bcoz receiver file adapter will not support attachment. pdf is required bcoz u need to transfer it to receiver. Xml is also required bcoz the directory name is inside that xml
    The workaround could be creating an adpater module that passes the directory name as well. U should send pdf file with xml as attachment.
    If u have the dir name, then the dynamic configuration code should be like this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,MappedDirectoryName);
    This MappedDirectoryName should be the name passed through payload. The receiver file communiation channel must have dummy dir name
    Regards,
    Prateek

  • Parameter name in module configuration of adapter module in comm channel

    Hi Experts,
    I have developed an adapter module to read a excel file , have used the module in the sender file adapter.
    What entrie should i put in parameter name and parameter value  in module configuration of adapter module in comm channel.
    Im too confused,,pls help

    Hi Ivan,
    The code is basically to read the all colums add em under xml tags and read from second row on wards the data
    please find below the module data code
    public ModuleData process(ModuleContext mc, ModuleData imd)throws ModuleException
                             Object obj = null;
                             Message msg = null;
                             MessageKey amk = null ;
                        amk = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
                        Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Module called");
                        try {
                                  obj = imd.getPrincipalData();
                                  msg = (Message) obj;
                                  XMLPayload xp = msg.getDocument();
                                  if (xp != null)
                                        byte by[] = convert(xp.getContent());
                                             xp.setContent(by);
                                       imd.setPrincipalData(msg);
                              catch (Exception e)
                    return imd;
                   public byte[] convert(byte src[]) throws Exception
                        String xmldata = "";
                   try
                             ByteArrayInputStream byteArr = new ByteArrayInputStream(src);
                             Workbook w = Workbook.getWorkbook(byteArr);
                             xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n"+ "<ns0:""MT_ExcelFiles"" ""xmlns:ns0=\"""urn:xyz:abc"+"\"> \n";
                               int a = w.getSheet(0).getRows();
                               int b = w.getSheet(0).getColumns();
                        for(int j=1;j<a;j++)
                                   for(int i=0;i<b;i++)
                                                  xmldata = xmldata + "<"w.getSheet(0).getCell(i,0).getContents().toString()">"w.getSheet(0).getCell(i,j).getContents().toString()"</"w.getSheet(0).getCell(i,0).getContents().toString()">";
                        xmldata = xmldata"</ns0:""MT_ExcelFiles"+">";
                        w.close();
              catch (Exception e)
           return xmldata.getBytes();

  • 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

  • Receiver Module Configuration Issue

    Hi All,
    I have done the following Module Configuration in Receiver JMS Adapter, but facing issue in the Length of the Flat File received in JMS.
    it is having only 512 characters, i got clue that is because of   localejbs/SAP XI JMS Adapter/ConvertMessageToBinary.
    Binary can accept only 512 characters.
    I  need convert the message to TEXT. Please help me on this.
    Processing Sequence
    1                  localejbs/AF_Modules/MessageTransformBean            Local Enterprise Bean                          XML2Plain
    2                  localejbs/SAP XI JMS Adapter/ConvertMessageToBinary   Local Enterprise Bean                          convert_XI2Bin
    3                  localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService  Local Enterprise Bean     exit
    Module Configuration.
    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.endSeparator     'nl'
    XML2Plain     xml.fieldFixedLengths     10,15,10,10,15,13,13,13,15,2,30,1,10,10,10,10,8,10,10,10,8,11,11,3,3,1,1,15,10,15,1,30,15,15,10,8,15,10,10,15,15,4,8,1,2,8,35,11,10,10
    XML2Plain     xml.fixedLengthTooShortHandling     Cut
    exit     JMSMessageType     Text
    Regards,
    R.Ragu

    Hi Ragu,
    Can you please elaborate on this issue a bit more...?
    The Module Configuration looks fine to me.....
    Thanks
    Dhwani

  • File CC not picking file after module is added

    Hi Experts,
    I am trying to develop an sample adapter module just to pick the name of the file and put it in the payload. I managed to deploy the module through SDM and it is showing as active in the visual admin. But when I run the interace it doesn't pick the file at all. The communication channel is working fine without module as it is picking the file processing it.
    The module configured in the communcaiton channel is as below:
    1       localejbs/AddFileNameToPayloadEJBBean  Local Enterprise Bean    0
    2       CallSapAdapter                                            Local Enterprise Bean    0
    Nothing esle is configured. Please advise I am missing some thing in the configuration or is there any other issue.
    Regards,
    SS

    The issue is resolved. For me, deleting the additional Jars did n't work, as it caused in deployment error. The clue is to create a java class under a EJB project in NWDS, rather than creating EJB. If we create EJB, the additional HOME, REMOTE,LOCAL HOME interfaces are created. XI explicitly tries to cast them into ModuleHome,ModuleRemote etc, which results in Class Cast exception. If we are just creating a class without these additional Interfaces,XI manages it internally.
    But we MUST have the ejbcreate() methods implemented/present in our Module-Class.
    If we don't create EJB under EJB Project, then the ejb-jar.xml will not have the representation for Home,Remote, Local Home etc.
    So we need to edit the ejb-jar.xml as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
                             "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
        <description>EJB JAR description</description>
        <display-name>EJB JAR</display-name>
        <enterprise-beans>
            <session>
                <ejb-name>The class name(ex- Myclass)</ejb-name>
                <home>com.sap.aii.af.mp.module.ModuleHome</home>
                <remote>com.sap.aii.af.mp.module.ModuleRemote</remote>
                <local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>
                <local>com.sap.aii.af.mp.module.ModuleLocal</local>
                <ejb-class>The class name  with the package defn(ex- com.xyz.Myclass</ejb-class>
                <session-type>Stateless</session-type>
                <transaction-type>Container</transaction-type>
            </session>
        </enterprise-beans>
    </ejb-jar>
    For more info, pls follow [http://tleterme.developpez.com/bw/how/HowToCreateAdapterModules.pdf  ]
    Regards,
    SS

  • BIC in Module configuration

    Hi All,
    We have imported Seeburger SWCV into IR and i can see different message types(orders,invoices etc) in external definitions and some standard mappings like(E_ORDERS_96A_to_I_ORDERSO5_LIST, T_ORDERS_V9_to_I_ORDERS05, etc)in message mapping.Does the suffix T stands for Tradacom, E stands for edifact are corect assumption?
    If i'm using the external definition(source message) and the message mapping from here, Do i still need to give the parameters in BIC module.
    Please confirm.
    Thanks,
    Smith

    Hi Paul,
    According to the existing structures which are present in the external defintions proceed.. and dont forget to deploy the .SDA file in the XI server using SDM..
    before that u need to create an Project which contains active mapping in which u need to move what ever the mappings and structures which u needed from there u can generate .SDA file and u can deploy it in server..
    and at the same time u need to some configuration steps in MODULE CONFIGURATION to call the BIC mapping designer program which was deployed as .SDA file in the server.
    revert back with ur exact queries..
    regards,
    Kishore

  • Seeburger module configuration

    We are using this module configuration for converting EDI D96A format to XML:
    1     localejbs/CallBicXIRaBean     Local Enterprise Bean     bic
    2     localejbs/CallSapAdapter     Local Enterprise Bean     0
    bic     destSourceMsg     MainDocument
    bic     destTargetMsg     MainDocument
    bic     logAttID     ConverterLog
    bic     mappingName     See_E2X_ORDERS_UN_D96A
    bic     saveSourceMsg     ORIGINAL_EDI
    can someone please tell me the module configuration for reverse mapping at receiver end,i.e.,XML to EDI D96A
    basically,I need mapping name for this.
    Thanks.
    Best Regards,
    Shweta

    HI,
    Configuration for AS2 or simple file adapter.
    Scheme=AS2ID
    Name = WAN network no of the partner who is sending the file
    Sender AS2 adapter configuration:
    Few changes in the module parameter tab.
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_E2X_EDIFACT_ORDERS_UN_D93A which does the conversion of EDI-XML.
    Receiver AS2 adapter configuration:
    When the adapter is used in a receiver channel, it obtains a message from the Integration Engine and sends it to a business partner. In this case, the following steps are required:
    1. Define the channel as a Receiver channel on the Parameters tab
    2. The last step ensures the module sequence is complete:
    Make sure the module ModuleProcessorExitBean does exist in the module sequence:
    Module Name=localejbs/ModuleProcessorExitBean
    Type=L
    Module Key=Exit
    • with the following module parameter:
    Module Key=Exit
    Parameter Name=JNDIName
    Parameter Value=deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
    File receiver:
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_X2E_EDIFACT_ORDERS_UN_D93A
    ONly the mapping program name changes from E2X to X2E. IN ur case it will be See_X2E_ORDERS_UN_D96A
    thnx
    chirag

  • Use module configuration location

    Hi,
    i tried in the configuration of a sql loader mapping the "Use module configuration location" option for the location of the control file. The problem is that i can select that value but it's not possibile to check. I can only select a location from the combo box.
    Is there a particular configuration for this choice?
    Thanks,
    Luca

    Yes, I can view and modify all the locations. The "problem" is that with OWB 11 I don't know how to set a default location for a module (I think that every mapping can use the default value). In OWB 10 I must not define a location for control files (there was a default value).
    Any ideas?
    Thanks,
    Luca

Maybe you are looking for

  • [SOLVED-MOVED] Cups problems - Can't print (Epson DX7450)

    Edit: Realized this belongs in workstation forum sorry Hello, I am having some problems with cups. I am using gutenprint drivers from the repo, and am able to set everything up nicely (so it seems). When trying to print, nothing happens. The job queu

  • HTML in Email

    I have Sprint as my carrier and use gmail.  How can I get my blackberry to show emails with HTML embedded?  Currently it shows the HTML coding. Thanks

  • Possible solution for people having problems updating InDesign CC to 9.2.2 on Windows 7/8

    So after InDesign CC x64 (x32 version seemed fine?) giving me constant update failed errors and about four different error codes each different way I tried to fix it, I decided to find out why, like many I have been getting this in my Install log. FA

  • Configure outlook mac 2011 gmail

    I am trying to configure my email from Gmail to be delivered to my Outlook for Mac 2011.  I have followed all the tutorials and recommended settings for both my Gmail and the Outlook client but I continue to get the same error message I have checked

  • Photoshop Elements 12 will not start

    When I start elements 12 I receive the error message "Photoshop elements cannot start or continue because of missing file(s) Please reinstall" I have reinstalled the program twice and still get the same error. I have been using the program for a mont