<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ABAP Calling JAVA Function or Method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-calling-java-function-or-method/m-p/6509028#M1423146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in how to proceed using  ABAP  and Call JAVA Function . I know that  we need to use RFC enabled Function modules. I was able to connect  using JAVA Connector which was provided by SAP For communicating with JAVA Apps. The approach for connecting the JAVA to SAP is working fine.  But I  have browsed through various website but failed to find any information.Now i am looking forward to help from you friends to solve my problems .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Requirement is mentioned below:- &lt;/P&gt;&lt;P&gt;  1. Prerequiste for SAP ABAP calling a third Party software which is working in JAVA Platform (like any middle ware which might be hardware or software).&lt;/P&gt;&lt;P&gt;  2. Sample Code  like calling a Text  ' Hello  to the world  calling JAVA from ABAP'.&lt;/P&gt;&lt;P&gt;  3. Steps and process so that it would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timely help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajiv Christopher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2010 06:49:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-06T06:49:41Z</dc:date>
    <item>
      <title>ABAP Calling JAVA Function or Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-calling-java-function-or-method/m-p/6509028#M1423146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in how to proceed using  ABAP  and Call JAVA Function . I know that  we need to use RFC enabled Function modules. I was able to connect  using JAVA Connector which was provided by SAP For communicating with JAVA Apps. The approach for connecting the JAVA to SAP is working fine.  But I  have browsed through various website but failed to find any information.Now i am looking forward to help from you friends to solve my problems .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Requirement is mentioned below:- &lt;/P&gt;&lt;P&gt;  1. Prerequiste for SAP ABAP calling a third Party software which is working in JAVA Platform (like any middle ware which might be hardware or software).&lt;/P&gt;&lt;P&gt;  2. Sample Code  like calling a Text  ' Hello  to the world  calling JAVA from ABAP'.&lt;/P&gt;&lt;P&gt;  3. Steps and process so that it would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timely help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajiv Christopher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 06:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-calling-java-function-or-method/m-p/6509028#M1423146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T06:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Calling JAVA Function or Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-calling-java-function-or-method/m-p/6509029#M1423147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Middleware is JCO RFC provider it comes with SAP so no need any third party Adapter.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" The ECHOTXT parameter should contain the text of REQUTXT.Information on
" calling the function module should be returned in RESPTXT, indicating, for
" example, in which system and when the function module call was processed.
"------------------------------------------------------------------------------
data:ECHOTEXT type SY-LISEL,
     RESPTEXT type SY-LISEL.
CALL FUNCTION 'STFC_CONNECTION' DESTINATION '&amp;lt;Your JCO destination name&amp;gt;' " which one you have developed in SM59 as TCP/IP
  EXPORTING
    requtext       = 'ABAP Calls JAVA'
 IMPORTING
   ECHOTEXT       = ECHOTEXT
   RESPTEXT       = RESPTEXT.

if sy-subrc = 0.
  WRITE:/'---------------------------------------------------------------------'.
  WRITE: / 'establish a link to the ABAP application server with logon data'.
  WRITE:/'---------------------------------------------------------------------'.
  write:/ ECHOTEXT .
  else.
      WRITE:/'---------------------------------------------------------------------'.
  WRITE: / 'Not establish a link to the ABAP application server with logon data'.
  WRITE:/'---------------------------------------------------------------------'.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample code and Let me know will you get ECHOTEXT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kanagaraja  Lokanathan on Jan 6, 2010 1:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-calling-java-function-or-method/m-p/6509029#M1423147</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-01-06T12:26:10Z</dc:date>
    </item>
  </channel>
</rss>

