cancel
Showing results for 
Search instead for 
Did you mean: 

RFC LookUps Basics

Former Member
0 Kudos

Dear ALL,

I need some basics on why we need RFC LookUps..

where it is used in real time projects with an example..

and different types of RFC lookUps..with some good example

Regards

Shakif

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We use RFC Lookup to read some field/data from RFC during mapping. By fetching the data we can perform some validation of our mapping.

For eg. We want to check whether material exists in the R/3 system and, if it does we want to execute the mapping otherwise some other action. For lookup we use RFCAccessor class which doesnt provide any method to write or modify into the R/3 system, only enables us to read data (For some good reasons).

Regards

Answers (4)

Answers (4)

SudhirT
Active Contributor
0 Kudos

Hi,

RFC LookUP as the word says is used for a check during Mapping execution into the R3 system.

Simple example, suppose you have some field say srcfld coming in the source file and you want to check this entry in the table in R3 system during mapping and then accordingly you want to take some action then you will need RFC lookUp. For live example suppose your scenario is file to IDoc and the source file contains some values equal to material number( MATNR) and the requirement is to check the MATNR in R3 table which is equal to SRCFLD and corresponding to that MATNR you want to take out the value of MFRPN(a field) then you will define a UDF with the code and create a RFC receiver channel to fetch that value(MFRPN) from R3 and pass it to the target IDOC(MATMAS) field.

Thanks!

former_member750652
Contributor
0 Kudos

Hi sakhif,

SAP provides an API( Application Interface ) for performing lookup or ( data Access) during runtime to enchance mapping by accessing the relevantdata that is useful in validations and present that accessed data that is relevant for the receiver end .It plays very important role in B2B kind of scenarios where in we need to refer the data that is not a part of pay load but still need it to process the payload.

(Ex: During the B2B scenario ,when a purchase order id being sent from source to target ,you see a field called purchase order type and the values in the sencer side contains only (OR or ZZ). but the receiver wants the definition of the particular (OR or ZZ).In this case You apply the look up , get the definitions and make them appear in the receiver data.

so after applying look up the data transforms like this.

SENDER Side RECEIVER Side

-


-


OR -


> Original (original order)

ZZ -


> Mutually Defined .

Lookup API for data enrichement in mapping programs.

With the Lookup API you can call remote application systems via adapters during the execution of a mapping program. You can use the Lookup API to read data from the application system or to execute an existing mapping on the application system. The call to the application system is synchronous. Lookups are possible via the central adapter engine. The Lookup API supports the RFC, JDBC, and SOAP adapter.

If you want to use an adapter of a third party vender, then the adapter must fulfil the following preconditions:

The adapter must support synchronous calls.

The adapter must not use information of a Receiver Agreement.

The following link will help you out in understanding more on RFC look up.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1....

Thanks,

Ram.

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

RFC lookup can be used avoiding Duplication record.

Also can be used for Runtime Validations

PI 7.1 RFC lookup function already exist

Former Member
0 Kudos

Hi Mohammad,

RFC Lookup is used to get the data from th R/3 System in the mapping at runtime to do some validations.

Go throgh this link you will get more information about look ups.

Regards

Goli Sridhar