Skip to Content
avatar image
Former Member

Doubts on Module Processor

Hello All,

What are Module Processors in XI? Where do we use them? Can anybody please send me some docu about this concept?

//Priya//

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jul 14, 2006 at 05:49 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2006 at 05:53 AM

    Hi Priya,

    Module processor is used to enhance the adapters or provides additional functionality to the builtin XI adapters.

    Details...

    http://help.sap.com/saphelp_nw04/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm

    Real time example..

    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter

    whts your mail id??? I can send you a detail doc on "How to create Adapter Modules"

    Regards,

    Raks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2006 at 05:54 AM

    Hi Priya,

    This is an excellent document for modules processing:

    https://websmp104.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf

    sekhar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2006 at 05:55 AM

    Hey

    just chk out this thread

    Module Processing

    and also can send u a pdf on module processing if u give me your id.

    cheers

    jithesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2006 at 06:00 AM

    Hi Priya,

    These are the basic steps involved in writing a module:

    1. Make sure you have the following jar files with you.

    aii_af_cci.jar

    aii_af_mp.jar

    aii_af_ms_api.jar

    aii_af_ms_spi.jar

    aii_af_trace.jar

    aii_af_svc.jar

    aii_af_cpa.jar

    2. Open NetWeaver Developer Studio. Create a new EJB Module

    New >J2EE >EJB Module.

    Specify a meaningful name for the module and click Finish.

    3. Right click on the folder ejbModule and create new package.

    Enter a meaningful name for package and click Finish.

    4. Right click on the Project, select New-->Folder. Enter lib as the folder name.

    Copy all the jar files specified above from your local system and paste them into newly create lib folder.Right click on the project. Select Properties-->Java build path. Go to Libraries tab and add the jar files from lib folder to the classpath.

    5. Switch to J2EE Perspective-->J2EE Explorer tab.

    Right click on the newly created package and select New-->EJB.

    6. Specify a meaningful name for the EJB. Select Bean Type as Stateless Session Bean.

    Make sure to uncheck the checkbox “Generate default interfaces”.

    Click on Next.

    7. On the next screen change the values of following attributes as specified below.

    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

    Click on Finish.

    8. After clicking on Finish, a Creation error will be reported. Ignore this error as the file would still be created as specified.

    Open the newly created file in Java Editor and add “Module” to the implements list of the bean class. Press Ctrl + Shift + O to remove import errors if any.

    You will see a new error as

    “Class must implement the inherited abstract method Module.process(ModuleContext, ModuleData)”.

    Right click in the java editor and select Source-->Override / Implement methods. Select process method from Module interface and click Ok.

    You should have an error free build of the project after this.

    process is the only method where we need to write the business logic.

    With this you are ready to right the situation specific business logic in the process method.

    9. Once you create a deployable archive i.e. .ear for this using NDS, you can deploy this archive using NDS or using SDM.

    Also go through these links:

    http://help.sap.com/saphelp_nw04/helpdata/en/a4/f13341771b4c0de10000000a1550b0/frameset.htm

    /people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi

    and also there is a how to guide on Service Market Place which delas with creating modules for your Adapter. Think it might be helpful to you and answer your query,

    https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202

    Just open the link below, and select the topic How to create adapter modules for j2ee engine

    The how to guide is available at the SAP marketplace.

    https://service.sap.com/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf

    and also go through Step" target="_blank">www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/how%20to%20develop%20a%20module%20for%20reading%20file%20name%20in%20a%20sender%20file%20adapter%20xi%203.0.pdf">Step by Step guide to develop a module for reading a file name in sender file adapter

    I hope all this information provided will help you create your module successfully.

    Regards,

    Abhy

    Add comment
    10|10000 characters needed characters exceeded