Skip to Content

few questions

Hi,

Can anyone please answers me the following questions:

1. How many types of Lookup's techniques XI provides? what were they? explain steps in RFCLOOKUpAPI?

2. I want to send the same file Name to receiver side ?

3.On what criteria you choose an Adapter if the sender or receiver is SAP ?

4.How many mapping techniques XI provide, and On what criteria you choose a method?

5.How can you get the Acknowledement in IDOC scenario?

6.Where do you write ABAP mapping program ( In Integration server or Application server )?

7.Where do you generate ABAP proxy( In Integration server or Application server )?

8.what is XPath and COntext Object ?

Sure reward points.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 12, 2008 at 12:17 PM

    Hi,

    1. How many types of Lookup's techniques XI provides? what were they? explain steps in RFCLOOKUpAPI?

    A) we have DB Lookups & RFC Lookups

    RFC Lookups

    /people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi

    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups

    2. I want to send the same file Name to receiver side ?

    A)/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

    3.On what criteria you choose an Adapter if the sender or receiver is SAP ?

    4.How many mapping techniques XI provide, and On what criteria you choose a method?

    A) /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping%2btechniques

    5.How can you get the Acknowledement in IDOC scenario?

    A)https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903a0abc-e56e-2910-51a8-9dc616df56eb

    6.Where do you write ABAP mapping program ( In Integration server or Application server )?

    A)In ABAP System

    7.Where do you generate ABAP proxy( In Integration server or Application server )?

    A)In SAP R/3 system( Application System)

    8.what is XPath and COntext Object ?

    A) Context objects are a simple alternative to XPath expressions for accessing the contents of a message.

    If you needed Xpath expression in more than one condition, you would have to rewrite or copy it each time. Instead, you can assign a context object to the particular field

    xpath is the complete path of any field of the message structure.

    Context object is a shorter mode of referring to the xpath. This is used when the field is under a deep heirarchy.

    U can create context objetc in IR and assign it to a particular field.

    Regards

    Seshagiri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 12:16 PM

    1)1. How many types of Lookup's techniques XI provides? what were they? explain steps in RFCLOOKUpAPI?

    ans)

    There are two ways in which we can do lookup:

    u2022 Call lookup method from GUI mapping.

    u2022 Call lookup method from XSLT mapping.

    Lookup method from GUI mapping can be called using any of the following ways.

    u2022 RFC lookup using JCO (without communication channel)

    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups

    u2022 RFC lookup with communication channel.

    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

    u2022 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

    u2022 CSV file lookup.

    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi

    3.2 Call lookup method from GUI mapping:

    The steps are as follows:

    u2022 Develop and test ABAP function module.

    u2022 Develop and test Java method within Integration Repository/message mapping tool.

    *mapping look ups RFC api *

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

    2)2. I want to send the same file Name to receiver

    ans)using ASMS (ADAPTER SPECIFIC MESSAGE AATRIBUTES)

    Adapter-Specific Message Attributes is used when u wanted to send the file name,directory etc in mapping to target system. For this u need to write the UDF in Mapping and hat UDF will get the file name from the file adapter and send it to target system.

    http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm

    Refer the below link:

    Problem in dynamic file name in File reciever adapater

    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

    3.On what criteria you choose an Adapter if the sender or receiver is SAP ?

    ANS)depends on the business reuirement and reciever/sender systems

    4.How many mapping techniques XI provide, and On what criteria you choose a method?

    ans)

    Different types of Mapping in XI

    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

    5.How can you get the Acknowledement in IDOC scenario?ans)

    Posting multiple IDocs with Acknowledgement

    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement

    7.Where do you generate ABAP proxy( In Integration server or Application server )?

    application system

    regards

    chandrakanth

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 12, 2008 at 12:18 PM

    Hi Ginger,

    just check this blogs for all your queries:

    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part I

    /people/sravya.talanki2/blog/2006/12/25/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-i

    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part II

    /people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii

    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III

    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii

    Sachin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 12:23 PM

    8.what is XPath and COntext Object ?

    ans)

    Context Objects are nothing but a short way to reference XPATH.

    When you have a deep nested XPATH, and you need to use it in multiple locations it can become tricky and so in your Ir you create a conext object to refer to the XPATH.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 12, 2008 at 12:32 PM

    1. 2 types of lookup method (RFC lookup , JDBC lookup )

    /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

    2.Inorder to send the same filename to receiver

    you can opt Adapter Specific Message Attributes(ASMA)(Filename) in Sender File adapter.

    You use DynamicConfiguration method in UDF to obtain the file name

    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

    3. It depends on Customer

    4. Graphical, JAVA, ABAP, XSLT mappings are available.

    Based on the complexity and on requirement you choose the mapping type

    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

    5. Posting multiple IDocs with Acknowledgement

    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement

    8.Context objects are a simple alternative to XPath expressions for accessing the contents of a message.

    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 12:34 PM

    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

    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 - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function

    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

    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/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

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

    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.

    there are basically three types of lookups in XI

    RFC look up,JDBC lookup and SOAP look up.

    RFC Lookup is for accessing the SAP Data from mapping

    Within an XI mapping it is a common requirement to be able to perform data lookups on-the-fly against external data sources. In particular, there may be a need to lookup some data which is maintained in an external database. This problem can be resolved in one of three ways:

    1. Import the data from the external system, that is, replicate the data in XI and perform a value-based-transformation in the mapping step of XI. This technique is useful when the data does not tend to change much over time.

    2. From within the mappin step of XI, execute a call to an external database with the purpose of accessing the desired data. This technique is particularly useful when accessing data that changes regularly and replication is not a viable option.

    3. Business process Management (BPM) can also be used to perform data look-ups

    1.

    3. The choosing of Adapter depens upon ur own requirement.

    8.XPATH N CONTEXT OBJECTS

    x-path

    It's just the path from the root to your field. (e.g /myMessage/myRow/myAddress/myField)

    You see this x-path in the Receiver Determination (for instance) when you want to manage a condition for the receiver.

    note: it's exaclty the same path than this one providen by the right click "Copy path" in the Graphical Mapping.

    Context-Object is like an Alias (a pointer).

    You can define it into IR (e.g myContext) with "Create a new Context-Object" and then always in IR, you can use it into your Interface Message (see the tab called "Context") in order to affect this alias to a specific field.

    (e.g myContext <-> /myMessage/myRow/myAddress/myField)

    And then,(for instance) in the Integration Directory, for the Receiver Determination you can define a condition (filter) DIRECTLY by using this Context name, WITHOUT to display the whole XML tree. By this way, you can simplify the configuration of your flow, because it's easier to use a Context name (e.g myContext) compare to deployed the structure tree in order to find your field (e.g /myMessage/myRow/myAddress/myField).

    Moreover, as you associate the field to the Context only ONCE (in the IR, interface message), you decrease the posibility to do an error in the ID config, especially if fieldname are quasi-similar: addressName, adrName, addressSupplierName, AddressClientName.

    Note: x-path and Context can also be used in BPM for a condition a branch (for instance).

    XPATH: Itu2019s a specification of XML family, using this we can address any node in XML document. We can define mappings using XSLT together with XPATH. XSLT implements XPATH expressions to select substructures of a XML documents. We can use XSLT tags <XSL:import>

    <XSL:include>to include predefined templates for substructures.

    Context Objects: These are alternative to XPATH expressions for accessing the contents of a message.

    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

    Technical Context Objects :

    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

    A list of the Technical Context Objects names can be found here:

    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

    Difference between context object and x-path:

    diff-between-context-object-and-x-path

    4.

    Mapping Techniques in XI

    Different Mapping Techniques are available in XI. They are: Message Mapping, XSLT Mapping, Java Mapping and ABAP mapping.

    u2022The integration repository includes a graphical mapping editor. It includes built-in functions for value transformations and queue and context handling. There is an interface for writing user-defined functions (java) as well.

    u2022XSLT mappings can be imported into the Integration Repository; java methods can be called from within the XSLT style sheet. Advantages of this mapping are: open standard, portable, extensible via Java user-defined functions.

    u2022If the transformation is very complex, it may be easiest to leverage the power of Java for mapping.

    u2022ABAP mapping programs can also be written to transform the message structures.

    Message Mapping

    SAP XI provides a graphical mapping tool that generates a java mapping program to be called at run time.

    u2022Graphically define mapping rules between source and target message types.

    u2022Queue-based model allows for handling of extremely large documents.

    u2022Drag-and-drop.

    u2022Generates internal Java Code.

    u2022Built-in and user-defined functions (in Java)

    u2022Integrated testing tool.

    u2022N:M mapping is possible.

    2.yes u can send by using adapter specific message attributes in file adapter.

    6.Application server

    7.Application Server

    cheers

    reward points if found useful

    Edited by: vemuganti naga phalguna on Jun 12, 2008 2:35 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 01:18 PM

    1. How many types of Lookup's techniques XI provides? what were they? explain steps in RFCLOOKUpAPI?

    Check this link:

    [http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm]

    2. I want to send the same file Name to receiver side ?

    Plz Check this Link:

    [how-to-create-same-file-name-in-recever-side]

    3.On what criteria you choose an Adapter if the sender or receiver is SAP ?

    It is totally dependent on the Sender system or Receiver system

    *Sender adapter sends message from sender system to XI

    • Receiver adapter receives messages from XI and sends

    to receiver system

    You see what is the criteria of the adapter whether it should send message or receive message. Then you select sender or receiver.

    4.How many mapping techniques XI provide, and On what criteria you choose a method?

    • Mapping techniques-- ABAP, JAVA, XSLT, Message

    Mapping(GUI based)

    Normally we select Message mapping becasue it is straight forward and easy to use.

    Java mapping one should know Java coding to do this and for large files with complex mapping we use this technique

    XSLT we use third party tools like ALTOVA mapforce for mapping. This techniques is useful when see this link purpose of XSLT mapping

    [use-of-xslt-mapping]

    5.How can you get the Acknowledement in IDOC scenario?

    6.Where do you write ABAP mapping program ( In Integration server or Application server )?

    We write a ABAP program in ABAP work bench using se38 by implementing the interface IF_Mapping.

    7.Where do you generate ABAP proxy( In Integration server or Application server )?

    -- Client Proxy is generated in sender Application system.

    -- Server Proxy is generated in Receiver Application System

    Go through the links which are created by Mr. Suraj

    Client Proxy [http://www.saptechnical.com/Tutorials/XI/ABAPClientProxy/page1.htm]

    Server Proxy http://www.saptechnical.com/Tutorials/XI/ABAPProxy/page1.htm

    8.what is XPath and COntext Object ?

    xpath

    Reward Points, find useful

    Add comment
    10|10000 characters needed characters exceeded