Modules In adapter

Hi frnds, I need some  theory about Module in  adapter .
How can v write code over there.
V can write in java .
wat is main purpose of module.
Can u giv me example .......
bye..........

Hi,
Adapter modules
While dealing with adapter modules,
1. First, create an EJB Module.
2. You create a Stateless session bean.
3. You use the following attributes for the bean,
Remote Interface: com.sap.aii.af.mp.module.ModuleRemote
Home Interface: com.sap.aii.af.mp.module.ModuleHome
Local Interface: com.sap.aii.af.mp.module.ModuleLocal
LocalHome Interface: com.sap.aii.af.mp.module.ModuleLocalHome
4. Your class must implement,
Module.process(ModuleContext, ModuleData).
5. You buiild an EAR archive and an Application Archive and then deploy this on your J2EE engine.
For async sender/receiver adapters, you use modules before the adapter module.
for sync sender/receiver adapters, you can wither use modules before the adapter module (they will affect the request message) or after the adapter module (affecting the response message).
Refer
/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
SAP NetWeaver Exchange Infrastructure - Adapter Module Development - Webinar Powerpoint
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
SAP Network Blog: XI: Dynamic configuration in adapter modules - one step further
/people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/f13341771b4c0de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
/people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/a12241c20af16fe10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/6019419efeef6fe10000000a1550b0/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/327dc490-0201-0010-d49e-e10f3e6cd3d8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/34a1e590-0201-0010-2c82-9b6229cf4a41
Thanks
Swarup

Similar Messages

  • Developing User Enhancement Modules in Adapter Engine Teched07 attender?

    Hi,
    I am looking for the Java code of one of the hands on curses in the SAP Teched07.
    The course was a XI/PI, <i>Developing User Enhancement Modules in the Adapter Engine</i>, and I need the Java code of the Java Bean that was used.
    The name of the file is GetHostNameXXBean
    If someone can help me i would appreciate it.
    Thanks in advance.
    Eduardo

    [code]package com.teched06.usermodule;
    // Classes for EJB
    import javax.ejb.CreateException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    // Classes for Module development & Trace
    import com.sap.aii.af.mp.module.Module;
    import com.sap.aii.af.mp.module.ModuleContext;
    import com.sap.aii.af.mp.module.ModuleData;
    import com.sap.aii.af.mp.module.ModuleException;
    import com.sap.aii.af.ra.ms.api.Message;
    import com.sap.aii.af.ra.ms.api.MessageDirection;
    import com.sap.aii.af.service.trace.Trace;
    // XML parsing and transformation classes
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.io.InputStream;
    import java.io.ByteArrayOutputStream;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import com.sap.aii.af.ra.ms.api.XMLPayload;
    import javax.xml.transform.*;
    import javax.xml.transform.Source;
    import javax.xml.transform.Result;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import com.sap.aii.af.service.auditlog.*;
    @ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
    @ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
    @ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
    @ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>
    @stateless
    public class GetHostName implements SessionBean, Module  {
        public static final String VERSION_ID = "$Id://tc/aii/30_REL/src/_adapters/_sample/java/user/module/GetHostName.java#1 $";
        private static final Trace TRACE = new Trace(VERSION_ID);
        private SessionContext myContext;
        public void ejbRemove()  {
        public void ejbActivate()  {
        public void ejbPassivate()  {
        public void setSessionContext(SessionContext context)  {
            myContext = context;
        public void ejbCreate() throws CreateException  {
        public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException  {
              String SIGNATURE = "process(ModuleContext moduleContext, ModuleData inputModuleData)";
            Object obj = null;
            Message msg = null;
            String hostName = getHostName();
              AuditMessageKey amk = null;
            try  {
                obj = inputModuleData.getPrincipalData();
                msg = (Message) obj;
                   if (msg.getMessageDirection().equals(MessageDirection.OUTBOUND))
                        amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.OUTBOUND);
                   else
                     amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.INBOUND);
                Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,     "GetHostName: Module called");
            catch (Exception e)  {
                ModuleException me = new ModuleException(e);
                throw me;
              // Read the channel ID, channel and the module configuration
              String hostElementName = null;
              try {
                   // CS_GETMODDAT START
                   hostElementName = (String) moduleContext.getContextData("HostElementName");
                   // CS_GETMODDAT END
                   if (hostElementName == null) {
                        TRACE.debugT(SIGNATURE, "HostElementName parameter is not set. Default used: HostName.");
                        Audit.addAuditLogEntry(amk, AuditLogStatus.WARNING, "HostElementName parameter is not set. Default used: HostName.");
                        hostElementName = "HostName";
                   TRACE.debugT(SIGNATURE, "HostElementName is set to ", new Object[] );
                   Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "HostElementName is set to ", new Object[] );
              } catch (Exception e) {
                   TRACE.catching(SIGNATURE, e);
                   TRACE.errorT(SIGNATURE, "Cannot read the module context and configuration data");
                   Audit.addAuditLogEntry(amk, AuditLogStatus.ERROR, "Cannot read the module context and configuration data");
                   ModuleException me = new ModuleException(e);
                   TRACE.throwing(SIGNATURE, me);
                   throw me;
            try  {
                XMLPayload xmlpayload = msg.getDocument();
                DocumentBuilderFactory factory;
                factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder builder = factory.newDocumentBuilder();
                Document document = builder.parse((InputStream)
                xmlpayload.getInputStream());
                Element rootNode = document.getDocumentElement();
                if(rootNode != null)  {
                    Element childElement =
                    document.createElement(hostElementName);
                    childElement.appendChild(document.createTextNode(hostName));
                    rootNode.appendChild(childElement);
                // Transforming the DOM object to Stream object.
                TransformerFactory tfactory = TransformerFactory.newInstance();
                Transformer transformer = tfactory.newTransformer();
                Source src = new DOMSource(document);
                ByteArrayOutputStream myBytes = new
                ByteArrayOutputStream();
                Result dest = new StreamResult(myBytes);
                transformer.transform(src,dest);
                byte[] docContent = myBytes.toByteArray();
                if(docContent != null)  {
                    xmlpayload.setContent(docContent);
                    inputModuleData.setPrincipalData(msg);
            catch (Exception e)  {
                ModuleException me = new ModuleException(e);
                throw me;
            return inputModuleData;
         private static String getHostName() {
              String host = "unknown";
              try {
                   InetAddress inet = InetAddress.getLocalHost();
                   host = inet.getHostName().toLowerCase();
                   int i = host.indexOf(".");
                   if (i > 0) {
                        host = host.substring(0, i);
              catch (UnknownHostException e) {
                   host = "error";
              return host;
    [/code]

  • Search Module for adaptive layout

    Hi BC Community,
    I am creating an adaptive layout site for my client (so, desktop/tablet/mobile versions).  I am using the search module in the site design, which is working quite well, however, on the desktop site, it is showing pages from the mobile and tablet sites in the search results.
    Does anyone have a work around to solve this issue?  For the desktop search results, I just want it to show desktop pages, same goes for tablet and mobile.
    Thanks in advance for your help with this.
    Aaron

    Hi,
    ASE 12 is very old and since no Eng support maybe decision made to not use datetime. However, you can certainly request feature - if you are able to create incident we can create Feature and then incident can be used for tracking purposes, etc.
    If unable to create incident please provide details:
    ASE version (exact with select @@version)
    SDK version being used
    code sample to demonstrate problem and the output from such a test
    If you used TDS please provide that trace as well if possible
    Cheers,
    -Paul

  • 7916 Expansion Module Power Adapter Alternative

    hi all,
    i received a 7916 expansion module but it didn't come with the power adapter.
    i heard (or maybe read) somewhere that you can use the power adapter of Cisco APs.
    i tried to google but giving me cisco vendor site.
    anyone can confirm the alternate model and its voltage?

    You can compare the specs, but why not order the correct one:
    CP-PWR-CUBE-3=
    CP-PWR-CORD-xx=

  • Python module for Adaptive Server compatibility with ASE 12

    I discovered that the Python module in the SDK can't pass datetime as a parameter to an ASE 12 server, most likely because it is trying to use bigdatetime. Is this intentional? It was generally expected for OpenClient to be backwards compatible after all.

    Hi,
    ASE 12 is very old and since no Eng support maybe decision made to not use datetime. However, you can certainly request feature - if you are able to create incident we can create Feature and then incident can be used for tracking purposes, etc.
    If unable to create incident please provide details:
    ASE version (exact with select @@version)
    SDK version being used
    code sample to demonstrate problem and the output from such a test
    If you used TDS please provide that trace as well if possible
    Cheers,
    -Paul

  • Adapter moduler in file adapter receiver - get Target Directory from param

    Hi everybody,
    We are in PI 7.1
    I need in an adapter module (file adapter receiver) to access to the Target Directory comming from parameters
    I foound the code in a weblog
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Here is the code I found
    public ModuleData process(
              ModuleContext moduleContext,
              ModuleData inputModuleData)
              throws ModuleException {
              Object obj = null;
              Message msg = null;
              try {
                   Channel ch = new Channel(moduleContext.getChannelID());
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message) obj;
                   XMLPayload xmlpayload = msg.getDocument();
                   String path = ch.getValueAsString("file.targetDir");
                   if (!path.endsWith("
    ") && !path.endsWith("/"))                    
                             if(path.indexOf("
    ")!=-1)
                                  path+="
                             else
                                  path += "/";
                   if (xmlpayload != null) {
                        convert(xmlpayload.getContent(), path);
                   inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {}
              return null;
         private void convert(byte[] bs, String path) throws Exception {
              String bs_out = new String(bs);
              String filename =
                   bs_out.substring(
                        bs_out.indexOf("<FileName>") + 10,
                        bs_out.lastIndexOf("</FileName>"));
              bs_out =
                   bs_out.substring(
                        bs_out.indexOf("<Base64>") + 8,
                        bs_out.lastIndexOf("</Base64>"));
              byte bb[] = com.sap.aii.utilxi.base64.api.Base64.decode(bs_out);
              File f1 = new File(path + filename);
              FileOutputStream fos = new FileOutputStream(f1);
              fos.write(bb);
              fos.close();
    The object Channel come s from the package import com.sap.aii.af.service.cpa.Channel;
    The jar is in the build path (com.sap.aii.af.service.cpa.jar);
    When I write in NWDS
    Channel ch = new Channel(moduleContext.getChannelID());
    NDWS gives me an error "Cannot instantiate the type Channel".
    Can somebody help me about that, please?
    Does that code dosn't work in pi 7.1?
    Thanks in Advance for your help.
    Best Regards.
    E. Koralewski
    Edited by: Eric Koralewski on Feb 3, 2011 1:40 PM

    > When I write in NWDS
    > Channel ch = new Channel(moduleContext.getChannelID());
    > NDWS gives me an error "Cannot instantiate the type Channel".
    it should be:
    Channel ch = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, moduleContext.getChannelID());
    (taken from sample module ConvertCRLFfromToLF)
    http://help.sap.com/javadocs/pi/pi711sp03/index.html?com/sap/aii/af/service/cpa/Channel.html
    Edited by: Stefan Grube on Feb 3, 2011 2:02 PM

  • Adapter specific Module

    Hi
    What is Adapter specific Module ? Pls explain in detail
    Thanks,
    srini

    HI Srinivas
    Please go thru the following notes for Adapter Specific Modules.
    Dynamic Configuration Module: Note 974481
    Zip Module: Note 965256
                /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Text Codepage Conversion Module: Note 960663
    XML Anonymizer Module: Note 880173
                           /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
    XML-to-Text Conversion Module :
    http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/frameset.htm
    Payload Swapping Module: Note 794943
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    Message Transformation Module: Note 793922
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    RequestResponseBean: http://help.sap.com/saphelp_nw04/helpdata/en/45/20c210c20a0732e10000000a155369/frameset.htm
    ResponseOnewayBean:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20cc5dc2180733e10000000a155369/frameset.htm
    Example Module from Adapter Development:
    http://help.sap.com/saphelp_nw04/helpdata/en/96/f04142099eb76be10000000a155106/frameset.htm
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • Adapter Modules when executed?

    Hi
    I have a module in file adapter (sender). when the module will be executed. is it before the file is polled or it is after the file polling? any broader view on this will be highly appriciated.
    thkx
    Prabhu

    Hi Prabhu ,
    Very nice to see your question here ...
    After pick the file from sender side the file native format message into XI message format will be done in Adapeter and message id will be generated for the XI message format , later this XI message will be send it Module processor, here generic AF modules and Adapter spcific modules will be executed here
    see the below links to helps you lot
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
    /people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/a12241c20af16fe10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/6019419efeef6fe10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/327dc490-0201-0010-d49e-e10f3e6cd3d8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/34a1e590-0201-0010-2c82-9b6229cf4a41
    Regards
    Chilla

  • Crating adapter modules in XI

    Hi
    I went through a blog on this and seen that we need some jar files inorder to develop this. these are files they have mentioned in the blog
    aii_af_lib.sda,
    aii_af_svc.sda and
    aii_af_cpa_svc.sda.
    Where are these files placed in the XI server. can naybody please tell me the exact location.
    thanks

    Hi Sudhakar,
    These files to be deployed in Netweaver developer studio .
    Plz do refer the following blog it explains clearly...
    Adapter Module Development & Module Configuration
    Also refer...
    ADAPTER MODULES
    how to create modules on j2ee engine
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    RFC calls from Adapter modules...the Web Service Way!
    RFC calls from Adapter modules...the Web Service Way!
    TechEd 2007: EPI351 - Developing User Enhancement Modules in the Adapter Engine
    TechEd 2007:  EPI351 - Developing User Enhancement Modules in the Adapter Engine
    TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
    TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
    Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
    Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
    XI Mapping Module for AFW
    The specified item was not found.
    XI: Dynamic configuration in adapter modules - one step further
    The specified item was not found.
    Adapter Module Development & Module Configuration
    Adapter Module Development & Module Configuration
    Dynamic configuration in adapter modules
    Dynamic configuration in adapter modules
    Rename Attachment Adapter Module
    Rename Attachment Adapter Module
    Regards,
    Vinod.

  • No Un-ambiguous Selection of Mapping Module (above one) for BUPA_MAIN BDocs

    Hi All
    I seem to have hit a snag here. I am trying to replicate customers from CRM to ERP but am getting these two errors:
    Main error: Partially send, receivers have errors.
    No un-ambiguous selection of mapping module (above one) for BDoc type 3932399B34D6279BE10000000A11449E.
    Service that caused the error: SMW3OUTBOUNDADP_CALLADAPTERS._
    I have searched on Googleand SDN but have come up with nothing as far as these errors are concerned. We have managed to replicate Business Partners, Materials and Conditions from ERP to CRM without any problems but when it cam e to replicating back, these errors started popping up.
    I have used all the tools for analysis but have come up with nothing the really suggest to me what is wrong. I have monitored queues, traces and dumps. I have played around with the filter setting and all.
    With regards to the process itself, i followed the C03 best practices config guide and i believe that i have everything in place. Here are the steps i followed:
    1.Create an Internal number range for the CRM customer group.
    2. Assigned the number range to the Customer group
    3. Created a corresponding number range (External) in ERP and a corresponding CRM Customer account group as a copy of the standard 0001 Sold-to-party account group and assigned the number range to it.
    4. Defined Partner functions (SP, SH, BP, and PY) for the account group
    5. I mapped the CRM classification for customers (B) to the created account group (CRM Customer)
    6. I synchrponized the fields for the account group created and the BP roles in CRM including changes on a per client (BUPA) basis.
    7. I redowloaded all the cutomizing objects (though i only needed the DNL_CUST_KTOKD) for the sake of the mappings directly in CRM or R/3 Account group maintenance during the creation of the BP.
    8. I customized the filter settings in BUPA_MAIN and included the BUT100 table for the filetring of the customers who were created as SP, BP, PY, or SHand who belonged to the Customer group we had created. (BUT000->BU_GROUP & BUT100->RLTYP) for source site CRM.
    9. Activated the necessary function modules through transactions COM_BUPA_CALL_FU in ERP and CRMC_BUT_CALL_FU in CRM according to [http://help.sap.com/saphelp_crmscen70/helpdata/en/60/85b5d333f4174b8e982c1c15db35f3/frameset.htm]
    10. Using transaction R3AS i sought to replicate the BUPA_MAIN object.
    Because of the few customers created in CRM, it only executes within a single block so the queues would be empty by the time SMQ1 and SMQ2 are executed. R3AM1 shows it as running. SMW01 shows the above error.
    When creating a BP through the tx code BP, the main error would be Technical error(Incomplete) and the two other errors as mentionme above would also be there
    Is there anyone out there who has met this very same problem or knows the solution to this.
    Thanks in advance.

    We managed to get a solution to the problem. Here it goes:
    When a new adapter object (e.g a custom one) is created, the SMOFOBJECT table is populated with the entry and, in turn, the SMOFUPLMAP is populated with the object and the mapping module for uploading to R/3. During the upload process, a search for custom mapping modules is done and if not found the standard mapping modules are used. However, and it seems weird since it seems as if it applies to the BUPA_MAIN object or the corresponding mapping module (BUPA_MWX_BDOC_UPLOAD_MAIN_R3), there has  to be a one-to-one mapping between an mapping module and adapter object.
    I had created a custom adapter object (Z_BUPA_MAIN) to which I wanted to put some custom filters and did not want to test with the standard object. So two objects using the same mapping module ended up existing  in the SMOFUPLMAP table (one-to-many mapping). The function module in which this happens is the GET_UPL_FUNCTION_FOR_OBJ.
    So the solution would be to delete the object if it is not needed or to maintain the SMOFUPLMAP table to remove the entry. When you delete the object, it sometimes does not automatically/subsequently remove the entry in SMOFUPLMAP, so manual maintenance has to be done or the same object has to be recreated and have the mapping module allocated. After this, the problem would be solved. What is weird to me is that the only one-to-one mapping is allowed. I created a custom object for the download of conditions and I did not get that error. So it means that in this case you would have to copy the mapping module and create a custom one for the custom object.

  • Sender file adapter conversion Error!!

    Hello every one....
    I am stuck with a problem...in my scenario,, there are possiblities that file may contain more than required paramters... in such case,,, paramters defined in conversion should go ahead and others should be ignored...
    for this very purpose i added the paramter:
    row.fieldSeparator                 ,
    row.fieldNames                     orderno,authcode,status
    row.endSeparator                  'nl'
    row.additionalLastFields      ignore
    the scenario works fine if the file contains thrree comma separated values but it raises an error if no of paramters increase as :
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting
    document line no. 1 according to structure 'row':java.lang.Exception: ERROR in configuration: more
    elements in file csv structure than field names specified!
    we are using PI 7.... does it require some more configuration in additoin to paramter row.additionalLastFields
    any help in this regard would be highly appreciated...
    thanx

    this parameter is already set, and this is the exact behavior i want from adapter engine...  but the problem
    here is different... the exception is raised at communication channel's conversion routine level,,, the retry
    interval is not the one defined in visual admin but infact the interval (polling) time defined in communication
    channel.... the system does'nt stop after 3 attempts,, but infact keep on trying to read it....
    one peice of information i  have found is in sap note:821267 , which states:
    *Q35:*
    Q: I have configured a File Sender channel with File Content
    Conversion or a custom-developed module, which may throw an
    exception. When the File Adapter encounters an invalid file, which
    triggers a conversion error or an exception in a module, the
    adapter will enter a retry interval and upon each following
    processing attempt try to process the faulty file. This basically
    prevents the File Adapter from picking up files that are located
    after the fauilty file according to the configured sort order. How
    can I change this behavior?
    o A: This is by design. When the File Adapter encounters an invalid
    file, manually remove this file from the configured source
    directory. You can configure an alerting rule to get notified each
    time this occurs.
    We are currently evaluating possible solutions that could be used
    to skip this manual interaction.
    now can there be a way around to make communication channel read the file only 3 times (value defined in adapter engine profile in visual admin)
    I have thaught of writing of module.... but the error is raised even before calling module !!
    any further clue ???

  • Problem in EJB Module

    Hi all ,
    We have written a EJB module (Successfully deployed)  and that we are using in the Sender comm Channel (file)
    **Part of the code
              Message msg = (Message) inputModuleData.getPrincipalData();
              AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
              Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Entered method process");
              if (msg == null) {
                   throw new ModuleException("No XI Message found");
              XMLPayload xp = msg.getDocument();
              Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Retrieve payload document");
              if (xp == null) {
                   throw new ModuleException("XMLPayload not found");
              //     get Audit message Key for Inbound messages
              byte fileContent[] = xp.getContent();
              //String fileString = new String(fileContent);
              Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Retrieved payload");
              JCO.Client client = null;
              client = JCO.createClient("001", // SAP client
                   "aaaa", // userid
                   "*****", // password
                   "EN", // language
                   "gcrsap.comp.com", // host name
                   "00"); // system number
              // Open the connection
              client.connect();
    ****Part of the code ****
    When use the module in adapter , we are getting the error in Communication Channel Monitoring (RWB) " Attempt to process file failed with com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process"
    Regards
    Goutam

    Also, can you check the log files in J2ee engine
    you will have the stack trace
    regards
    krishna

  • Error while using PayloadZipBean module

    hi,
    For sending the data in zipped format in JDBC Adapter i used "PayloadZipBean" module.
    While Communication channel Monitoring at Receiver end I am getting this Error:--
    "Message processing failed. Cause: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at loacalejbs, the whole lookup name is localejbs/loacalejbs/AF_Modules/PayloadZipbean."**
    Is there any need to write this module in adapter engine?

    Hi,
    Have a Look at these
    Working with the PayloadZipBean module of the XI Adapter Framework
    Zip-Transfer-Unzip: Increase the performance of your Java-ABAP applications
    Regards
    Seshagiri

  • Seeburger - BIC configured as Module

    Has any one sucessfully used the BIC as module and convereted the EDI document to XML-EDI format and viceversa. I have configured the BIC as a module and i am running in to all sort of Isssues. Tried to use the Classifier Module to Classify the Message and all it could return was
    <classifier><type>AnsiX12</type>
    <classifierMappingID>null</classifierMappingID>
    <encoding>US-ASCII</encoding>
    <additionalIdentifier></additionalIdentifier>
    </classifier>
    Because the Mapping Id was Null and with the Information that classifier passed to the Bic Module it resolved the mapping name to See_AnsiX12  and i got the Functional Acknowledment in XML-EDI format.
    I got fed up and took out the classifier Module and Provided the mappingName as Parmeter for the BIC module and specified the MAP to be used as bic     mappingName See_E2X_ANSIX12_850V4010. Now when i try to Process the the 850 EDI File i get an error: ISA Segment Filed I15 is empty even though it has the value "/"
    trying to see if any one went through the headchae of Seeburger EDI Adapter and got it working.
    <b>Adapter Error:</b>
    Sender Adapter v1830 for Party 'Business_Partner_1', Service 'EDI':
    Configured at 19:15:57 2005-08-01
    Last message processing started 19:19:07 2005-08-01, Error: Module Exception 'com.sap.aii.af.mp.module.ModuleException: Adapter call failed. Reason: --- Conversion of synchronous request from module chain ended with errors ---[Error:ID=2088;LEVEL=3] FieldData checkInputSyntax(): Mandatory, incoming field is empty. Segment:'ISA', Field:'I15'
    DESCRIPTION: FieldData Error in Segment [not specified] incoming mandatory Field [not specified] is empty. Check class files.
    ' found, cause: javax.resource.ResourceException: --- Conversion of synchronous request from module chain ended with errors ---[Error:ID=2088;LEVEL=3] FieldData checkInputSyntax(): Mandatory, incoming field is empty. Segment:'ISA', Field:'I15'
    DESCRIPTION: FieldData Error in Segment [not specified] incoming mandatory Field [not specified] is empty. Check class files.
    last retry interval started 19:19:21 2005-08-01
    length 10,000 secs
    <b>Actual Input Document:</b>
    ISA00          00          ZZCA7045542000   14007944580RTE   0503240823U004000063519450P/
    GSPOCA7045542000007944580RTE2005032408236351945X4010
    ST8506351945
    BEG00SA450013584120050324*AC
    CURBYUSD*1.000
    N1SO922431
    REFZZ3000*PAORG-
    REFZZ903*PAGRU-
    PERCNMc JunkinTE5409215020
    PERCNNAFTA Purchasing OrgFX5409215030
    N1BTCONTACT THE PST AT 704-554-377892903
    N2*NO BILL-TO ADDRESS AVAILABLE
    REFZZ3000*PAORG-
    REFZZ903*PAGRU-
    PERCNMc JunkinTE5409215020
    PERCNNAFTA Purchasing OrgFX5409215030
    N1VN920001008751
    REFZZE*SPRAS-
    N1STNarrows, VA924022
    N2*Celanese Acetate, LLC
    N3*3520 Virginia Ave.
    N4NarrowsVA24124US
    REFZZE*SPRAS-
    REFZZVA*REGIO-
    PO10001025EA3.62PEPI0VN55159103IN*30300754
    PIDF***Pins,RETAINER #66267536008 FOR 3/4 DRIVE
    REFWO000050248591
    MSG*PINS, RETAINER #66267536008 FOR 3/4 DRIVE SOCKETS-LARGE, ,
    SCH25EA**06720050408
    N1STNarrows, VA924022
    N2*Celanese Acetate, LLC
    N3*CC SHOP
    N3*3520 Virginia Ave.
    N4NarrowsVA24124US
    REFZZE*SPRAS-
    PERCNtmckinne4381
    PO10002050EA3.62PEPI0VN55142194IN*30300755
    PIDF***Pins,RETAINER F/3/4 IN DRIVE SOCKET SMAL
    REFWO000050248591
    MSG*PINS, RETAINER F/3/4 IN DRIVE SOCKET SMALL #66267936007, ,
    SCH50EA**06720050408
    N1STNarrows, VA924022
    N2*Celanese Acetate, LLC
    N3*CC SHOP
    N3*3520 Virginia Ave.
    N4NarrowsVA24124US
    REFZZE*SPRAS-
    PERCNtmckinne4381
    CTT*2
    SE486351945
    GE16351945
    IEA1006351945
    Message was edited by: Sudheer Nagalla
    Message was edited by: Sudheer Nagalla

    Hello,
    I have forwarded your problem, do you have an OSS note open for this problem, already?
    At a first glance I think it is missing a deimiter at the end of the ISA segment, but thats just a rough guess. I can tell you tomorow.
    Greetings
    Bernd

  • The sequence of system modules & user-defined modules

    Hi Experts,
    can u help me clear about the execution sequence about system modules , user-defined modules & the adapter of XI/PI ??
    I presume the sequence is first adapter ,second own modules, finally system modules at the sender end. 
    and the sequence at the receiver end is first own modules , second system modules ,third adapter.
    im right?
    by  the way,  how about the sequence when the scenario is be setted to synchronization, specially the sequence of the
    response.
    thx in advance.
    Brian.

    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/f13341771b4c0de10000000a1550b0/frameset.htm
    1. for async sender/receiver adapters, you use modules before the standard adapter module.
    2. for sync sender/receiver adapters, you can wither use modules before the standard adapter module (they will affect the request message) or after the adapter module (affecting the response message).

Maybe you are looking for

  • How do I copy mail mailbox folders from an external drive

    My old Macbook Air (2009) has died - logic board failed - so I have removed the ssd drive and mounted it in a Runcore usb enclosure from C Memory - worked a treat.  I would like to copy a number of Mail mailboxes I used for archiving old email messag

  • My 1st generation iPad won't restore

    My first gen ipad won't restore. It won't turn on, it won't turn off, it won't show the apple logo when I try to put it in DFU mode, and it won't show the 'connect to itunes' symbol. Basically it won't do anything that all the trouble shooting tips s

  • Ipod Video-getting DVDs onto Ipod video

    i got a ipod video for christmas and i have some dvd's i would like to put on my ipod. my friends say i have to get some kind of converter. I have been looking around on the internet and i have no clue what im doing. from what i've seen, these conver

  • How to speed up clouds only in Final Cut Pro?

    I have a clip of a Buddha positioning my video low so I can get the clouds pass by for an 1 hour. I want to do is to speed up the clouds only. I know that I highlight the clip and change the speed, but still the clouds aren't moving fast. Does any on

  • Yellow Screen on 2nd Monitor

    I have a MacPro 2.66 Dual with the nvidia 7300 and when I have both monitors pluged in, one of them has a yellow tint. I have tried both monitors on each side but the problem stays the same. I have tried reinstalling the OS and that does not work eit