Skip to Content
avatar image
Former Member

Calling a normal function module in SAP system .

Hi Experts,

I have the requirment like -->

I want to call a normal function module in SAP system which will perform a data look up. The module will be called by SAP-XI and the response will come to SAP-XI . That means i want to make a synchronous call to a Normal function module (not Remote module) which can perform the data look up and send me the result.

Can anyone help me in this.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 09, 2008 at 08:30 AM

    Hi Ajay,

    How we have to create the lookups?

    Check this weblogs :

    /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

    Hi refre the below links:

    Database lookup in XI

    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi

    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

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

    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

    Thanks,

    Satya Kumar..

    Reward points if it is helpful..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09, 2008 at 08:34 AM

    Hi Ajay,

    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

    Thanks,

    Satya Kumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      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

      Call lookup method from GUI mapping:

      The steps are as follows:

      • Develop and test ABAP function module.

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

      • Ensure that the function module is RFC-enabled.

      • Ensure that the parameters are passed by value and not by reference (mandatory for RFC-enabled function modules).

      chirag

  • Apr 09, 2008 at 11:26 AM

    This is not possible.

    The function module must be remote enabled. Otherwise it is not able to call it from outside.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09, 2008 at 11:47 AM

    If u are thinking of utilizing the lookup functionality of XI, then it is not possible until ur function module is remote enabled.

    But u have option of using abap proxy at receiver which can call a simple function modue.

    Regards,

    Prateel

    Add comment
    10|10000 characters needed characters exceeded