on 02-22-2005 9:41 PM
How do I pull the Exports from a function module. Am I suppose to use the Scalar example in the JCA guide? If no would someone please post how to pull export from the export tab in se37.
String scalar = (String) exportParams.get("SCALAR_NAME");
When I attempt the scalar example to pull an export field it gives me a null.
I can pull a table from a function module with no problems.
Stephen
Hi Schwarz,
Add following code to make it work.
JCO.MetaData fmeta = new JCO.MetaData("STFC_CONNECTION");
fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
repository.addFunctionInterfaceToCache(fmeta);
Where REQUTEXT is the import parameter and ECHOTEXT and RESPTEXT are the export parameters in function module.
Try this and let me know..
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this:
String scalar = exportParams.getField("SCALAR_NAME").getValue().toString();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.