cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters to adapter module

Former Member
0 Kudos

Hi

I have configured file adapter in such a way that, it accepts parameter name and value from module configuration table.However when I tried to send parameters, it was not allowing me to access the values of each parameter by writting the following piece of code in Adapter Module.

Here String1,String2 are parameter Names from table

inputModuleData.getSupplementalData("module.parameters");

String first = (String) mp.get("String1");

String second=(String) mp.get("String2");

can any one suggest me How can I access data from configured adapter?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi kumar,

can you plz check in Module the <b>Call Sap Adapter module</b> is after your module or not, if it is not so make <b>Call Sap Adapter module</b> last in sequence.

hope this will help.

regards

HONEy

Former Member
0 Kudos

It is the last module being called.I'm sure

Former Member
0 Kudos

hi kumar,

refer this:

Adapter module

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac2...

Testing

/people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter

it gives u all code u need to pass/ receive params.

[reward if helpful]

regards,

latika.

Former Member
0 Kudos

Hi Latika,

Thanks...

Still my question is un answered. Since I need the approach to pass values from adapter. And how to retrieve parameter values in Adapter Module?

Infact I have collected above code from the same blog.

Former Member
0 Kudos

hi kumar,

>> I need the approach to pass values from adapter. And how to retrieve parameter values in Adapter Module?

u shud use moduleContext for accessing parameters specified for module in adapter configuration.

give the parameters in module tab in adapter configuration that u want to paas to ur module (as explained in the link i mentioned earlier) and in ur module access them using:

String parameter = moduleContext.getContextData("parameter");

here "parameter" is the param set in adapter configuration module tab page.

[reward if helpful]

regards,

latika.