Connecting to SAP Backend

hi to all,
I want to update a table in SAP backend without interfacing BAPIs from Web DynPro using JAVA.Is there any way to do the access SAPs Oracle tables directly?If yes then how efficiant would be?Pls help.
Thanx
Regards
Vipin B.

Hi Vipin,
Definitely you can access R/3 using web services, for that you have to create a web service which interacts with R/3. For achieving this you can expose any Function Module as a web service and use WSDL of that web service
to create model based on web services in your web dynpro application.
See <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm">this</a> link to learn how you can use Web Sevice model in your in WebDynpro.
Hope it helps.
Regards,
Narinder Hartala

Similar Messages

  • 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

  • Want to connect iView to SAP backend

    <b><i>Hi all</i></b>,
    I'm trying to connect to SAP backend with connector. But when I try this method, I get "java.lang.ClassCastException"??? This come from the bold line. Is there anyone have an idea about this or meet this problem?
    public IConnection getConnection(IPortalComponentRequest aRequest)
    IConnection              connection = null;
    IConnectorGatewayService cgService  = null;
    ConnectionProperties     prop       = null;
    try
        <b>cgService =
        (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);</b>
      prop = new ConnectionProperties(aRequest.getLocale(),
        aRequest.getUser());
      connection = cgService.getConnection("D01", prop);
      catch (Exception ex)
        throw new ConnectionPoolException(ex);
      return connection;
    <b><i>Best regards.</i></b>

    hi,
      i use the following lines of code and it works for me.  Make sure you have the following reference in portalapp.xml.
    <property name="PrivateSharingReference" value="com.sap.portal.ivs.connectorservice"/>
    private IConnection getConnection(
              IPortalComponentRequest request,
              String alias)
              throws Exception {
              IConnectorGatewayService cgService =
                   (IConnectorGatewayService) PortalRuntime
                        .getRuntimeResources()
                        .getService(
                        IConnectorService.KEY);
              ConnectionProperties prop =
                   new ConnectionProperties(request.getLocale(), request.getUser());
              return cgService.getConnection(alias, prop);
    Message was edited by: Prakash  Singh

  • How to Configure SLD for Backend Connecting to SAP R/3

    Hi All,
    I installed SAP Netweaver04's sp7 sneak preview, now i need to connect to the backend Syatem SAP R/3, for this can you provide the info--How ro configure the SLD.
    ADV Thanks
    Phanikumar

    Hi,
    There are lot of info available with this URL
    https://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio
    http://help.sap.com/saphelp_erp2005/helpdata/en/11/0dfe55e0c8fc4e910706a47ca6859b/frameset.htm
    Configuring SLD in Sneak Preview SAP NetWeaver '04 Sneak
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fd876513-0a01-0010-65ad-a63701bedd8d
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/3e1b40fcdd8f5ce10000000a155106/frameset.htm
    Thanks
    Gopal
    Message was edited by:
            Gopal krishnan

  • Can one syclo server connect to multiple SAP backends?

    Hi All,
    I am working with SAP Service Manager application and the backend is SAP CRM.
    As we all know that the backend system setting for syclo server needs to be maintained in the JavaBE.ini file
    Suppose I have a requirement where one of my screen has to deal with a status update development and the backend in this case is ECC and not CRM.
    Can I achieve this ? I mean can we configure the JavaBE.ini file to connect the multiple SAP backend ? If yes please explain the process/steps to do so.
    Thanks and Regards
    Neha Mahanty
    Message was edited by: Michael Appleby

    Thanks Bill,
    As I understand , Going with Standard SAP Integration mechanism means to have connection with CRM system and ECC system can be called internally from CRM via RFC's . Is my understanding correct here ? This can be done If we create a FC in CRM and internally call ECC FC via RFC.
    Also I shall try the second approach too. However I have a question here.
    Suppose I create a new JavaBE2.ini file and configure it for ECC.
    Later when I create java steps will it automatically detect that which SAP system it should connect to? I cannot explicitly tell the Java step to call the ECC system , Can I ?
    Please advise.
    Thanks
    Neha

  • How to make Portal Application for connecting to SAP R/3(backend system)

    Hello  Experts,
                           I need to create a portal application that should connect to SAP R/3 & fetch some data in some table according to some input parameters provided at runtime & display the data in TABLEVIEW control.
    Anyone can guide me on this i:e- how to go about it. What things i should know or should be aware of before creating this application. Any PDF documents , any help material, any guidance about the same will be of great help.
    Thanks,
    Chetan

    Chetan,
    Webdynpro & Visual Composer ars EP Development Tools.
    If you only display BAPI data then go for Visual Composer with requires no coding So I suggest you to go for Visual Composer.
    You can also use Webdynpro Java or ABAP to display BAPI data by creating
      Adaptive RFC model.
    You will integrate Webdynpro applications into EP by creating SAP Webdynpro iView.
    *Visual Composer Documents:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/0af7d34a8449e2b722878ce270a747/frameset.htm
    *Webdynpro Documents:
    http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/0d4f21c17c8044af4868130e9f
    ea07/frameset.htm
    Regards,
    <b>Ramganesan K</b>

  • Connection to SAP R/3 or to particular module..n how??

    i m new to Enterprise Portal and m bit confused..  i knw that EP is used to connect to SAP system thru Single Sign ON....
    for my project we will be using ESS and MSS buisness package.
    Thus we need to connect our Portal to nly  SAP R/3 sytem...or v connect to particular module...considering my project i need to connect to SAP HR module.. so how do i configure my portal to only SAP HR module..or creating only SAP R/3 system..i.e the way we normally connect to SAP R/3 from Portal content studio will do..??
    ...if any one could explain it conceptually will surely b awarded POINTS..
    Edited by: jigar oza on Jul 29, 2008 10:46 AM

    Hi Jigar,
    as you know about SSO it is nice, SSO is used to connect to backend (System) you can say R/3. Where as system contains many modules.
    Create one system in portal which will connect to your desired backend using SSO. Once it succeeds.
    Then create an SAP transaction iview from iview template which will point to this created sytem.
    You must be having some t-code to directly access your module in the R/3.
    You have to enter this t-code in the Transaction code property of the iview. After creating this iview and proper SSO settings, when you pre-view this iView it will directly open the first screen of your module/application in the backend system.
    let me know if you face any issues in this.
    also see my postings in following threads:-
    Re: How to Connect Backend R/3 system to EP 2004S
    Re: How to configure SAP R3 system to Portal
    Regards,
    Yogesh...

  • 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.

  • Code for Connection to SAP R/3 and acess data from it

    Hi all,
    I am new to this java field.Here i have a swing application with 2 input fields.Upon entering the values of 2 inputfields followd by submit button ,a connection to the backend SAP has to be created and the 2 input values has to be given as input and the data related to those fields has to be displayed in the table.
    Till now i never created connection to SAP using a java application..i know only connection to Oracle..Can any one please help me out in this
    Regards
    Padma N

    To get things straight: both Oracle and SAP are company names. It's like asking "how to connect to IBM".
    I assume you mean the E-Business Suite and R/3, respectively. In that case, your friendly SAP consultant will gladly help you out.

  • Connect to SAP Gateway failed.

    Hello.  When I setup the databridge it errors out.  When I check for processes, it shows sapmsj2e as being on port 3601 in my services file.  But I can't launch a webdyn pro or access my machine with the sap gui.  Any ideas?
    Heres the log file snipped
    352 11/16/04 1:28:12 PM [SAPEngine_Application_Thread[impl:3]_12] INFO com.sap.lcr.webui.DPBridgeServlet: Data Supplier Bridge started.
    #351 11/16/04 1:28:09 PM [JCO.ServerThread-97] DEBUG com.sap.lcr.sagent.SAPProxyServer: JCO exception processed.
    #350 11/16/04 1:28:09 PM [JCO.ServerThread-97] DEBUG com.sap.lcr.sagent.SAPProxyServer: On server exception: Terminated thread.
    #349 11/16/04 1:28:09 PM [JCO.ServerThread-97] DEBUG com.sap.lcr.sagent.SAPProxyServer: JCO Server exception received: Server startup failed at Tue Nov 16 13:28:09 PST 2004.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect_PM TPNAME=SLD_NUC, GWHOST=orw-gharnish, GWSERV=sapmsJ2E
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR connection to partner broken
    TIME Tue Nov 16 13:28:09 2004
    RELEASE 640
    COMPONENT NI (network interface)
    VERSION 37
    RC -6
    MODULE ninti.c
    LINE 784
    DETAIL NiPRead (147.34.68.157/sapmsJ2E, hdl 1)
    SYSTEM CALL recv
    COUNTER 88
    Thrown:
    com.sap.mw.jco.JCO$Exception: Server startup failed at Tue Nov 16 13:28:09 PST 2004.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect_PM TPNAME=SLD_NUC, GWHOST=orw-gharnish, GWSERV=sapmsJ2E
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR connection to partner broken
    TIME Tue Nov 16 13:28:09 2004
    RELEASE 640
    COMPONENT NI (network interface)
    VERSION 37
    RC -6
    MODULE ninti.c
    LINE 784
    DETAIL NiPRead (147.34.68.157/sapmsJ2E, hdl 1)
    SYSTEM CALL recv
    COUNTER 88

    Also.  If I check my bridge connections it shows this:
    [DOWN] JCO/RFC server threads
    Is that related to the other problem?
    Thanks,  Graeme.

  • Creating User in Portal and SAP Backend simultaneously?

    Is it possible when you create a new user for the portal (in my case, active Directory is used as central user storage) for SSO, that this user will also be created simultaneously in different SAP Backends without creating it manually everytime? Or is it perhaps possible to connect Active directory to these SAP backends as central user storage, too? My Problem is that everytime I must create manually the users in portal and all belonging SAP backends but I think it's not very comfortable.
    Regards,
    Frank

    Hi Frank,
    There are ways to integrate complete User Management where either SAP or the local LDAP (i.e. MS ADS) drive as the central store for users.  Ultimately, the CUA concept can be entirely driven by SAP including the MS ADS ID's for the network.  It involves a proposal that is uploaded into the ADS which includes the SAP required schema.  When populated (or if configured as such) they can be applied as user properties for the backend systems.  There is a tool within R/3 called LDAPSYNCH that allows the replication (either direction) of user data.
    This concept is referred to as Identity Management.  Start at http://service.sap.com/security.  Then go to "Security in Detail" ==> "Secure User Access" ==> "Identity Management".  There you can find info/docs on the CUA concept within the SAP landscape as well as the integration into the corporate LDAP.
    I have seen most customers use separate R/3 backend User Management from the ADS.  I assume that this is due to the complexity of adopting a whole new global user management process with existing "cultured" processes.  However the SAP systems can support the entire corporate user management driven from within the R/3 core (HR).
    I hope that this helps,
    Regards,
    Judson

  • How to test the connection between DSD backend and DSD connector

    Dear all,
    I am configuring the MDSD scenario .. and i want to insure that my customization is correct
    How to test the connection between DSD Backend and DSD connector ??

    Hi Viren,
    The problem is:
    We have a new BW system. The basis people asked me to check the connection between this BW system and the R/3. There is only one client for now(100). I have logged into 100 and tried executing RSA1 to check the connection, but it gave a message box saying "You can only work in Client 000". Then I have treid logging into 000(just to make sure) and tried executing RSA1. Even here I got a message saying "The SAP BW system must not be operated in client 000". Now, I am not sure of what is wrong in clien 100. I am not sure if I have to do some settings before I access RSA1 or any other BW transaction. Could you please help me in this.
    Also, I just checked the RFC destinations in BW. There is a destination created for our R/3 and I have noticed that they have given a remote UserID and password for remote login. I tried to check the Remote UserID in SU01 but there is no userID with that name. Could this be a problem?
    Thanks,
    RPK.

  • Setup of SOA demo in SAP backend system

    The scenario is the following:
    I have found a WS that I want my customers to be able to call in order to query invoice information. The WS is u201CSupplierInvoiceERPByIDQueryResponse_Inu201D and is found using the ESworkplace.
    I am using PI 7.0 and I want to use the Service Registry in PI to expose my services. As I understand it is NOT recommended to use PI 7.0 but the SAP backend (ECC) should be used instead.
    What are the steps that should be involved?
    a) How to locate the WS in SAPBACKEND?
    b) How to publish this WS from SAPBACKEND to the PI service registry (SR)?
    c) How to make the WS "connected" to the SAP system?
    d) How can the customers "consume"/execute the WS?
    e) How can my customers browse the SR in order to find the WS? what is best practice?
    f) Why are the route through PI NOT recommended - SAP proclaims that PI should be the central processing component in a SAP landscape in these SOA times so why not use PI?
    Hope someone can help me out.
    Cheers

    Hey,
    This document describe how the handle audit the the sender and the receiver systems are SAP system, when one of the sides (sender/receiver) is not SAP system,
    than the configuration become much more complex.
    As of XI SP18, there are ways to control ALEAUD,
    for more information, read:
    http://help.sap.com/saphelp_nw04/helpdata/en/42/c8f66bc7a56bb0e10000000a1553f6/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_xi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393634373435%7d
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc

  • Error :Could not connect to SAP systemSAP_R3_PLM

    Hi,
    I have uploaded the Business Package for projects into portal and assigned the iviews to a user(test_abc)...when iam trying to view the iviews by logging in to "test_abc" iam getting the following error:
    <b>Could not connect to SAP systemSAP_R3_PLM</b>
    Our Portal is only connected to SAP BW system...Not R/3..
    Could any one please tell me whether we need to coonect to R/3 system to use this business packages?
    also there are some iviews like "BW reports","Select a BW report" etc....
    to use the above iviews do we require an R/3 system or Bw system....what is the data source for this iviews.?..iam confused ....Could some one help me on this issue?
    Regards,
    P.Navakanth

    The primary backend system for this package is indeed an 'R/3' system.  Other systems it used  (depending on which iViews you wish to use) are BW and CRM.  For exact versions of these systems which are supported please follow the link below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/40171ac2-a86d-2910-8692-ece21472e097
    Please reward points if this helped  Thanks

Maybe you are looking for

  • Can't see my "new site"

    I have created a website, then created new pages, sure I can do that, but now, after creating a "New Site", and I can see it and edit it in iWeb, but when i go into iWeb on my "new site" and go "view published site" . . . I cannot see it published...

  • Duplicating an audio tract?

    I recently used a wireless Sony microphone with my Panasonic PVGS-150 camcorder. Unfortunately, it just records mono, so when I played that clip on iMovie, there was only audio from one speaker. Is there any way to duplicate that audio to the second

  • Errors wcu-015: your form must contain the following bean for this function to be available : oracle.forms.webutil.file.filefunctions;

    my technical envirement: 1_ Oracle Entreprise Manager version 9.2.0.1.0 2_ Forms [32 Bit] Version 9.0.2.9.0 (Production) 3_ Oracle JInitiator: Version 1.3.1.9 4_ WebUtil Version 1.0.2(Beta) 5_ window xp service pack 2 build 2600. 6_Internet Explorer

  • ESS Timesheet - Record Working Time application partialy in german

    I initially deployed the ESS BP and the Time Entry -> Record Working Time application was comming completely in english. Then I changed the JCO references of ess/cat DC to some other backend, still the app was english. When I changed the JCO referenc

  • Issue while configuring XLIFF as resource bundle

    We are using Jdeveloper 11.1.1.7.0 ver. We are configuring ADF Faces project for XLIFF by creating xliff file in resources folder and adding xliff file to project properties. In design time we are able to see the configured values when we use express