Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 09, 2009 at 01:47 PM

    Hi Ravindra,

    >>parameter name

    If your module is expecting any input (say fileType) then specify it here.

    >>parameter value

    and the value that you will b passing (eg xlx or xslx)

    Regards

    Suraj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 09, 2009 at 02:05 PM

    If your module is expecting some parameters from the module tab(for example your may read message type and the namespace to bulid the xml inside the module

    Whatever the ModuleKey you are specifiying in the Processing Sequence, the same you have to use in Module Configuration(example res)

    Module key         parameter Name                               parameter value
    res                      msgType                                       MT_Source
    res                     nameSpace                                       http://example/moduletest
    

    then you will read these parameters inside the module for processing

    ModuleContext mc;
    msgType = (String) mc.getContextData("msgType");
     nameSpace = (String) mc.getContextData("nameSpace");
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 10, 2009 at 06:50 AM

    Hi Guys,

    Im using this blog by felix

    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID0367244950DB00578216975372480601End?blog=/pub/wlg/1967

    Hence, I feel I dont have to add any thing in the parameter and value fields in module configuration.

    am i right?

    Then i get an error in sender communication channel as seen below..

    Im unable to follow where I have gone wrong..request ur help

    Error: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/UserModule_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.adaptermodule.GetHostNameBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.adaptermodule.GetHostNameBean@299c92f0 for bean sap.com/UserModule_EARxml|UserModule_EJB.jarxml|GetHostName in application sap.com/UserModule_EAR.; nested exception is: java.lang.NullPointerException; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/UserModule_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.adaptermodule.GetHostNameBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.adaptermodule.GetHostNameBean@299c92f0 for bean sap.com/UserModule_EARxml|UserModule_EJB.jarxml|GetHostName in application sap.com/UserModule_EAR.; nested exception is: java.lang.NullPointerException; nested exception is: javax.ejb.EJBTransactionRolledbackException: (Failed in component: sap.com/UserModule_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.adaptermodule.GetHostNameBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.adaptermodule.GetHostNameBean@299c92f0 for bean sap.com/UserModule_EARxml|UserModule_EJB.jarxml|GetHostName in application sap.com/UserModule_EAR.; nested exception is: java.lang.NullPointerException; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/UserModule_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.adaptermodule.GetHostNameBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.adaptermodule.GetHostNameBean@299c92f0 for bean sap.com/UserModule_EARxml|UserModule_EJB.jarxml|GetHostName in application sap.com/UserModule_EAR.; nested exception is: java.lang.NullPointerException any help is appreciated

    Regards,

    Teja

    Edited by: Ravindra Teja on Sep 10, 2009 8:50 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 09, 2009 at 01:50 PM

    HI,

    Inside you module, use the following code to read any parameter you enter in the CC.

    String myParameterValue = moduleContext.getContextData("myparameter");
    

    Regards

    Ivan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 13, 2009 at 05:51 PM

    solved 😊

    Add comment
    10|10000 characters needed characters exceeded