on 10-30-2008 2:17 PM
I try to deploy a lookup like weblog [Data Lookup Optimized|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5877] [original link is broken] [original link is broken] [original link is broken];
After import RFCLookupOptimized in my namespace under importet archives it looks like this
Name : RFCLookupOptimized_1.0.jar
Path : DataLookupOptimized/
in my UDF in the same namespace i try this:
imports it.techedge.sap.xi.utils.datalookup.*;
(udf like the example)
testing the mapping => show queue i got the following error:
package it.techedge.sap.xi.utils.datalookup does not exist
so where is my fault???
help say this
/*******************************************************************
PLEASE MAKE SURE TO IMPORT THE FOLLOWING PACKAGE
it.techedge.sap.xi.utils.datalookup
*
********************************************************************/
//Retrieve the data look up provider object from the globalContainer
GlobalContainer globalContainer = container.getGlobalContainer();
DataLookUpProvider dlp = (DataLookUpProvider) globalContainer.getParameter("DATA_LOOKUP_PROVIDER");
if(dlp == null) dlp = DataLookUpProviderFactory.getDataLookUpProvider();
dlp.setContainer(container);
//Create the list of parameters to be provided to the RFC
ArrayList rfcParams = new ArrayList();
/******************************************************************************/
/* BEGIN OF CUSTOM CODE *******************************************************/
/******************************************************************************/
rfcParams.add(�);
rfcParams.add(�);
rfcParams.add(�);
/******************************************************************************/
/* END OF CUSTOM CODE *********************************************************/
/******************************************************************************/
//Execute the data look up
String result = dlp.provideDataLookUp(systemName, remoteFunctionName, outputFieldName, rfcParams);
//Store the dataLookUpProvider object in the global container
globalContainer.setParameter("DATA_LOOKUP_PROVIDER", dlp);
//Return the result
return result;
can you check the jar if the package exists?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.