cancel
Showing results for 
Search instead for 
Did you mean: 

What is look up from XI to ABAP

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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;

former_member556603
Active Contributor
0 Kudos

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

SOAP Lookup -

Lookup -

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

Lookups -

Lookups -

/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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4...

LookUp's can be done on RFC's, JDBC and SOAP.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffb...

Thnaks,

Satya Kumar

former_member192295
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Check this thread..

Regards,

S.K.Karthikeyan.

Former Member
0 Kudos

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