JDBC&RFC Lookups

Hi Flocks
I am new to this technology and I am practicing all the scenarios like File, IDoc, RFC, JDBC, SOAP ect...
Can anybody explain me about JDBC or RFC Lookups and help how to configure them.
Regards
Krishna

Hi,
Here are few links will give cleare picture about Lookups in XI...
RFC Lookup.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
SAP XI Lookup API: the Killer - The specified item was not found.
DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
SOAP Lookup - Webservice Calls From a User Defined Function.
Check this weblogs with some screenshots on how to achieve this:
Use this crazy piece for any RFC Mapping Lookups!
Optimizing Lookup's in XI
Wrapping your Mapping Lookup API code in easy-to-use Java classes
How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the  Lookup API
/people/sravya.talanki2/blog
Re: Table lookup instead of fixed value mapping
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
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 with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
Regards,
Raj

Similar Messages

  • How to avoid hardcoding in RFC Lookup and JDBC Lookup during transport...

    Hi All,
      We have RFC and JDBC Lookups in some of our scenarios(JDBC to RFC synch)....Now problem is during transport of design objects, we have to change the business system and channel name manually in UDF in target environment....as it wont change although we define the target group in SLD.....we want to avoid this hardcoding.....one idea is we can use a business service inspite of business system and assign the comm channel to it.....this business service will be generic for all environment(dev,qua and prod)...and hence we dnt hav to hardcode....pls let me knw how to achieve or its possible or not....
    waiting for ur inputs....
    Regds,
    Pinangshuk.

    Hi,
    For RFC lookup you might be doing hardcoding for Business system and RFC channel name.
    Options are
    1) Create value mapping for Business system. So you can maintain it in Directory part.
    2) Keep the RFC channel name same for all system (Development, Quality, Production)
        The details of channel can be changed in the Directory part of the respective system

  • Graphical message mapping examples for JDBC and RFC lookup

    hi, can any body provide me graphical message mapping examples for the "JDBC Lookup" function and "RFC Lookup" function?
    I'm now studying the graphical message mapping and want to try those 2 functions. thank you.
    I expect the examples to be simple enoung, not need to set up much.

    >
    Madhu_1980 wrote:
    > can u check this link:
    >
    > PI 7.0 & 7.1 Mapping - Blogs,Articles,Wiki,Code Samples and Videos Collections https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426  
    >
    > it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    May be I'm too foolish to follow those links, I got issues of each links.
    What I really want is an example from step0
    Swarup:
    Refer the Lookup document - Easy Lookup in Process Integration 7.1
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20befc9a-aa72-2b10-ae9b-b0988791d457
    The first step is "Create an RFC Enabled Function Module for look up", but where can I create the function module? Should I use ESB, IB? or use transaction 'SE11' ?
    Kulkarni:
    Very good links for RFC lookup with 7.0/3.0
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231&overridelayout=true
    At page6 "PI Development/Configuration", it saies "You are on the design maintenance screen in the Integration Builder.Expand the subnodes for the software component version for which you want to import interfaces".
    What is "design maintenance screen" ? My IB version is: Service Pack:08 Release:NW07_08_REL.
    When I open IB, it display a screen titled with "Configuration: Intergation Builder", I did not find "software component version" node on the left tree.
    Madhu_1980 :
    it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    The Prerequisites state:
    The JDBC channel to be used for the lookup must be configured and activated in the Integration Directory.
    The definition of the table used for the lookup must already be imported into the ES Repository as an external definition
    But I don't know how to create a JDBC channel and define the table.

  • What are all the advantages of JDBC, RFC, WebService Lookups

    Hi Friends,
    Please tell me advantages and Disadvantages of JDBC, RFC, Webservice Lookups.
    Thanks in Advancs.

    Example: PI 7.1 comes with JDBC and RFC Lookup.  During mapping we might have requirement to do validation or create logic based on the reference values in the table or SAP backend.  In this standpoint, we do JDBC and RFC Lookup. Earlier, we used to do coding in UDF or java mapping to achieve this. Now, we have it as a lookup graphical function. 
    Webservice Lookup is again the same idea. but we dont have lookup graphical function. We still need to do UDF coding to achieve this.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/749dd812dd3676e10000000a114a6b/content.htm
    /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    Disadvantage:
    If your soap message is larger size, dont do webservice lookup in UDF coding. It has maintanence issues.
    Parameterized mapping along with Integrated configuration is not currently possibe both in PI 7.1 and EHP1.

  • RFC lookups&JDBC in 7.3

    Hi friends,
    Iam new to 7.3 so how can i use rfc and jdbc lookup in7.3 and rfc and jdbc can i use as graphical functions in different adapters
    please help me on this
    Regards,
    Rajendar K

    Hi Rajendar,
    This doc is best for learning RFC lookup
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20befc9a-aa72-2b10-ae9b-b0988791d457?QuickLink=index&…
    and rfc and jdbc can i use as graphical functions in different adapters
    you have to use rfc channel for rfc look up and soap cc for soap look up. if i did not get you please explain.
    Regards,
    Muni.

  • Probleam in RFC lookup

    Hi ,
    I am using RFC lookup in message mapping, i passing 2 input parameter and get 4 output parameter.
    I am not getting output in RFC lookup, but i test the RFC (se37) ,i got the output.
    Example:
    RFC input1: GHA
            input2:02
    PI RFC lookup output: null
    Test(se37) RFc output1:qadb output2:gha10 output3:sipdb output4 1521
    Please help me to solve the issue.

    Hi,
    Are you sure, you have done all the configuration properly? Refer the blog below and test your mapping in ESR:
    /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    Apart from other setting you have to pass the parameter in Interface determination in ID.

  • How to use payload from standard RFC MessageType in a RFC Lookup function

    Hello
    We have a DB sender to call an BAPI. The DB receiver gets the BAPI response.
    It is an easy scenario with one mapping.
    But the RFC Mapping Lookup is very awful. You have to rebuild all open and close tags to get the RFC payload. A lot of concat functions are a must. The error search in such a mapping is not easy and seems like EAI developing 1990 (Hand am Arm).
    Ok, it is better as a BPM, but it is not well for first level support person and release changes and trouble shooting.
    How can I use a XML payload from first mapping in my RFC Mapping lookup (second mapping)? There must be a way with two mappings and an easy RFC lookup.
    Currently (one mapping):
    DB sender format -> ( RFC lookup self-made RFC XML structure) DB receiver format
    My dream (two mappings):
    DB sender format -> RFC SAP XI standard Format ->(RFC lookup by using Payload from first mapping) DB receiver format
    I hope someone can help me with an example.
    Daniel

    Hi Daniel,
    If i understood correctly, urs is a 'Asynch' scenario JDBC to JDBC with a RFC lookup in Mapping.
    If its so, then i think wat u r expecting can be done. In Interface Mapping, u can add more than one message mappings.
    So first do a Mapping for DB sender format - RFC input standard format,
    then another one for RFC sender Format - RFC receiver format, (look up code goes in this mapping).
    Then third one from RFC receiver format to DB receiver format.
    The order n which u add in Interface Mapping is also important. This is a suggestion, i havent tried this, but still i think u can give it a try.
    Regards,
    P.Venkat

  • RFC lookup in pi7.1

    Hi,
    I follow all the steps given in following link to create RFC Lookup,
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    but i got an error like,
    No value is assigned to parameter
    Can any one tell me where is a problem.
    Regards,
    Rohit.

    Hi Rohit,
    Use this  for any RFC Mapping Lookups!
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    SAP XI Lookup API
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Lookup’s in XI made simpler
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Mapping look up API
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/mapping%20lookups:%20RFC%20API.pdf
    A good extract from a forum discussion
    Mapping programs (message, Java, and XSLT mappings) are executed on the Integration Server, where they can access the global value-mapping table (see Executing Value Mappings) and mapping runtime constants. In addition, calls to other application systems are sometimes necessary to meet the following requirements:
    ● To get read access to application system data in the mapping program
    ● To call existing mapping routines in the application system
    In what all are the adapters are we using this lookups?
    The API for mapping lookups supports access using the RFC, JDBC, and SOAP adapters
    How we have to create the lookups?
    Check this weblogs with some screenshots on how to achieve this:
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes

  • PI 7.1: RFC Lookup Graphically in BPM

    Hi,
    I want to do a RFC lookup to XI abap stack in my graphical mapping.
    The problem is my mapping is defined in a transformation step inside my BPM, and I'm not able to link my RFC CC to the Import parameter. Has anyone experience with this sort of flow yet, is this even possible because I don't have a receiver agreement because it's BPM?
    I only can link following Container Element types: Simple Type / Abstract Interface / Receiver
    SAP Library don't even talk about BPM's for the lookups:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    Any help would be appreciated,
    Wouter.

    hi,
    check this links
    The specified item was not found.
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    RFC lookups https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    This blog and article deals with calling your RFC from your JAVA MAPPING / User Defined Function.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    Use this crazy piece for any RFC Mapping Lookups!
    regards
    srinivas

  • Is is possibel to do an RFC Lookup from The Graphical Mapping?

    Greetings,
    While doing a message mapping I need to get the value from R3 system using an RFC, is it is possible ?

    Hi
    we can do by using rfc look ups
    Lookup in mapping is the feature provided by SAP to lookup the data in the target R/3 or DB systems with the API provided.
    You need to write UDF in order to implement the API's provided by SAP.Consider the below example
    VendorNumber-UDF--CURR
    The scenario is legacy to SAP. The legacy system doesn't provide the currency details. But the target field need's to be populated with currency value.
    "The business rules says there are values maintained in SAP Table where if you pass VendorNumber it will return thr currency to you"
    So what you can do? You can write UDF implementing SAP Provided API's and do a lookup in the SAP System and get back the currency value and populate them in CURR field.
    I hope it clears a bit.
    Please find the below blogs
    DB Lookup: /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    RFC Lookup:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    There are three types of look ups u can do
    RFC look up
    SOAP look up
    JDBC look up
    What is Lookup and why we need:
    Within an XI mapping it is a common requirement to be able to perform data lookups on-the-fly. In particular, there may be a need to look up some data that is maintained in an R/3 application.
    In the error handling topic we have seen the different validations which need to be performed on file. This can be done through Lookup.
    Some use cases:
    • Look up material number from table MARA.
    • Look up cost center budget.
    • Look up employee information.
    • Look up unit-of-measure (UOM) information from table t006a.
    • Lookup for raising an alert.
    The purpose of the lookup may be:
    • To perform application-level validation of the data, before sending it to the backend.
    • To populate fields of the XML document with some additional data found in the backend application.
    This is a form of value transformation.
    The "value mappings" offered by XI are not adequate in this case, since the data would have to be manually entered in the Integration Directory.
    There are two ways in which we can do lookup:
    • Call lookup method from GUI mapping.
    • Call lookup method from XSLT mapping.
    Lookup method from GUI mapping can be called using any of the following ways.
    • RFC lookup using JCO (without communication channel)
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    • RFC lookup with communication channel.
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    • Lookup using JDBC adapter.
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    • CSV file lookup.
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    /people/sravya.talanki2/blog
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    You can refer to these links.
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer Absolute stealer.
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    For Java APIs and also here you can map that how many types of lookups are possible in XI.
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/lookup/package-summary.html

  • Jdbc -rfc -jdbc

    hi all,
    i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?

    i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?
    we have 3 Approaches :
    1. using bpm synchasynchbridge
    2.RFC LooKUP it is standard function of the "CONVERSION" Function Group in pi 7.1
    Defining RFC Lookups Graphically
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8661
    note: if you are using pi 7.1 below version, then you need to wite one udf for RFC Lookup.
    3.Standard Adapter Module BEans RequestResponseBean
    http://wiki.sdn.sap.com/wiki/display/XI/Sync-AsyncwithoutccBPM
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7032

  • RFC lookup Vs Database lookup

    Dear experts,
    When it comes to PI mappings which one is resource or time intensive between RFC lookup Vs Database lookup where the table is hosted in PI itself.  I really looking for this comparision in PI 7.1.  If anybody looked to compare the pros & cons of using RFC lookup Vs datbase lookup where the table is hosted in PI itself. 
    Thanks,
    -Bharath

    I have no data to prove my allegation, but I would expect JDBC to be slower, because you need a separate driver to make the connection to the database, perform the query. The RFC adapter doesn't need that, plus it already has the connection to the SAP system, so you only need to perform the query.
    Steps for JDBC:
    1. call JDBC driver
    2. logon to DB
    3. perform query
    4. return result
    Steps for RFC:
    1. perform query
    2. return result

  • RFC lookup error when table in change mode

    Hi,
    I´m using an RFC lookup from XI to translate external to internal partner nr. Input to the FM in R/3 is the external partner nr och the FM should return the internal partner nr to XI. The problem is that when a user edits the table that my FM reads from a get an error.
    - Isn´t it possible to read a r/3 table while it is in change mode? Is my only way around this to create a z version of this table?
    Claes

    Hi Claes
    have  a look on these  links ,
    For your RFC lookup,
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    RFC lookups pdf https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Michal's Blog on RFC Mapping Lookup:/people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi
    RFC Lookup.
    RFC lookup return no values
    http://help.sap.com/saphelp_nw2004s/helpdata/en/17/d609b48ea5f748b47c0f32be265935/frameset.htm
    Also check this useful link which also talk about Value Lookup:
    Value lookup
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Thanks !!

  • About the RFC lookup

    Hi Gurus,
    Please tell me What is LOOKUP AND WHAT IS RFC LOOK UP  1)HOW IT WORKS WHY WE HAVE TO CONFIGURE THE RFC ADAPTER AND IN WHICH DIRECTION WE HAVE TO CONFIGURE .
    2)WHY WE NEED BAPI'S FOR RFC LOOK UP
    PLEASE TELL ME CLEARLY IN GENERAL ENGLISH .
    THANKS AND REGARDS,
    RAM.

    Mapping Lookups
       A mapping lookup enables a function in application system to be called while a mapping program is being executed. This therefore requires the Integration Server and the application system to communicate with each other. This is achieved by using an adapter, which can be accessed by using the mapping program. In this way, the channel for communication is visible in the Integration Directory.
    3 type's of lookups:
    RFC,JDBC,SOAP.
    coming to rfc lookup:
    Rfc lookup it  is one of the  standard function of the Conversion Function group and it was provided by sap and it supports in graphical mapping from pi 7.1 v .
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    Prerequisites
    The RFC channel to be used for the lookup must be configured and activated in the Integration Directory.
    The definition of the RFC structure used for the lookup must already be imported into the ES Repository as an imported archive.
    before pi 7.1v, if we want use Lookups ,then need to write udf .
    step by step example:
    [RFClookup & Jdbc lookup|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8661]
    [RFClookup & SOAP lookup|http://www.****************/Tutorials/XI/RFCLookup/Index.htm]
    Edited by: bhavanisankar.solasu on Feb 9, 2012 10:23 AM

  • Error While RFC Lookups

    Hi
    I am performing RFC Lookups in my java code and when ever I am testing this java mapping code from Operation Mapping Test Tab, I am getting following error.
    Error while lookup Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://pmichsappid16.app.pmi:8016/run/system/int?container=web" with user "PIREP_PID". Response code is 500, response message is "Internal Server Error"
    Error while closing accessor Technical error when calling an adapter remotely. The HMI method with the ID close was called with an incorrect session status. The system accessor object is missing.
    Could you please tell why I am getting this error.
    Note:1) When I am testing it end to end my code is working fine with out any errors.This happens only when I am testing it from operational mapping test tab.Previously I am able to execute my code from operational mapping test tab also.
    2) I am also closing accessor object in proper manner.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PI 7.1 Strange behaviour!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi Prasanna,
                          I was facing the same error while testing JDBC lookup in the operational mapping. The problem was that while testing in the operation mapping or message mapping tab you need to provide the RFC channel created manually in the parameter. While end to end testing this is binded in the integration directory object,
    I provided the JDBC channel created for lookup manually in the operation mapping and i got the result.
    Hope this will help.
    Thanks
    Ajay Garg

Maybe you are looking for

  • New MacBook, old hard drive and unsynced iPhone.

    Here's the situation. Old MacBook pro died (logic board gave up). I've removed the hard drive and bought an enclosure so that I can plug it in via USB to my new MacBook pro. I am NOT a fan of Migration Assistant. I'm discouraged by the thought of cop

  • HT1386 how to import my music on ipad from a new itunes account

    i bought a new computer, so i download itunes, and ehwn i try to import my music from the ipad to the itunes library it tells me that i have to erase all the music in the ipad and imprt the files on my music.\\there is any way to import my usic with

  • Calling Siebel web service from BPEL flow

    Hi, I am using Jdeveloper 10.1.3 to build BPEL. Does anyone have a sample to call Siebel web service from BPEL flow? I cannot make web service call success by adding partner link from BPEL flow. Error: Error Code: 10944642 Error Message: Error: Inbou

  • MSI R7870 TWIN FROZR 2GDS - cant detect monitor. (no signal/no video input)

    I already post this before, but it seem it being blocked as I didnt have the genuine window. (https://forum-en.msi.com/index.php?topic=162310.msg1189334#msg1189334) Fine by me. Now I alrdy have a genuine window and the problem still occur. I already

  • Arabic font problem in Indesign cs4

    I was using Indesign CS2 and just upgraded to CS4. I was heavily using "traditional arabic" font in CS2 without any problem. For those who don't know, in arabic, each letter is represented differently according to its place inside a word. Almost all