SAP connector and JSPDynPage

hi everybody, I am trying to display some data from RFC on a JspDyn Page, I have prepared the project but the data from RFc is not displaying.... the code is
MyJspPage.java:-
package com.ust.jca;
import javax.resource.cci.MappedRecord;
import javax.resource.cci.RecordFactory;
import com.sapportals.connector.connection.IConnection;
import com.sapportals.connector.execution.functions.IInteraction;
import com.sapportals.connector.execution.functions.IInteractionSpec;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.ivs.cg.ConnectionProperties;
import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
import com.sapportals.portal.ivs.cg.IConnectorService;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.connector.execution.objects.language.IFunction;
import com.sapportals.connector.execution.structures.IRecordSet;
import com.sapportals.connector.execution.structures.IRecordMetaData;
import com.sapportals.connector.execution.structures.IStructureFactory;
import com.sapportals.connector.metadata.functions.IFunctionsMetaData;
import java.util.Vector;
public class MyJspPage extends PageProcessorComponent {
     public DynPage getPage() {
          return new MyJspPageDynPage();
     public static class MyJspPageDynPage extends JSPDynPage {
          private RfcBean myBean;
          public void doInitialization() {
          public void doProcessAfterInput() throws PageException {
          public void doProcessBeforeOutput() throws PageException {
               myBean = new RfcBean();
               ((IPortalComponentRequest) getRequest())
                    .getServletRequest().setAttribute("myBean",myBean);
               IPortalComponentRequest request =
                    (IPortalComponentRequest) this.getRequest();
               // fill your bean with data here...
               try {
                    //Alias is the name of the alias you defined in portal for SAP system
                    getSAPdata(getConnection(request, "P35"));
               } catch (Exception e) {
                    e.printStackTrace();
               this.setJspName("MyJspPage.jsp");
          private IConnection getConnection (IPortalComponentRequest request,String alias)
          throws Exception
               IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime
                         .getRuntimeResources().getService(IConnectorService.KEY);
               ConnectionProperties cp =     new ConnectionProperties(
                         request.getLocale(),request.getUser());
               return cgService.getConnection(alias, cp);                              
          private void getSAPdata(IConnection client) throws Exception {
try
          /* Start Interaction * */
          IInteraction interaction = client.createInteractionEx();
          // call the BAPI_MDDATASET_CREATE_OBJECT
          IInteractionSpec interactionSpec = interaction.getInteractionSpec();
          interactionSpec.setPropertyValue("Name", "ZHRESS_FIRSTDAY_SERVICE");                
          RecordFactory recordFactory = interaction.getRecordFactory();
          MappedRecord input = recordFactory.createMappedRecord("input");
         com.sapportals.connector.metadata.functions.IFunction function = client.getFunctionsMetaData().getFunction("T_ZHRESS_FIRSTDAY");
          IPortalComponentRequest request = (IPortalComponentRequest)this.getRequest();
          //input.put("P35", request.getUser().getUniqueName());
          input.put("SERVICEID","7");     
          input.put("YYUSER" , "EMP");     
          input.put("YYMOD","DIS");               
         MappedRecord importParams = recordFactory.createMappedRecord("input");        
         IStructureFactory structureFactory = interaction.retrieveStructureFactory();
         IRecordSet table = (IRecordSet) structureFactory.getStructure(
         function.getParameter("T_ZHRESS_FIRSTDAY").getStructure());     
          MappedRecord exportParams = (MappedRecord) interaction.execute(interactionSpec, input);
          //myBean.setCW1((String) exportParams.get("CW1"));
          //myBean.setCW1(((Integer) exportParams.get("T_ZHRESS_FIRSTDAY")).toString());                  
         //myBean.setCW1((String) exportParams.get("T_ZHRESS_FIRSTDAY"));
         IRecordSet exportTable = (IRecordSet) exportParams.get("T_ZHRESS_FIRSTDAY");
         exportTable.beforeFirst(); // Moves the cursor before the first row.
         while (exportTable.next()) {
          String column_1  = exportTable.getString("PERNR");
          String column_2  = exportTable.getString("ZDOJ");
          myBean.setCW1((String)exportParams.get(column_1));
          myBean.setCW2((String)exportParams.get(column_2));
         //System.out.println(" COMPANYCODE_LIST-COMP_CODE = " + column_1);
         //System.out.println(" COMPANYCODE_LIST-COMP_NAME = " + column_2);
         myBean.createData(exportTable);
         client.close();
       catch(Exception e){}      
@param ex
@param string
          private void printException(Exception ex, String string) {
               // TODO Auto-generated method stub               
@param string
          private void logMsg(String string) {
               // TODO Auto-generated method stub
RfcBean.java:-
package com.ust.jca;
import java.io.Serializable;
import com.sapportals.connector.execution.structures.IRecordSet;
public class RfcBean implements Serializable {
     private String CW1;
     private String CW2;
@return
     public String getCW1() {
          return CW1;
@return
     public String getCW2() {
          return CW2;
@param string
     public void setCW1(String string) {
          CW1 = string;
@param string
     public void setCW2(String string) {
          CW2 = string;
@param exportTable
     public void createData(IRecordSet exportTable) {
          // TODO Auto-generated method stub
MyJspPage.jsp:-
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean" scope="request" class="com.ust.jca.RfcBean" />
Hello World
<hbj:content id="myContext" >
  <hbj:page title="PageTitle">
   <hbj:form id="myFormId" >
      <hbj:textView
                    text="<%=myBean.getCW1()%>"
                    id="tv1" 
                    design="HEADER2"
                    encode="false">
        </hbj:textView>
        <br>     
        <hbj:textView
                    text="<%=myBean.getCW2()%>"
                    id="tv1" 
                    design="HEADER2"
                    encode="false">
        </hbj:textView>
   </hbj:form>
  </hbj:page>
</hbj:content>

Hi Sanjyoti:
JCo is one of the connectors for SAP backend through any Java/JSP/Servlet based applications. You need to have the SAP JCo libraries (Jar files) with you to connect to the SAP R/3 system, ofcourse along with the connection parameters.
Here is the sample scenario where you are connecting SAP RFCs/BAPIs with JSPs:
1: first you need to manage required JCo jar files and import it into your project lib folder. this is to have the JCo api at runtime to your application
2: import the library path into your JSP page
3: write a custom method to connect to SAP with connection parameter
4: you should have an idea of which Remote_Func_Module you are connecting and the input and output attributes
5: Execute the functional module and display the results and close the connection parameters.
Its almost like connecting to a RDBMS in a general scenario.
For more information about SAPJCo:
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm
For example program1 to connect:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/14e13d8ee4535ee10000000a114084/content.htm
For example program2 to connect:
http://help.sap.com/saphelp_nw04/helpdata/en/9d/14e13d8ee4535ee10000000a114084/content.htm
For example program a BAPI:
http://help.sap.com/saphelp_nw04/helpdata/en/de/e6c9255044b241a9401a3a1b7009a9/content.htm
For Tools & Services of SAPJCo:
https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000463649
If you still want already working program, I can mail it your email id.
Thanks,
MS

Similar Messages

  • SAP connector and Jsp page

    hi Experts,
    Can anyone please send me a working example project for SAP connector and Jsp page at [email protected]
    Regards,
    Sanjyoti.

    Hi, 
    Use this example
    import com.sapportals.connector.ConnectorException;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.objects.INativeQuery;
    import com.sapportals.connector.execution.objects.InvalidQueryStringException;
    import com.sapportals.connector.execution.objects.QueryExecutionException;
    import com.sapportals.connector.metadata.CapabilityNotSupportedException;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.resource.ResourceException;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    public class TestJDBC extends AbstractPortalComponent
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    throws ResourceException
    // Open a connection
    IConnectorGatewayService cgService = (IConnectorGatewayService)
    PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
    ConnectionProperties prop = new ConnectionProperties(request.getLocale(),
    request.getUser());
    IConnection client = null;
    try {
    client = cgService.getConnection("System1", prop);
    } catch (Exception e) {
    response.write(e.toString());
    return;
    try {
    // Issue SQL Query statement
    INativeQuery query = client.newNativeQuery();
    String queryStr = "SELECT [CategoryID], [CategoryName], [Description] FROM
    [Categories]";
    //IQuery query = client.newQuery();
    //query.execute(queryStr);
    Object result = query.execute(queryStr);
    //ResultSet singleResult = ((ResultSet) result).getRow();
    //IRecordSet result = query.retrieveRecordSet();
    // Iterate returned result
    ResultSetMetaData recordMetaData = ((ResultSet)result).getMetaData();
    int colNum = recordMetaData.getColumnCount();
    //result.beforeFirst();
    while (((ResultSet)result).next()) {
    for (int i = 1; i <= colNum; i++) {
    response.write(((ResultSet)result).getString(i) + "<br>");
    // Close the connection
    client.close();
    } catch (QueryExecutionException e) {
    response.write(e.toString());
    } catch (CapabilityNotSupportedException e) {
    response.write(e.toString());
    } catch (ConnectorException e) {
    response.write(e.toString());
    } catch (InvalidQueryStringException e) {
    response.write(e.toString());
    } catch (ResourceException e) {
    response.write(e.toString());
    } catch (SQLException e){
    response.write(e.toString());
    }catch(Exception e){
    response.write(e.toString());

  • SAP connector and VS2005

    Can SAP connector 2.0.1 be install in a pc which has only VS2005? I tried to install it and I received the following error:
    YOU MUST FIRST INSTALLVISUAL STUDIO NET 7.1 INTEGRATED DEVELOPMENT ENVIRONMENT (IDE).
    Can someone tell me if I can connect to SAP from VS2005 and how?
      Thanks in advance

    Hi,
    SAP Connector for MS .NET is not currently supported on Visual Studio 2005.
    Please check the article Using SAP Connector for MS .NET (NCO) in Microsoft Visual Studio 200 to learn a workaround that enables easy design-time connectivity to SAP back-end systems in Visual Studio 2005 by creating the connector proxies in Visual Studio 2003 and porting them to Visual Studio 2005.
    The link to this article is available in the Development Center under Additional Resources.
    Regards,
    Anne Tarnoruder
    SAP NetWeaver Product Management

  • Difference Between SAP Connectors and SAP Web Services Framework

    Hello,
    I would like to know the main difference between the SAP Connectors protocol (that uses SOAP) and the SAP Web Services Framework starting with NetWeaver.
    Thank you,
    Pedro Carrilho

    Hi Pedro,
    I guess you are talking about Business Connectors and XI.
    If that is the case, the differences are:
    SAP XI belongs to SAP Netweaver Technology, whereas BC is an Integration tool provided by Webmethods.
    SAP XI is based on a model called "Hub & Spoke" and Business Connectors are "point to point". So by using XI, what happens is that you do not redesign Solutions once again.
    With XI you save the entire integration knowledge of a collaborative process centrally in SAP XI: Objects at design time in the Integration Repository and objects at configuration time in the Integration Directory. In this way, SAP Exchange Infrastructure follows the principle of shared collaboration knowledge: You no longer need to search for information about a collaborative process in each of the systems involved, but can call this information centrally instead. This procedure considerably reduces the costs for the development and maintenance of the shared applications.
    Also SAP XI comes with pre-configured solutions bundled along with it, so you can straight-away use the solution instead of redesigning.
    Also i believe SAP XI is integrated as a required solution for some new mySAP solution like SRM, there are some scenarios within SRM requires SAP XI to be used and we cannot use BC's there.
    But incase if you do not have multiple systems connected and communication is between just 2 systems, BC should be sufficient, instead of investing on XI.
    But i guess slowly SAP will be stopping its support for BC, as SAP XI can do everything that BC does and even much more.
    Also go through these threads...
    Re: Business connector
    XI vs Connectors (Like JCo and .NET)
    I hope this is what you were looking for...
    Regards,
    Abhy

  • Connectivity between "SAP Connector and Java Iview".

    hi Experts,
    I have written a Java iview, and trying to connect r/3 by the java Iview, i am not able to track where i am goin wrong ?? Please help.
    Is there anyway to check whether the connectivity is been established or not.I am really confused.
    Code is :-
    package com.rr.ess.DynPage;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.functions.IInteraction;
    import com.sapportals.connector.execution.functions.IInteractionSpec;
    import com.sapportals.connector.metadata.functions.IFunction;
    import com.sapportals.connector.metadata.functions.IFunctionsMetaData;
    import com.sapportals.htmlb.Button;
    import com.sapportals.htmlb.Form;
    import com.sapportals.htmlb.GridLayout;
    import com.sapportals.htmlb.Image;
    import com.sapportals.htmlb.InputField;
    import com.sapportals.htmlb.TextView;
    import com.sapportals.htmlb.Tray;
    import com.sapportals.htmlb.enum.InputFieldDesign;
    import com.sapportals.htmlb.enum.TrayDesign;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.resource.IResource;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sun.corba.se.spi.legacy.connection.Connection;
    import javax.resource.cci.MappedRecord;
    import javax.resource.cci.RecordFactory;
    public class TestDynPage extends PageProcessorComponent {
      public DynPage getPage() {
         return new TestDynPageDynPage();
      public static class TestDynPageDynPage extends DynPage {
          Tray mytray;             
          Image Logo;
          InputField myinputfield;
          Button mybutton;
          Button defaultbutton;
          TextView text;
          GridLayout mygrid;
          String message;
          String Str = new String();
          * Initialization code executed once per user.
         public void doInitialization() {
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              IPortalComponentProfile profile = request.getComponentContext().getProfile();
              this.message = profile.getProperty("mymessage");
              if(this.message=="")
                   this.message = profile.getProperty("defaultmessage");         
          * Input handling code. In general called the first time with the second page request from the user.
         public void doProcessAfterInput() throws PageException {
         IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
         IPortalComponentProfile profile = request.getComponentContext().getProfile();     
         InputField myinput = (InputField)getComponentByName("input");
         if(myinput != null)
              message = myinput .getValueAsDataType().toString();
         try{
              getConnection(request,"P35");
         catch(Exception e)
         public IConnection getConnection(IPortalComponentRequest request,String alias)
                        throws Exception {
                   IConnectorGatewayService cgService =
                   (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
                   ConnectionProperties prop =     new ConnectionProperties(request.getLocale(),request.getUser());
                   IConnection connection = cgService.getConnection("P35",request);      
                   getSAPdata(connection);                              
                        return cgService.getConnection("P35", prop);                    
         public void getSAPdata(IConnection client) throws Exception {
                        /* Start Interaction * */
              try{          
                   IInteraction ix = client.createInteractionEx();
                                  IInteractionSpec ixspec = ix.getInteractionSpec();               
                                  ixspec.setPropertyValue("Name", "HRMSS_RFC_EP_READ_PHOTO_URI");
    //                              Create IFunction instance
                                  IFunctionsMetaData functionsMetaData = client.getFunctionsMetaData();
                                  IFunction function = functionsMetaData.getFunction("HRMSS_RFC_EP_READ_PHOTO_URI");
    //                              CCI api only has one datatype: Record     
                                  RecordFactory recordFactory = ix.getRecordFactory();
                                  MappedRecord importParams      = recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
    //                              Set scalar values
                                  importParams.put("PERNR", "1012");
    //                              Get scalar values               
                                  System.out.println("Invoking... " + function.getName());
                                  MappedRecord exportParams = (MappedRecord) ix.execute(ixspec, importParams);
                                  String scalar = (String)exportParams.get("URI");
                                  Str = scalar;     
                finally {
                   if (client != null) {
                        try {
                        client.close();
                        //("* Iview: Closing connection ok.");
                        client = null;
                              } catch (Exception e) {
                          //     logMsg("* Iview: Error closing connection.");
          * Create output. Called once per request.
         public void onPersonalise(Event event) throws PageException
         IPortalComponentRequest request = (IPortalComponentRequest)this.getRequest();
         IPortalComponentProfile profile = request.getComponentContext().getProfile();
         profile.setProperty("mymessage",this.message);
         profile.store();
         public void onDefault(Event event) throws PageException
              IPortalComponentRequest request = (IPortalComponentRequest)this.getRequest();
              IPortalComponentProfile profile = request.getComponentContext().getProfile();
              this.message = profile.getProperty("defaultmessage");
              profile.setProperty("mymessage","");
              profile.store();
         public void doProcessBeforeOutput() throws PageException {    
           // create your GUI here....
           IPortalComponentRequest  req= (IPortalComponentRequest)getRequest();
           //IResource rs = req.getResource(IResource.IMAGE,"images/CAR1.jpg");
           IResource rs = req.getResource(IResource.IMAGE,Str);
           Logo = new Image(rs.getResourceInformation().getURL(req),"Logo");
           Form myForm = this.getForm(); // get the form from DynPage      
           myinputfield = new InputField("Input");
           myinputfield.setDesign(InputFieldDesign.STANDARD);
           mybutton = new Button("mybutton");
           mybutton.setText("Personlise");
           mybutton.setOnClick("Personalise");
           defaultbutton = new Button("Default");
           defaultbutton.setText("Default");
           defaultbutton.setOnClick("Default");
           text = new TextView("fgfdg"+Str);
           mytray = new Tray();
           mytray.setDesign(TrayDesign.BORDER);
           //mytray.addComponent(Logo);
           form.addComponent(Logo);
           mygrid = new GridLayout(3,2);
           mygrid.setCellPadding(2);
           mygrid.addComponent(1,1,myinputfield);
           mygrid.addComponent(2,1,mybutton);
           mygrid.addComponent(3,1,defaultbutton);
           mygrid.addComponent(3,2,text);
           mytray.addComponent(mygrid);
           myForm.addComponent(mytray); 
    Points would be awarded to helpful answers.
    Regards,
    Sanjyoti.

    hi Prashant,
    Thanks for your reply.
    I am able to see the Iview with all the components(textfield,buttons).
    But the image is not displayed. and I am not able to check whether the connectivity is been established.
    in this part of code
    text = new TextView("fgfdg"+Str);
    I am assigning the value of "Str", which i get from R/3 to "text",
    but in the iview the value of "Str" is not displayed.
    Regards,
    Sanjyoti

  • SAP Connector 2 - Could not load file or assembly 'SAP

    Hi all,
    I've recently installed SAP .NET Connector 2 and have been developing a basic C# web form to interrogate the customers table. I have created all my code and done a successdul build. However, when I try to run the web form I get the following error:
    <i>Could not load file or assembly 'SAP.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. The system cannot find the file specified.</i>
    The SAP.Connector.dll and SAP.Connector.Rfc.dll files are on both my development machine and the server I am deploying the project on. Any ideas ?
    Thanks.

    Fixed it myself. In the solution browser, expand the reference section and in the properties for the SAP.Connector and SAP.Connector.Rfc set the 'Copy Local' parameter from False to True. This fixes the issue.

  • Calling BAPI with SAP connector

    Hello All,
    I've created an aspnet application using SAP connector and I'm calling BAPI_PO_GETDetail but I'm not sure to use it correctly because I have not all of fields in my datagrid (for example I cannot see the vendor name or code)...
    I think that I don't understand something ! 
    Thanks for your help (and sorry for my English) !
    here is my code :
        ' create proxy variable
                Dim proxy2 As New SapConnectPO.POSAPProxy
                ' get a connection
                Dim conn = SAP.Connector.SAPConnection.GetConnection(ConfigurationManager.AppSettings("connSAP"))
                conn.Open()
                proxy2.Connection = conn
                ' create structure variables
                Dim t1 As New SapConnectPO.BAPIADDRESS
                Dim t2 As New SapConnectPO.BAPIEKBE
                Dim t3 As New SapConnectPO.BAPIEKBES
                Dim t4 As New SapConnectPO.BAPIEKBESTable
                Dim t5 As New SapConnectPO.BAPIEKBETable
                Dim t6 As New SapConnectPO.BAPIEKBETable
                Dim t7 As New SapConnectPO.BAPIEKES
                Dim t8 As New SapConnectPO.BAPIEKESTable
                Dim t9 As New SapConnectPO.BAPIEKET
                Dim t10 As New SapConnectPO.BAPIEKETTable
                Dim t11 As New SapConnectPO.BAPIEKKN
                Dim t12 As New SapConnectPO.BAPIEKKNTable
                Dim t13 As New SapConnectPO.BAPIEKKOL
                Dim t14 As New SapConnectPO.BAPIEKKOTX
                Dim t15 As New SapConnectPO.BAPIEKKOTXTable
                Dim t16 As New SapConnectPO.BAPIEKPO
                Dim t17 As New SapConnectPO.BAPIEKPOTable
                Dim t18 As New SapConnectPO.BAPIEKPOTX
                Dim t19 As New SapConnectPO.BAPIEKPOTXTable
                Dim t20 As New SapConnectPO.BAPIESKL
                Dim t25 As New SapConnectPO.BAPIESKLTable
                Dim t26 As New SapConnectPO.BAPIESLL
                Dim t27 As New SapConnectPO.BAPIESLLTable
                Dim t28 As New SapConnectPO.BAPIESLLTX
                Dim t29 As New SapConnectPO.BAPIESLLTXTable
                Dim t30 As New SapConnectPO.BAPIESUC
                Dim t31 As New SapConnectPO.BAPIESUCTable
                Dim t32 As New SapConnectPO.BAPIESUH
                Dim t33 As New SapConnectPO.BAPIESUHTable
                Dim t34 As New SapConnectPO.BAPIPAREX
                Dim t35 As New SapConnectPO.BAPIPAREXTable
                Dim t36 As New SapConnectPO.BAPIRETURN
                Dim t37 As New SapConnectPO.BAPIRETURNTable
                ' Call method
                Try
                    proxy2.Bapi_Po_Getdetail(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "X", TextBox1.Text, Nothing, Nothing, Nothing, t1, t13, t35, t15, t12, t8, t31, t5, t4, t33, t10, t27, t25, t19, t17, t29, t37)
                Catch ex As Exception
                    Response.Write(ex)
                End Try
                ' result is bound to datagrid1
                GridView1.DataSource = t17
                GridView1.DataBind()
    conn.close()

    Hi Christine:
    Actually this is the correct forum...But don't expect to recieve an answer too soon...We all have works besides SDN...Also, at least talking about myself...I don't know the solution to your problem -:( But I'm sure that there other members that can help you out -;)
    Greetings,
    Blag.

  • SAP Explorer and Proxy generator 2008

    Hi experts,
    I'm trying to use the Aconcagua IT SAP Explorer and proxy generator 2008 with microsoft visual studio 2008,
    and I'm facing a problem. The version of Aconcagua plugin  in is evaluation.
    I am able to connect to SAP server and see the list of all Z* function RFC enabled, but when I try to generate the Client proxy
    I receive the exception message :
    Cannot build the proxy of "name function" .
    Exception: The method or operation is not implemented.
    Anyone has some experience in using this plugin?
    The ABAP function I'm calling is correct and RFC enabled,
    am I missing some step?
    I loaded the references of Aconcagua including SAP.Connector and SAP.Connector.RFC, but I'm not able to add
    librfc32.dll.
    Please help, I have to develop a call from C++ to SAP system quikly!!
    Thanks in advance,
                                   Paolo F.C.

    Hi Amadeusz,
    Well, it explains why ES Explorer Tools Options is not available.
    It is very important that Visual Studio will be closed during ES Explorer for .NET installation.
    I would suggest you to close all open Visual Studio instances, uninstall and then install again ES Explorer for .NET.
    Regards,
    Rima.

  • Problem: Accessing BAPI using SAP System Connector and setting SELOPT_TAB

    Hi,
    I am trying to use the SAP System Connector (based on JCA) to connect to a BAPI and do a search for a customer with EP SP15. (Using BAPI_CUSTOMER_FIND).
    I established the connection and can set simple input parameters, however I didn't find a way for setting the SELOPT_TAB in the IInteraction instance.
    This is what the table should contain:
    Table SELOPT_TAB
    Field Content
    COMP_CODE SPACE
    TABNAME KNA1
    FIELDNAME NAME1
    FIELDVALUE Ma*
    Here the import parameter:
    IMPORT-Parameter
    MAX_CNT 100
    PL_HOLD X
    And here the code for the IInteraction without the SELOPT_TAB that I want to include.
    // Get the Interaction interface for executing the command
    IInteraction ix = connection.createInteractionEx();
    IInteractionSpec ixspec = ix.getInteractionSpec();
    String functionName = "BAPI_CUSTOMER_FIND";
    ixspec.setPropertyValue("Name", functionName);
    String function_out = "RESULT_TAB";
    RecordFactory rf = ix.getRecordFactory();
    MappedRecord input = rf.createMappedRecord("input");
    // put function input parameters
    input.put("MAX_CNT", "100");
    input.put("PL_HOLD", "X");
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    Does anybody know how to set the SELOPT_TABLE as input parameter?
    Any help would be appreciated.
    Regards, Andy

    Maybe your application isn´t run in x84
    #Go to properties of your project ->Build -> changed platform target of "Any CPU" to "x86"
    #Copy these libraries from our 32-bit environment :
    *SAP.Connector.dll
    *SAP.Conector.Rfc.dll
    *librfc32.dll
    *msvcp71.dll
    *msvcr71.dll
    In 64 bits environment:
    1. librfc32.dll to C:WINDOWSsystem
    2. msvcp71.dll to C:WINDOWSsystem32
    3. msvcp71.dll and  msvcr71.dll to C:WINDOWSSysWOW64
    4. SAP.Connector.dll and SAP.Conector.Rfc.dll to C:WINDOWSassembly (DRAG)

  • Announcing General Availability of PowerShell Connector and Release Candidate of Generic SQL and SAP Roles/Users

    The FIM team is pleased to announce the availability of some additional Connectors for FIM2010R2.
    General Availability of PowerShell Connector
    The PowerShell Connector can be used to communicate with a system through PowerShell scripts. This allows an easy and flexible way to communicate with other systems but also to pre-/post-process data and files before handed over to the FIM Synchronization
    Service. We believe the community will help providing scripts for this Connector for various systems and will open a place where scripts can be published for reuse.
    TechNet docs:  
    http://go.microsoft.com/fwlink/?LinkID=393057
    Download:         
    http://go.microsoft.com/fwlink/?LinkID=393056
    Release Candidate of Generic SQL Connector
    The Generic SQL Connector will allow you to connect to any database where you have an ODBC driver available. It enables new features compared to the built-in MA such as support for Stored Procedures, running SQL scripts, built-in delta import support, import
    multiple object types, connect to multiple tables, and much more. This Connector is built on ECMA2.3 which allows schema discoverability to be customized in the Sync Engine UI. A pre-release of the next Sync Engine hotfix is included with the Connector download
    and is required for the Connector to work.
    Download:         
    https://connect.microsoft.com/site433/Downloads/DownloadDetails.aspx?DownloadID=52652
    Release Candidate of SAP Users and Roles/Groups
    The updated SAP templates for Users and Roles/Groups allows you to manage Users, Roles, and Groups in SAP. This also include password sync for Users to SAP. The Connector will make sure roles are represented as groups to make it possible to manage these
    with bhold. This template will require the previously published WebService Connector:
    http://go.microsoft.com/fwlink/?LinkID=235883.
    Download:         
    https://connect.microsoft.com/site433/Downloads/DownloadDetails.aspx?DownloadID=52651
    If you have participated in any other Connector preview program you will have access to the Release Candidate downloads. If you have not participated before then to get access to the preview programs on Connect either join the program “Identity and Access
    Management”, “FIM Synchronization Service Connectors Pre-release” on
    http://connect.microsoft.com/directory or follow this link
    http://connect.microsoft.com/site433/SelfNomination.aspx?ProgramID=6709&pageType=1
    We have also published an update to the Generic LDAP Connector adding support for some additional LDAP directories, see
    http://support.microsoft.com/kb/2936070/. If you have additional LDAP directories you think we should support, please feel free to contact me.
                    On behalf of the FIM Sync team,
                    /Andreas Kjellman

    On Tue, 18 Mar 2014 08:09:43 +0000, David Burghgraeve wrote:
    We've been using the OpenLDAPXMA to be able to connect to ACF2 CA-LDAP (from Computer Associates) running on a IBM Z-OS Mainframe System. We've been using it for password synchronization since 2004 on MIIS. Today it's still used via the
    OpenLDAPXMA (64bit) on FIM 2010 R2.
    We had to tweak the password management component in the OpenLDAPXMA to support the error messages we get from the ACF2 System, as we support a multi-master password setup between Mainframe and Active Directory (one can change the password on
    MF and/or on Windows). by example  "LDP0406E ACF2 error modifying lid(ACF00155 NEW PASSWORD CANNOT BE THE SAME AS CURRENT PASSWORD)".
    Additionally, we cannot get the delta import to work with the CA-LDAP, there's no capability in it and we tried to use the time attribute to use in the query for recent changes, but it does not work. (I think we need it in a large integer format
    or unix time integer).
    Would be great to have Microsofts' support in this :)
    In a case like this where your follow-up has nothing to do with the
    original post you should create a new thread.
    Having said that, neither of the MAs to which you refer are official
    Microsoft MAs and as such there is no support from Microsoft available.
    Also, keep in mind that the ECMA1/XMA extensibility framework has been
    deprecated and replaced by the ECMA 2.0. You should plan on replacing
    existing ECMA1 management agents with ECMA2.0 connectors.
    Paul Adare - FIM CM MVP
    "It's 106 light-years to Chicago, we've got a full chamber of anti-matter,
    a half a pack of cigarettes, it's dark, and we're wearing visors."
    "Hotsync." -- Paul Tomblin & Peter da Silva

  • SAP Enterprise Connector and JCo

    Hello All,
          I have a question.
    I wánt to know regarding -->
    SAP Connector  &
    JCo.
    Are both of them same ?
    Regards,
    Deepu.K

    hi,
    <b>They are different:</b>
    SAP Connector : A development tool, that helps classes and RFC function module method calls in Java application.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm
    JCO : They are often called as JCO RFC provider service. They offer two types of connection a)TCP/IP b)Through shared memory
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/85343e8c7f6329e10000000a114084/frameset.htm
    (soon my blog on SAP Enterprise connector will be published)
    hope it helps'
    regards

  • Business Connector and sap router on same server?

    Hello,
    We are investigating currently in order to install "Business Connector" and "Sap router" on a same dedicated server.
    I would like to know if it is possible or not recommended, etc... if there are some guidelines.
    If someone has experience in this solution.
    Many thanks for your help

    I can't see a reason why not... any particular concerns?
    Regards
    Juan

  • Best practice for connecting to SAP backend from JSPDynPage

    Hi,
    Can anyone help clear up some confusion I have over connecting to SAP from Java?
    We have a number of JSPDynPage portal applications on EP7 Ehp1 that connect to SAP ECC6.
    We currently use 2 methods to call remote functions on the ECC system.
    1) Enterprise connector and JCo Client Service
    This method has the advantage of automatically generated proxy classes and typed access to function module parameters. It is also more closely aligned to Web Dynpro from a design time point of view
    However it also has a number of disadvantages in that it does not support table APPEND structures and requires regeneration for every change to the ABAP structures involved even if the field that has changed is not being referred to. In addition the use of the JCo client service means that the connection pooling must be handled ourselves explicitly
    2) Connector Framework - SAP System Connector
    This method has the advantage that connection management is handled by the framework. It also has the advantage that fields are referred to by name so if an ABAP structure changes then the remote call will not fall over as long as the named fields are still available.
    However this method is more cumbersome because no proxy classes are generated and function module parameters are referred to generically so errors are not picked up by the complier.
    Given the limitations of the above 2 methods, what is the recommended approach?
    In the book u2018Inside Web Dynpro for Javau2019 Chris Whealy says the following about the Adaptive RFC Layer:
    u2018Any Java program running in the AS Java u2013 not just Web Dynpro u2013 can make use of the Adaptive RFC layeru2019
    Has anyone been able to use the Adaptive RFC layer from a NON-WebDynpro java application?
    Any thoughts on the above would be most welcome.
    Thanks,
    Denis.

    Hello,
    The recommended way is with JCA Connector.
    Adaptive RFC is included from NW7.1,
    See "Creating an Adaptive RFC2 Sample Application without using Web Dynpro"
    in the SAP HELP of NWCE7.1 or NWCE7.2.
    Seems to be based in JCo 3.0 and Java5 so it will not work in NW70.
    For older Versions like EP 5 there is also a JCo ClientService available.
    Regards
    Johannes

  • No connection from SAP EP to Raytion SAP Connector

    Hello,
    The Raytion SAP connector 1.5.1 has been deployed without any problems on the customer SAP EP (Production). We see that no connection can be made from the SAP EP to this SAP Connector.
    Extract from the log file: (10.54.17.63 is the IP address from the Raytion SAP Connector server.)
    2008-04-03 13:30:40,082 DEBUG resource allowed by watched repository filter: true
    2008-04-03 13:30:40,097 DEBUG resource allowed by hidden filter: true
    2008-04-03 13:30:40,097 DEBUG resource allowed by size filter: true
    2008-04-03 13:30:40,097 DEBUG resource allowed by Exclude RegEx filter: true
    2008-04-03 13:30:40,097 DEBUG resource released by timebased service: true
    2008-04-03 13:30:40,097 DEBUG resource released by statemanagement service: true
    2008-04-03 13:30:40,191 INFO about to post /Intranet/Departement%20Facility%20Management/Dienst%20Schoonmaak/Nieuws/7061c4fe-fc43-2a10-05bc-bcb3aa83965c.xml
    2008-04-03 13:30:42,082 WARN could not connect to connector server at http://10.54.17.63:16050/DataSource. http://portaal:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/Intranet/Departement%20Facility%20Management/Dienst%20Schoonmaak/Nieuws/7061c4fe-fc43-2a10-05bc-bcb3aa83965c.xml not sent! com.caucho.hessian.io.HessianProtocolException:
    2008-04-03 14:47:32,552 INFO Start security update initiated by Connector Server
    2008-04-03 14:47:34,240 WARN could not connect to security cache at http://10.54.17.63:16050/Security. Start update notification not sent! com.caucho.hessian.io.HessianProtocolException:
    2008-04-03 14:47:34,240 ERROR Could not send security synchronisation start notification. No server available.
    The contractor that installed this, thinks the next area to look to is to see if the SAP EP has been configured somehow to stop outgoing http traffic from applications running within it... Maybe the EP is blocking outgoing HTTP access, although other components from the EP are working OK.
    How can we check this?
    Please advise.
    Kind regards.

    Check the following Links:
    I want an explanation for this connection between R/3, CRM and IPC ??????
    Document flow from R/3 to CRM
    BP Changes From CRM to R/3
    BP Changes From CRM to R/3
    Reward Points if useful.

  • SAP Connector no longer working after upgrade

    After upgrading from EP 6.0 SP2 Patch 2 to Patch 3, our iViews using the SAP connector framework is no longer working. No connection is obtained. Even the examples in the PDK has stopped working. It seems that maybe some files have disappeared (in folder ".../server/services/eisconnector/work").
    Any ideas?
    Hilde

    Hi Hilde,
    1. please have a look in the Visual Admin Tool -> Services -> EISConnector ans see if the SAP Connector is deployed there. if you see it there, so it is deployed.
    2. try to remove and add agian the SAP Connector (in the same place as from section one)
    3. why dont you use the last Portal Patch and J2EE patch?
    4. do you see any special exception in the Log file?
    Regards,
    Aviad

Maybe you are looking for

  • After upgrading Itunes 8-1 can no longer connect to internet

    My wife updated to Itunes 8.1 and immediately lost her wireless internet connection and cannot get it back. I am posting this message on her behalf. She called Apple support and Jeremy told her this could not have happened and it could not be an Itun

  • Problem at the time of creation order

    Dear Gurus, facing update termination error at the time of creation/change the sales order..in development system after some analysis,  found one more error due to which above mention error is coming report run : "RMCSUTIC" : check utility logistic i

  • Batch file reduction and batch save issues

    I have a multi leveled directory of hundreds of ai images (black and white) which take up a few gbs on disk. To reduce size illustrator (lossless) has two useful features: delete unused panels action and save without embedded ICC profile which reduce

  • Confused about "files inside a JAR"

    I have a program that has a Properties file which I would like to "save" into the JAR file, so it is not outside the JAR. I know this can be done, because I've seen some Java programs that save their configuration between sessions, but not via a file

  • Processing WS-Security headers within a web service

    Hello, I have created a service with WS-Security (from a WSDL using jdeveloper) and deployed it on OC4J. Within the service implementation, I need to get some information from soap security header, that is, my service needs to process some security h