Look-Ups

Hi All,
1.Can you tell me what exactly the look-ups are?
2.Please tell me about the RFC and JDBC look-ups.
3.Also please tell me how many data types do I need to create for For JDBC <---> RFC sync ?
4.From my point of view I should create 2 data types ,2 message types for JDBC Request and JDBC Response while I can skip creating data types for Receiving RFC side.Is it?
Thanks in advance.

Hi Swetha,
1.Can you tell me about when are RFC,JDBC,CSV look-ups are used?
   Look ups can be useful  in any where, especially when we like to map the value that is reseided in some other application system and that value  tend to change or get  updated very frequently in that system .So as to get the recently updated values we prefer this .if it doesnot happen we cn directly go for hardcoding either by using Fixed values or value mapping.If the value is queried from R/3 we use RFC look ups.If the value is to be retived from Database we go for JDBC.
2.I think look ups are nothing but the User Defined Functions.Is it?Please tell me in detail.
  Look ups need not not only Java functions we can do that in BPMs remember Filr to RFC to FIle using BPM scenario there we get values from RFC response too in Bpm .But this is again a performance issue with out using UDF.But its very easy to perform the lookups using  UDF.Even SAP has provided good JavaAPI to perform lookups according to requirement.In most of the cases we use lookups for querying single values.But in PI7.1 there has been added advantage in the form of Graphical lookups to avoid java code and maintin reusability.The link was mentioned by experts already.
3.Please give me any scenerio about the implementation of RFC,JDBC,CSV look-ups .
I am giving example which i came across while working with EDI documents in SEEBURGER environment.There was a field value "TE" in some segment, while mapping to target i should get the Defintion forTE wich was maintained in some other data base and map to the target side, for that purpose we had to use JDBC look up and ping the data base to retrive the  required value as the result of Lookup. So when i applied look up i got the value "TELEPHONE" for the code TE.The same way for FX the lookup result was FASCIMILE.Not only this for PLANTCODES and some other business related data we might need to use Lookups...Hope you understood my point.
Thanks,
Ram.

Similar Messages

  • How to use Infocube in Look ups

    Hi Experts,
    i have a requirement that i have Infoset as source and Infocube as target. For the two key figures in the target i neet to get the values from some other Infocube by comparing some characteristics using look ups..
    Before i have used Look ups to get the data from DSO..now i have a question that how to get the values from Infocube  ..
    thank you..

    Hi,
    also see following function module
    RRW3_GET_QUERY_VIEW_DATA
    Thanks and regards

  • Help regarding Look ups

    Hi All,
    Right now i am using look ups for RFC Receiver Adapter.
    i have code something like this in Mapping for Look ups
    //Determine a channel, as created in the Configuration
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    Now my problem is here in this code i am hard coding "DB-SYSTEM-NAME" and "DB-CHANNEL-NAME". I dont want this hard coding, as when i will transport this code to Quality or Production system, at that time  name is going to get changed. If suppose DB-SYSTEM-NAME is SAPXIDEV then in QA it will be like SAPXIQA and in Production it will be something like SAPXIPRD like that.
    I want to know that is there any way to get SID of XI system in this code? as in place of DB-SYSTEM-NAME i am giving SID (business system name) for XI Dev server, which i need to change when i will transport it to QA or PRD.
    Please reply me as soon as possible. Please let me know if any other things need to be clearified.
    Regards,
    HS

    Hi,
    Search on SDN for Value Mapping Using Graphical Mapping.
    The basic idea of using Graphical Mapping is like using a properties file in Java. You will have a <b>Key-Value</b> pair . The Key is always the same across the environments which you hardcode and the Value will change.
    So KEY will be BusinessSystem and the value will change across environments and so on.
    Regards
    Bhavesh

  • What is meant by DB look ups in XI ?

    what is meant by DB look ups in XI ?

    hi,
    see michale's pdf..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    for more info go to..
    Re: mapping look up's
    biplab

  • What is Mapping Look ups?

    Can any one explain me what is mapping look ups in graphical mapping?

    Hi,
    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
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • LOOK UPS situation

    Hi,
              i  studied all the links  regarding LOOK UPS  which are provided in the SDN .. but still i did't clear with this information..   when exactly we will go for lookups.. i means in which situation we will go for lookups..( i studyed that lookups  will interrupt the mapping and interact with the database and access the data from the database in the mapping time..)   but in what scenario we need to get the data from database...give me a simple example..
           can any body give me a brief idea  abt LOOK UPs..
    thanks
    babu

    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
    Thanks and Regards,
    Chirag Gohil

  • DB Look Ups...... Conection Pooling

    Hi Frnds,
    Can anyone explain Connection Pooling DB Look Ups how to implement in XI.
    Share any documentation
    any links,
    REAGRDS,
    RAJ

    Hi,
    Some links for Lookups
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/9844428e9cbe30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
    Reward if helpful
    Kulwinder

  • Can you create a If, then [Show DropDown List] If not [Show 2, Person or Group look ups fields]??

    Hello I am tying to learn SharePoint at a "Throwing you into the Lions with a toothpick" way. I can create  basic columns and work in SharePoint designer fairly OK. Now I am trying to update one of my list with the following and I cannot seem
    to know how to start this off. I am looking for a way to learn it and not have the answered provided to me. So if it can be done in SharePoint all I need is guidance and I will trek and learn what I need to make it work. 
    This is what I have in mind see if its possible:
    If column "Do you like beer" (Yes/No) = yes
    Then display (Choice) Drop down list 
    20 options 
    Mandatory Field, must select one
    If not then show (Person or Group) 2 fields
    Name of beer = [Enter Beer Name]
    Maker of beer = [Enter Beer Maker]
    Mandatory field

    Hello Matrixwolf,
    As i understand you want to show column based on selection in list. You can use Jquery/javascript to hide/show column based on selection and also use Jquery to make those fields mandatory.
    Before you begin just remember that "Person or Group" only use to select people OR sharepoint group (as you mentioned in 5 point) so you may use simple text column to capture those details.
    Here is some ref links for jquery implementation:
    http://www.sharepointnadeem.com/2013/09/sharepoint-showhide-list-column-based.html
    http://bingggg.blogspot.sg/2011/11/showhide-columns-based-on-drop-down.html
    Your should be:
    1. Create columns in list as per your requirement
    2. Then open newform.aspx and editform.aspx pages, and use content editor webpart on that page to use jquery.
    You can search on Bing/Google about content editor webpart and its uses.
    Another way, you can modify the list form infopath designer and use infopath rule to hide/show the column.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • HTML Client related entity look ups

    How are you folks handling the very typical scenario where the user is completing a form and realizes that they need to add a record to a related entity lookup table before they can complete their entry. The primary form will have validation so I
    don't want to force them to save, and as a result they have to quit and abandon their entry, every time they need to add a look up, and then come back and start over. This was easy in the Silverlight client.  Any ideas?

    Hi Hessc,
    The Code from Paul's article is here:
    https://code.msdn.microsoft.com/Reusable-search-screens-in-91c64c30/
    The simplest way to this is to add a button which opens a browse screen and then passes the selected item from that screen back to the calling screen using the afterClosed event.
    This is what Paul is doing here for selecting the customer from an order entry screen:
    myapp.AddEditOrder.BrowseForCustomer_Tap_execute = function (screen) {
    myapp.showBrowseCustomers(screen.Order.Customer, true,
    beforeShown: function (myscreen) {
    afterClosed: function (myscreen, action) {
    screen.Order.Customer = myscreen.SelectedCustomerParameter;
    He uses the same technique to set the selected item on BrowseCustomers screen after adding a new customer. 
    Additionally he is reusing an existing BrowseCustomer screen by showing and hiding buttons based on a screen property called 'IsInSelectMode".
    So the flow for new customer is:
    OrderScreen > Tap BrowseForCustomer >
    BrowseCustomerScreen > Tap AddCustomer >
    AddEditCustomerScreen > Save (afterClosed sets selected customer on BrowseCustomer screen) >
    BrowseCustomer > Close (afterClosed sets Customer on OrderSreen) >
    OrderScreen
    HTH,
    Josh

  • RFC Look ups

    Hi all,
    I need to get a value for a field from the target system according to the soucre field.
    For Ex : material number 0001 is from source system and i need to find the corresponding material number from the target SAP system.
    Please let me know how it can acheived.
    Thanks
    Faheem

    1. Create a RFC in R/3 system that has ur desired functioanlity.
    2. Create RFC look up in the UDF.
    3. Map the UDF as follows
    Source- field-> UDF(RFC Look up)---> Target Field
    Refer this for more info
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72

  • DB Look Ups using JAVA Mapping

    Hi Frnds,
    I'm working one B2B Project, my question is,
    I have to retrieve Order ,Order Response from one Data Base,
    its already stored in DATA BASE as a CLOB Message.
    I developed one JAVA Map to retrieve Order And Order Response.
    its working fine,
    But i made a connection through JAVA Map only,
    But as Per SAP its not a good advice to perform Statefull operations through JAVA Mapping.
    My Client not accpeting this approach.
    what is the next way,
    I performed some DB Look up using JDBC Adapter And Visula Admin.
    But in this case its not a easy to retrieve the Order And Order Response.
    Because in My logic there is 5 SQL Statements there.
    Any one can provide Solution.
    Thanks ,
    Raj

    Hi,
    As you said, you have to run 5 sql statements and fetch Order and OrderResponse. Let's say all your inputs for these sql statements are A,B,C,D,E then these will be input parameters for Stored Procedure and out parameters will be Order and OrderResponse. Fetching logic should be in the stored proc.
    By this approach you will get Order and OrderResponse in the Stored Proceedure response structure. That structure you can map to your Receiver structure. (if i am not wrong this is your aim)
    You can see this sample blog on Stored Procedure scenario...
    JDBC Stored Procedures
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    (3rd Scenario in the above pdf)
    Also refer
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    Regards

  • How to monitor Mapping Look ups ?

    Hi @,
    I my application I am using maping lookup where Iam passing a value and then getting Y or N based upon the return from look up from R/3 .Fo rthis i am using rfc adaptor .
    Now when i am execfuting the mapping the result is not getting proper I need to verify that whether the lookup is happening or not.I need to monitor the same.
    Regards

    Amit,
    Add Trace Statements in your User Defined Function and then you will be able to see these Trace in the Runtime in the Trace Section under the SOAP header in MONI.
    use this code in the UDf,
    AbstractTrace trace= container.getTrace();
    trace.addWarning("What Ever Message and variables etc");
    Add these Trace to the Request RFC XML, likewise Print the response RFC XML and check what it returns and then see why the parser used to parse and get the RFC responsefailes, etc.
    Regards
    Bhavesh

  • Catch bad AD look ups

    I'm attempting to write a small line a of powershell script that will check a csv of first and last names from AD and report their usernames. Everything seems to work okay, except it doesn't report names that it couldn't find. Is there a way to incorporate
    something like a Try Catch?
    The script:
     import-csv C:\Users\1234\Desktop\names.csv | forEach { Get-Aduser -filter "surname -eq '$($_.Last)' -and
    givenname -eq '$($_.First)'"}  | Select SamAccountName | Export-CSV C:\users\1234\desktop\usersout.csv
    Sample CSV
    First,Last
    John,Doe
    Bob,Smith

    Try/Catch won't work when you use the -Filter parameter in Get-ADUser, only when you specify by
    -Identity. What you can do is test for the existence of the object like this:
    import-csv C:\Users\1234\Desktop\names.csv | forEach {
    $User = Get-Aduser -filter "surname -eq '$($_.Last)' -and givenname -eq '$($_.First)'"
    If ($User) {
    $User
    } Else {
    Write-Warning ("Could not find user by Surname <{0}> and Givenname <{1}>" -f $_.Last, $_.First)
    } | Select SamAccountName | Export-CSV C:\users\1234\desktop\usersout.csv
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • File to IDOC .. Look up Problem.

    Hi Experts,
    Iam doing file to Idoc scenario .. In which iam sending PO Response (ORDERS) from fie to idoc.
    Source                                                 
    File                                                                               
    Target(LSname)
    R/3  (LS356)   
    R/3  (LS357)
    R/3  (LS358)     
    Code
    A    ( For LS356 )
    B    ( For LS357 )
    C    ( for LS358 )     
    Delivery ID
    2536
    2537
    2538
    GLN Code : 58899653
    I have 4 fields in my look up table ..
    CODE
    GLN CODE
    Delivery ID & Logical system
    Using CODE and GLN Code as lookup key ---> I need to  get the value of  Delivery ID and Logical System.
    So taking Delivery ID and LS name as key .. My source file will go to the corresponding R/3 system.
    Its urgent .. Please respond asap.
    Thanks
    krupa.

    Hi,
    The problem is i cant write as static condition in receiver determination.
    My Scenario is File to Idoc -- ( One legacy system to any of the 3 R/3 systems).
    According to my requirement i need to write some 2 look ups
    Delivery Look up table
    CODE,    GLN Code,        Delivery ID,    LogicalSystem
    A,           58899653,      021085,      LS356
    B,           558899653,     021083,      LS357
    C,           58899653,      021082,      LS358
    Using Code and GLN Code as lookup key ---> get the value of Delivery ID and Logical System     
    IdocCtrlLookup
    Purpose: To read the IdocCtrlLookup file to populate the Idoc control segment
    valid control record has to found in IdocCtrlLookup file for Delivery ID
    Delivery ID     Sender Port    Sender partnernumber        RX Port    RX partner num
    021085      SAPGD2        GD2DVRC103                A000000046     GTEHHLD01   
    021083      SAPGD4        GD2DVRC122                A000000048    GTEHHLE01  
    021082     SAPGD4        GD2DVRC122                A000000047   GSEHHLE01 
    Please help how i can write the lookups and also how can i determine the Rx system dynamically with the above scenario.

  • Hi experts- RFC look up in IDoc to File Senario

    Hi,
    I have req with Idoc to file (delivery Idoc).
    But i need to get user name of sender(r/3) into file which is not available in idoc type.
    I think we can do through <b>RFC lookup</b> functonality.
    Can u tell me <b>exact procedure and code</b> for this?

    Hi,
    Check some links on Look ups.
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Look ups.
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/francesco.bersani/blog/2007/03/05/data-lookup-optimized
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Use this crazy piece 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
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    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
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
    Lookup's 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/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
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-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
    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
    Regards,
    Phani
    Rewar points if Helpful

Maybe you are looking for

  • Reserve stock in availability check

    Dear Gurus I have one requirement. I have searched forum but I didn't get anything which helps me. I have a material A with 5 quantity in storage location 1064. When I create sale order of this material with 3 quantity system reserves this stock agai

  • IPod not recognized in windows or itunes please help

    Hey I have had my ipod since last december and around april it stopped working and responding to my computer. it does charge but now it can only hold a charge for a certain amount of time. Can sum one help me?

  • How can I get help with coverage issues at my home?

    My coverage is poor at my home.   Is there any way to get help with this?   Thanks.

  • SOAP Error: DeliveryException: Connection reset

    I am having a proxy to SOAP scenario.Synch scenario. It was fine for 5 months...just now got an alert...saying.   <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Connection reset</SAP:AdditionalText> I checked in communication channel

  • GRC AC Manual to follow

    Hi, May I know the corect manual for the GRc AC installation and Confoiguration as there are diferent approaches given at different places in SAP itself. A. The Install & Upgrades files from downloads link on SAP Marketplace B.The Articles on Post in