on 07-30-2008 2:49 PM
Hi Experts,
I am new to XI, I want to know what is the look up machanisam used while connecting from XI to R/3. Basically i got the issue in mapping i need to look up R/3. what exactly it is. I will appricate for basic idea on look settings how we can do in mapping.
Hi,
1)what is lookups
Lookups are used to identify / request the data from mapping , i mean interupting the process and looking for data which
was stored in some where and get that data and comback to process and continue with that data.
2).why we can use for lookups.
We will use these type of lookups in Message mapping for refering DB Lookup for data base which is not SAP, RFC lookups for SAP data
Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system
dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
Overview of Lookup
Lookups are used to identify/request the data from mapping program.It interrupt the process and looking for data which was stored in target system. It get that data and comeback to process and continue with that data.
Types of Lookups in XI
JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
RFC Lookup: RFC lookup is used for accessing the SAP Data.
SOAP Lookup: SOAP lookup is used for accessing data from Webservice
Its like a UDF how you can map the udf this is also same.
Some sample code
Imports com.sap.mw.jco.;java.lang.;
String client, user, pwd, sysnr, ipadd;
String systemUser = System.getProperty("user.name");
String xiSystem = systemUser.substring(0,3);
JCO.Repository mRepository;
// connect to SAP
JCO.Client mConnection = JCO.createClient(
client, // SAP client
user, // userid
pwd, // password
"EN", // language
ipadd, // host name
sysnr ); // system number
// connect to SAP
mConnection.connect();
// create repository
mRepository = new JCO.Repository( "SAPLookup", mConnection );
// Create function
JCO.Function function = null;
IFunctionTemplate ft = mRepository.getFunctionTemplate("Z_GETSESSION_ID_TOKEN");
function = ft.getFunction();
// Obtain parameter list for function
JCO.ParameterList input = function.getImportParameterList();
mConnection.execute( function );
String ret = function.getExportParameterList().getString( "CONVERSATION_ID" );
binary_token = function.getExportParameterList().getString( "BINARY_TOKEN" );
mConnection.disconnect();
return ret;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Karthik,
1)what is lookups
Lookups are used to identify / request the data from mapping , i mean interupting the process and looking for data which was stored in some where and get that data and comback to process and continue with that data.
2.why we can use for lookups.
We will use these type of lookups in Message mapping for refering DB Lookup for data base which is not SAP, RFC lookups for SAP data
3.what is rfc lookup.
RFC Lookup is for accessing the SAP Data from mapping
4.what r the steps in lookups.
see the below links
DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
Also read thru this to get more idea on lookups -
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
Lookupu2019s in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffb...
/people/sravya.talanki2/blog
LookUp's can be done on RFC's, JDBC and SOAP.
Thnaks,
Satya Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Depnds on your requirement we can choose, if u want response choose RFC else JDBC
Though RFC channel we can get response, but JDFC channel can't get response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can attain this in mapping by using RFC lookup using User defined function. SAP XI provides RFC lookup API to connect to R/3 system from XI mapping and retrive the data required.
Regards,
reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.