Portal application connecting backend SAP R/3 system

Hi All,
           I am developing one portal application through NWDS. It's JSPDYNPage component.The applications functionality is basicaly is to connect it to backend SAP R/3 system & fetch some data in aparticular table & display that data in a tableview format on one JSP& also when i click any row of the tableview then details of that row should get displayed on the next JSP. So i reached till develpoing a code that connnects to Backend SAP R/3.(Basicaly coding of connection part is done). Now i need to test this code, to check whether it is fine or not? NWDS doesnt give nay error, not compile also or not runtime error also. It simply shows the output as a blank page, where it is supposed to display one line of text in textview(i coded this in my JSP).But as i said it displays a blank page. i tried to debug the application , but debugging also not worked.I performed the debugging twice in right way. The code was not debugged, it run the same way as it normally runs when debugging is off & shown the blank page. I also have done all the the settings or prerequisites for debugging properly. I am stuck at this point now.search many documents , but no relevant help has been received. Can anyonehlep me with this. i am putting below the code for JSP, JSPDYNPAGE component as well as portalapp.xml. Can anyone guide me with this, whhere i am making mistake? what should i change in this?
JSPDYNPAGE code
package com.lti.portal;
//import java.util.ArrayList;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
import java.util.ArrayList;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.JCO;
import com.sun.corba.se.internal.core.Response;
public class Connection_R3 extends PageProcessorComponent {
public DynPage getPage(){
return new Connection_R3DynPage();
public static class Connection_R3DynPage extends JSPDynPage{
private Conn_R3 myBean = null;
public JCO.Client mConnection;
public JCO.Repository mRepository;
public ArrayList al = new ArrayList();
public String output;
public String Ans;
public static String BEAN_KEY="myBean";
public void doInitialization(){
IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
//create & initialize the bean.
Conn_R3 test_bean= new Conn_R3();
test_bean.setans("3");
// put the bean into application context.
context.putValue(BEAN_KEY,test_bean);
conn();
//IPortalComponentResponse res = (IPortalComponentResponse)this.getResponse();
//for(int i=0;i<al.size();i++)
//res.write(" "+al.get(i).toString());
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
this.setJspName("Connection_R3.jsp");
public ArrayList conn() {
IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
Conn_R3 sample_bean = new Conn_R3();
sample_bean.setans("5");
//context.putValue(BEAN_KEY, sample_bean);
//r3-accessing
//connect_to_r3();
try {
// Change the logon information to your own system/user
mConnection = JCO.createClient("800", // SAP client
"********", // userid
"******", // password
null, // language
"*******", // application server host name
"**"); // system number
mConnection.connect();
//System.out.println(mConnection.getAttributes());
mRepository = new JCO.Repository("ABC", mConnection);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Function function = null;
JCO.Table codes = null;
try {
function = this.createFunction("ZSAMPLE");
if (function == null) {
System.out.println("ZSAMPLE" + " not found in SAP.");
System.exit(1);
String num1 = "7";
String num2 = "9";
//String ans;
function.getImportParameterList().setValue(num1,"My_import");
function.getImportParameterList().setValue(num2, "My_Import");
mConnection.execute(function);
Object name =function.getExportParameterList().getValue(Ans);
output=name.toString();
sample_bean.setans(output);
//sample_bean.setans(output)
//al.add(name);
//store values into strings
//pushing of values we get from r3 into awt
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
disconnect_r3();
return al;
public void connect_to_r3() {
public JCO.Function createFunction(String name) throws Exception {
try {
IFunctionTemplate ft =
mRepository.getFunctionTemplate(name.toUpperCase());
if (ft == null)
return null;
return ft.getFunction();
} catch (Exception ex) {
throw new Exception("Problem retrieving JCO.Function object.");
public void disconnect_r3() {
mConnection.disconnect();
//**********************<b>Code for BEAN</b>****************************
package com.lti.portal;
import java.io.Serializable;
public class Conn_R3 implements Serializable {
public String answer;
public void setans(String a)
answer=a;
public String getans()
return answer;
///////////////////////<b>Code for JSP</b>*****************************
><%@ taglib uri= "tagLib" prefix= "hbj" %>
<jsp:useBean id="myBean" scope="application" class="com.lti.portal.Conn_R3" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:textView
id="Welcome_message"
text="<%=myBean.getans()%>"
design="STANDARD" >
</hbj:textView>
</hbj:form>
</hbj:page>
</hbj:content>
/////////////////////////////////<b>Portalapp.xml</b>*****************************************
application>
  <application-config>
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
  </application-config>
  <components>
    <component name="Address_comp">
      <component-config>
        <property name="ClassName" value="com.lti.portal.Address_comp"/>
      </component-config>
      <component-profile>
      <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
      </component-profile>
    </component>
  </components>
  <services/>
</application>

Hi,
   Do onething, please refer this <a href="http://www.i-barile.it/SDN/JCoTutorial.pdf">JCo Tutorial</a> as well as <a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">Link</a> also.
Regards,
Venkatesh. K
/* Points are Welcome */

Similar Messages

  • How to develop portal application connecting to SAP R/3(backend system)

    Hello Everyone,
                            Can anyone guide me on how to create portal aplication(JSPDYNPAGE), that will connect to backend SAP R/3 system, & it will fetch the data from some table from that R/3 system. Any reference material will be appriciated, it will be of great help.
    Thanks
    Chetan.

    Hi Chetan,
    Connection to R/3 systems through Portal can be done in many ways. Since you have mentioned that you are using jspdynpage then its better that you use JCo for connecting to R/3 system.
    U can write the JCo code using the jspdynpage component. I hope you have pdfs related to JCO. Incase u dont have then give me you mail id. OK
    Another approach could be developing a web dynpro java application that access a r/3 table using a BAPI. You can a dynpro model to easily connect to R/3 system.
    Just develop an iview based on this web dynpro application. And finally navigate to this iview through your jspdynpage.
    I hope this helps you in some way
    Regards,
    Prasanna

  • Error while connecting backend SAP 4.7 system to GRC 5.3 system

    Hi Experts,
    I am Facing an Connection Issue  while connecting back end SAP 4.7 system to GRC 5.3 system
    Please help me out with Screen screen shots and process  to be followed while connecting both system,
    Thanks in Advance,
    Ram

    Hi Daya,
    you really REALLY want to visit this page and watch & read for a few days before you do anything in the system.
    http://wiki.sdn.sap.com/wiki/display/BPX/Governance%2CRisk%2CandCompliance%28GRC%29How-ToGuides
    You can easily break stuff in a way that's hard to fix, so I suggest you take your time.
    Frank.

  • Portal application connecting to backend R/3 system

    Hi All,
               i am developing one portal application through NDS(Netweaver Developer Studio) that connects to backend SAP R/3 system & fetches some data in R/3 system. I started working on it & developed some code, which i want to test whether it is working fine or not.I:e- code to connect to SAP R/3, but when i run the application it doesnt give any error but also it doesnt show any output which it should display(value of output parameter of RFC). Below is the code for component, code for JSP & code for bean. Can any one tell me what is the error in this? or why i am not getting the output i desired. All the connection parameters supplied in the coding are correct. Now below i mentioned these parameters as *, bt in actual i have mentioned them correct. I checked them twice, they are fine.
    Code for Component
    [code]package com.lti.portal;
    //import java.util.ArrayList;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    import java.util.ArrayList;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.JCO;
    import com.sun.corba.se.internal.core.Response;
    public class Connection_R3 extends PageProcessorComponent {
      public DynPage getPage(){
        return new Connection_R3DynPage();
      public static class Connection_R3DynPage extends JSPDynPage{
        private Conn_R3 myBean = null;
             public JCO.Client mConnection;
              public JCO.Repository mRepository;
              public ArrayList al = new ArrayList();
             public String output;
             public String Ans;
             public static String BEAN_KEY="myBean";
        public void doInitialization(){
              IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
              IPortalComponentContext context = request.getComponentContext();
             IPortalComponentProfile profile = context.getProfile();
           //create & initialize the bean.
              Conn_R3 test_bean= new Conn_R3();
              test_bean.setans("3");
              // put the bean into application context.
              context.putValue(BEAN_KEY,test_bean);
              conn();
                 //IPortalComponentResponse res = (IPortalComponentResponse)this.getResponse();
                 //for(int i=0;i<al.size();i++)
                 //res.write(" "+al.get(i).toString());
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
         this.setJspName("Connection_R3.jsp");
           public ArrayList conn() {
                      IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
                        IPortalComponentContext context = request.getComponentContext();
                        IPortalComponentProfile profile = context.getProfile();
                      Conn_R3 sample_bean = new Conn_R3();
                      sample_bean.setans("5");
                      //context.putValue(BEAN_KEY, sample_bean);
                                  //r3-accessing
                                  //connect_to_r3();
                                  try {
                                         // Change the logon information to your own system/user
                                       mConnection = JCO.createClient("800", // SAP client
                                  "********", // userid
                                  "******", // password
                                  null, // language
                                  "*******", // application server host name
                          "**"); // system number
                                      mConnection.connect();
                                       //System.out.println(mConnection.getAttributes());
                                         mRepository = new JCO.Repository("ABC", mConnection);
                                  } catch (Exception ex) {
                                         ex.printStackTrace();
                                         System.exit(1);
                                  JCO.Function function = null;
                                  JCO.Table codes = null;
                                  try {
                                         function = this.createFunction("ZSAMPLE");
                                         if (function == null) {
                                                 System.out.println("ZSAMPLE" + " not found in SAP.");
                                                 System.exit(1);
                                         String num1 = "7";
                                         String num2 = "9";
                                         //String ans;
                                         function.getImportParameterList().setValue(num1,"My_import");
                                         function.getImportParameterList().setValue(num2, "My_Import");
                                         mConnection.execute(function);
                                  Object name =function.getExportParameterList().getValue(Ans);
                                         output=name.toString();
                                         sample_bean.setans(output);
                                                                            //sample_bean.setans(output)
                                         //al.add(name);
                                         //store values into strings
                                         //pushing of values we get from r3 into awt
                                  } catch (Exception ex) {
                                         ex.printStackTrace();
                                         System.exit(1);
                                  disconnect_r3();
                               return al;
                public void connect_to_r3() {
                          public JCO.Function createFunction(String name) throws Exception {
                                  try {
                                         IFunctionTemplate ft =
                                                 mRepository.getFunctionTemplate(name.toUpperCase());
                                         if (ft == null)
                                                 return null;
                                         return ft.getFunction();
                                  } catch (Exception ex) {
                                         throw new Exception("Problem retrieving JCO.Function object.");
                          public void disconnect_r3() {
                                  mConnection.disconnect();
    Code for BEAN
    package com.lti.portal;
    import java.io.Serializable;
    public class Conn_R3 implements Serializable {
         public String answer;
         public void setans(String a)
              answer=a;
        public String getans()
             return answer;
    Code for JSP
    <%@ taglib uri= "tagLib" prefix= "hbj" %>
    <jsp:useBean id="myBean" scope="application" class="com.lti.portal.Conn_R3" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
           <hbj:textView
               id="Welcome_message"
               text="<%=myBean.getans()%>"
               design="STANDARD"  >
           </hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>

    Hi Chetan,
    Connection to R/3 systems through Portal can be done in many ways. Since you have mentioned that you are using jspdynpage then its better that you use JCo for connecting to R/3 system.
    U can write the JCo code using the jspdynpage component. I hope you have pdfs related to JCO. Incase u dont have then give me you mail id. OK
    Another approach could be developing a web dynpro java application that access a r/3 table using a BAPI. You can a dynpro model to easily connect to R/3 system.
    Just develop an iview based on this web dynpro application. And finally navigate to this iview through your jspdynpage.
    I hope this helps you in some way
    Regards,
    Prasanna

  • Connection from SAP to our systems involving 2 saprouters

    connection from SAP to our systems involving 2 saprouters
    we have 1 saprouter inside a dmz and another for connecting to our systems.
    we are guessing that this is possible
    SAP (sapserv2) -
    SNC----> saprouter1 (DMZ, SNC connection) -
    > saprouter2 (P * * 3200) ---> SAP1, SAP2...
    But how could we do that?
    How can we let SAP know that they need to connect to 2 saprouters instead of 1?
    The "Mantain System Data" in sap service marketplace only lets us introduce 1 saprouter.
    And how should be the saproutettab of the 2 saprouters?
    saprouter1:
    KT "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 000.00.00.00 *
    P * saprouter2 3299
    saprouter2:
    P * * 3200
    P * * 3600
    is that possible?
    Many thanks !!

    Hi
    As far as my experience goes with this you have to maintain both router information in oss1 tcode
    Also mention second router on the second router tab on the SMP data
    I hope it should work with that as it will automatically create router table

  • Problem in connecting to Sap R/3 system through Crystal Reports

    Hi
    while I am connecting to Sap R/3 system through crystal reports i am getting an error
    (" you do not have a necessary rights to design reports against sap system ")
    can anyone sort out this problem?
    Thanking in advance

    you need to add some transport files while installing the integration kit for sap solutions.check whether all transport files are added

  • Error " Could not connect to SAP R/3 system"

    HI:
    We have been having some problems with our portal lately and most recently the error that we get is "Could not Connect to SAP R/3 "
    The system landscape settings have not been changed.
    Thanks for your responses.
    Rachel

    When I log into the portal and launch the MSS iviews I get the error ( Could not Connect to SAP R/3).
    Similarly when I launch ESS I get the following error:
    I see that it is lost connection with our SAP R/3 HR system.  And system parameters that are available now
    are just SAP BW, SEM and CRM..
    So looks like we need to re-establish the connection..(?)
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    System 'pcd:portal_content/wwy.KeyStone/com.nrx.pct.vip.systems.sapr3' alias 'SAP_R3_HumanResources' not found. Please check the system object and the alias..
    See the details for the exception ID in the log file
    com.sap.portal.appintegrator.sap.IAC::IAC/SSOLayer
    Parameter Dump
    ApplicationParameter  
    ClassName  com.sapportals.portal.appintegrator.layer.SingleSignOnLayer
    CodeLink  com.sap.portal.appintegrator.sap.bwc.IAC
    DebugMode  false
    DebugMode.default  false
    DebugMode.type  select[false,true]
    ExportParameters  Authentication, LogonUser, RequestMethod
    ForcedRequestLanguage  
    IAC  PP_MY_Profilematchup
    MandatoryParameters  System, IAC
    NavPathUpdate  false
    NextLayer  IAC/ConnectionLayer
    OptionalParameters  ApplicationParameter, DebugMode
    SSO2Template  
    System  SAP_R3_HumanResources
    System.type  lookup:com.sapportals.portal.appintegrator.lookup.SystemLookup
    TopLayer  IAC/SSOLayer
    UserMappingTemplate  login=<MappedUser>&password=<MappedPassword>&~mysapcomusesso2cookie=0
    Wizard.MandatoryParameters  System, IAC
    Wizard.OptionalParameters  ApplicationParameter
    X509Template  
    buildTree  false
    com.sap.portal.reserved.iview.IsolationMode  URL
    com.sap.portal.reserved.iview.WizardURL  pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.defaultIViewWizard
    com.sap.portal.appintegrator.sap.IAC::IAC/SSOLayer
    MandatoryParameters
    System   SAP_BW SAP_BW_Q22 SAP_BW_SAND SAP_CRM SAP_CRM_SAND SAP_SEM 
    Internet Application Component (IAC)   
    OptionalParameters
    Application Parameters  
    DebugMode  No Yes

  • Portal application connect SQL Database

    Hi all,
    I'm newbie in SAP Portal. Now, I've created a new system which connects to SQL Database. Now I want to write a small portal application in Netweaver developer studio, using JSP Dynpage, and retrieve data from this SQL database. Could you please help me or show me the step by step documents to write this example ?
    Thank you very much.

    Hi Tweety,
    SAP NetWeaver Portal comes with some standard iView templates that can be used to access data stored in databases.
    Check <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/eb51610e6a11d7b84900047582c9f7/frameset.htm">SAP Library</a> for more information.
    Best regards,
    Martin

  • Connection from SAP 4.0B System to IBM MQ Series

    Hi
    is it possible to connect <b>SAP 4.0B</b> System with <b>IBM MQ Series 6.0</b>,is the connection supported by SAP 4.0B?
    If supported I am confused with what is the <b>RFC Destination</b> to be used
    is it <b>R/3 Connections</b> or <b>TCP/IP connections</b>
    Thanks in advance
    Warm regards
    Rajasekhar

    Hi Anup
    Thanku for your valuable input, here in the TCP/IP connections can you please suggest what are the
    <b>ACTIVATION TYPE</b> to be used there are 4 radio buttons, is it the
    <b>Registered Server Program</b> OR
    <b>Start On Application server</b>OR
    <b>Start on Explicit Host</b> OR
    <b>Start on Front End Work Station</b>
    if it is the registered server program what are the values to be used for <b>PROGRAM ID</b>
    is it required to make any changes in <b>SAPRFC INI File</b>     
    Thanks in advance
    Warm regards
    Rajasekhar

  • JSF APPLICATION CONNECTION WITH SAP R3

    Hi Experts,
    i want to integrate my JSF application to the SAP R3 using java class. I searched a lot of blogs and docs where they have given a proxy class approach.But i am not able to use it.
    If you have any experience or knowledge , please reply .
    Thanks in Advance
    Ankur Goyal

    Hi
    Why dont you enable RFCs in the SAP system as WebServices and consume them? If you have a very old SAP system then use JCo (JCA) / JRA and connect through the RFC layer.
    [Consume Webservices in 7.3|http://help.sap.com/saphelp_nw73/helpdata/en/ca/97f68ba5034d0fb21c518f0cac1432/frameset.htm]
    [JCo|http://help.sap.com/saphelp_nw73/helpdata/en/48/64db09c88307dbe10000000a42189b/frameset.htm]
    [JRA (JEE Compatibilie, implements JCo)|http://help.sap.com/saphelp_nw73/helpdata/en/48/70796c872c1b5ae10000000a42189c/content.htm]
    HTH.
    Thanks.
    Regards
    LNV

  • How to check connection from SAP to reservation system?

    Dear Experts,
    May I know how to check whether the connection between SAP and the reservation system has been set up and ready to use?
    Thanks.

    Hi
    You need to check the identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    External reservation system In the Travel Planning subcomponent Travel Management accesses an external reservation system connected to R/3 to carry out the queries on available travel services and to book the selected services. The reservation system currently available is the AMADEUS Global Travel Distribution system.
    For more information, see Technical Prerequisites for Travel Planning--
    Technical Prerequisites for Travel Planning
    Before you can use Travel Planning fully, a number of internal R/3 and external prerequisites or settings must be fulfilled.
    Connection to an External Reservation System
    The online booking function in Travel Planning is based on the cooperation with external reservation systems that are used to communicate with the service providers. The R/3 user has access to the following functions via the connection to an external reservation system:
    u2022 Availability query of travel services
    u2022 Transfer of additional information about selected travel services
    u2022 Price information
    u2022 Processing of reservation by the respective provider
    u2022 Synchronization of the data in SAP Travel Planning if external booking changes have been made
    In the current release the external reservation system in use is AMADEUS Global Travel Distribution. AMADEUS is a subsidiary of Lufthansa, Air France, Continental Airlines and Iberia. The reservation system it provides is in worldwide use and 160,000 terminals in 37,000 travel agencies and ticket sales centers in over 130 countries are connected to it.
    In order to carry out online booking via AMADEUS the following must have been carried out:
    u2022 Your enterprise must have signed an agreement with AMADEUS for the use of the interface and be registered at AMADEUS with a user ID
    u2022 A network connection to the AMADEUS computer center must have been opened
    u2022 The identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    For questions about registration, contact the SAP & AMADEUS Competence Center:
    SAP & AMADEUS Competence Center ACC 02 Neurottstrasse 16 69185 Walldorf Germany
    Cheers
    Mukta

  • Websphere application connectivity to SAP

    We are trying to do some proof of concept work connecting to SAP BAPIs using the SAP connector. We have the Netweaver ABAP trial version installed but it doesn't seem to have JCo or sapjra.rar anywhere. Are these components available in a trial form. I've hunted around on the developer network and the net but cann't seem to find anything that tell me whether these components are available as trials/sneak previews.

    Paul.......
    SAP JCO stands for Java Connector ..and i dont think that comes with the Abap trial for netweaver.
    Regards
    Ravi Raman

  • Custom iView Connecting to SAP R/3 system using JCA !!

    I did not get any response on the Portal forum so posting it again in the WebAs forum ...
    Environment : SAP Portal : EP 6.p SP2
    I am using JCA to connect to the SAP backend systems.
    The following code connects to the backend ...
    IConnectionFactory connectionFactory = (IConnectionFactory) ctx.lookup("EISConnections/SAPFactory");
    IConnectionSpec spec = connectionFactory.getConnectionSpec();
    ((Map) spec).put("client", "CLIENT_NUMBER");
    ((Map) spec).put("UserName", "YOUR_LOGIN_ID");
    ((Map) spec).put("Password", "YOUR_PASSSWORD");
    ((Map) spec).put("logonmethod", "UIDPW"); // or SAPLOGONTICKET
    ((Map) spec).put("Language", "YOUR_LOGIN_LANGUAGE");
    ((Map) spec).put("ashost", "YOUR_APPLICTION_SERVER_NAME");
    ((Map) spec).put("sysnr", "YOUR_SYSTEM_NUMBER");
    IConnection client = connectionFactory.getConnectionEx(spec);
    I want to use the message server for load balancing. Is there a way to specify the message server and logon group ??
    These is the code to get the BAPI information ...
    // Create interaction
    IInteraction interaction = client.createInteractionEx();
    IInteractionSpec interactionSpec = interaction.getInteractionSpec();
    interactionSpec.setPropertyValue("Name", "REMOTE_FUNCTION_MODULE_NAME");
    // Create IFunction instance
    IFunctionsMetaData functionsMetaData = client.getFunctionsMetaData();
    IFunction function
    = functionsMetaData.getFunction("REMOTE_FUNCTION_MODULE_NAME");
    // CCI api only has one datatype: Record
    RecordFactory recordFactory = interaction.getRecordFactory();
    MappedRecord importParams
    = recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS"
    and the following code populates the input table parameters ...
    IStructureFactory structureFactory
    = interaction.retrieveStructureFactory();
    IRecordSet table
    = (IRecordSet) structureFactory.getStructure(
    function.getParameter("TABLE_NAME").getStructure());
    table.insertRow();
    table.setString("COLUMN_NAME_1", "VALUE_1");
    table.setString("COLUMN_NAME_2", "VALUE_2");
    table.insertRow();
    table.setString("COLUMN_NAME_1", "VALUE_1");
    table.setString("COLUMN_NAME_2", "VALUE_2");
    importParams.put("TABLE_NAME", table);
    The above code causes performance issues in the SAP system because the code is calling the following other BAPI through the JCA java api ...
    1) RFC_GET_FUNCTION_INTERFACE
    2) DDIF_FIELDINFO_GET
    Looks like, the JCA library is not caching the metadata information for the BAPI instead for each call, it is calling other BAPI's to get the BAPI metadata information. Also, if I reuse the same IFunction class instance for all connections (Using Singleton Class), it seems to make less "RFC_GET_FUNCTION_INTERFACE" bapi calls.
    The problem is with the input table structure which I need to populate for the BAPI. Every time the structure is populated, the internal BAPI's are getting called and it takes more time to populate the structure as number of users increases.
    I am looking answers to the following questions ...
    1) Specify message and logon group in JCA
    2) Provide a way to cache the metadata for the BAPI's
    More details about JCA can be found here ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bc9baf90-0201-0010-479a-b49b25598ebf
    I appreciate your help !!
    Thanks
    Bhabesh Patel

    we updated JCO to the latest version for EP 6 SP2 Patch 8 and it fixed the issue.

  • Funambol (sync4j) connection to sap r/3 system

    Dear Experts,
       Hi.. I have a java middleware for mobile application(Funambol). I need to connect it to a sap backend system(R3)
        The funambol middleware requires
        Remote Database URL:
        Driver Information
    of the remote backend system that i want to connect to.
    How can i do this
    can u pls help
    Regards,
    Vinod.

    Dear Experts,
       Hi.. I have a java middleware for mobile application(Funambol). I need to connect it to a sap backend system(R3)
        The funambol middleware requires
        Remote Database URL:
        Driver Information
    of the remote backend system that i want to connect to.
    How can i do this
    can u pls help
    Regards,
    Vinod.

  • Can not create an Application Component on SAP R/3 system

    I have a source as SAP R/3 ( ECC 6.0 ) and Target as SAP BW 7.0
    a)Log on to SAP BW 7.0 and used  the “ID3CLNT400”  source system ,  by using  Modeling --
    > Source System  --  choose “Customizing Extractors”  from the context menu of the source system “ID3CLNT400”
    In the transaction  SBIW  on the SAP Source system , choose  the Business Information Warehouse -- > Post Processing of DataSources
    &#61550;     > Edit DataSources and Application Component Hierarchies.
    Choose the “IMG Activity “ Here , I am getting one warning.
    "NO Valid Application Component Exists"
    When I hit the continue button .
    Here when I create an Application Component and “SAVE”  the changes, I am getting the following error.
    Package "Z_Train" doesnt exists. Chose "Display Object " or "Cancel"
    Because of this , I couldn’t creat an Application component and also couldnot load any thing on the SAP BW side. Also , I am no way connected to the "Z_TRAIN" Package

    can u pls tell me how u solved it
    I am working on  Production system  when I go to rsa5 it displaying the msg
    No valid application component hierarchy exists
    Message no. R8053
    Diagnosis
    Currently no application component hierarchy ("APCO_MERGED", database table RODSAPPL and RODSAPPLT) exists in the system. This is required in BW so that the DataSources can be displayed correctly in the source system tree.
    Procedure
    Copy the application component hierarchy from the Content using transaction RSA9.
    In development system I went to RSA9 & transferred the application componet then its asks or pkg name I have given the pkg  name also before use the datasrcs , I have transported the same thing to production before transporting the datasrcs but in production the application component herarachy did not get transported I think that why its giving the msg No valid application component hierarchy exists but my datasrcs got transported ,pls suggest me what has to be done
    Should I import the same request in to production again
    Or shall I run rsa9 again & transfer the application component hierarchy again & transport it to production id I do this will already transported datarscs have any effect in production

Maybe you are looking for

  • ASA 5505 Trunking problem with cisco 3760

    Here is my asa 5505 configuration  and at bottom i am pasting cisco 3760 configuration, I am having trunking problem and seen other people having the same issue but no solution. Problem: when i connect any device on Switch 3760 port 1 which is trunke

  • Can't get old photo's off of iphone and into iphoto '09

    I have photo's on my iphone which iphoto does not import or even see if I use itunes sync it says will wipe out photos on my iphone, how can I get these old picture off my phone and into my computer, e-mail is no good it reduces resolution. thanks.

  • Windows server for home user

    hi i have windows 7 on my desktop and a home network included cellphones, laptops and TV. i want to manage my network with active directory. i'm going to install windows server on my PC and my questions is: does the windows server at home is good? of

  • Picking employee information based on user

    Hi, I have query which returns businessgroup, first name, last name, middle name, address. I registered this query(procedure) as concurrent program, running successfully. My requirement is, if USA country user runs this program, he should see only US

  • Human Task in jDeveloper 11g users list not available

    I have the problem, I defined SQL authenticator in wenlogic, and I want to do assignment at human task. But, human task only see jazn users, alhough I see the users defined in db at weblogic console Caused By: ORABPEL-10509 User not found. User "bpmu