Accessing SAP backend from j2ee without entrprise portal

Hi All,
I have a requirement which is migrating the applications hosted on tomcat server to SAP web AS and accessing the SAP ERP system from the web application.As of now i have two options one is importing the web application into NWDS and creating a webdynpro application or creating j2ee application.
<b>Now my doubt is how do i access sap ERP system from the application(I dont have any enterprise portal which should have made my job easy by creating JCO destinations and accessing them in the webdynpro application)</b>
Please let me know how to access backend from j2ee or webynpro from NWDS without Enterprise portal
Thanks
Bala

Hi,
you could use native JCo.
More her: http://service.sap.com/connectors
Rgds
Markus

Similar Messages

  • Access SAP Tables from Java Program

    Hi All,
    We have a requirement to integrate attendance portal(which is done in java) with SAP.
    Our problem is how to access SAP tables from a Java program?
    Database is Sybase.
    Please suggest us a good solution.
    Thanks in advance...

    Did you go through Sap Help?
    Calling BAPIs from Java - BAPI User Guide CA-BFA) - SAP Library
    Regards,
    Philip.

  • JMS: can I access SAP messages from extenal Java

    - Can I access SAP Messages from an external (non-SAP) java program?
    - Do I use JNDI or can I call using a jar file from my java invocation?
    - Do I have to define a queue (or does SAP JMS have queues)
    - What port do I use?
    Thanks

    Hi John,
    > - Can I access SAP Messages from an external
    > (non-SAP) java program?
    >
    Yes, you can use the JMS provider on the Web AS from a standalone java program.
    > - Do I use JNDI or can I call using a jar file from
    > my java invocation?
    You connect your remote java client to the server by getting an InitialContext. The you lookup the JMS resources (such as Topic- or Queue ConnectionFactory, etc.) from the JNDI. You can have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/bf8f44540c469abc19fb6ac3ac7885/frameset.htm">this</a> page for more info.
    >
    > - Do I have to define a queue (or does SAP JMS have
    > queues)
    >
    The JMS Provider on the Web AS provides default connection factories that you can use to create a topic ot queue. The lookup strings you have to use are
    jmsfactory/default/TopicConnectionFactory
    for topics and
    jmsfactory/default/QueueConnectionFactory
    for queues.
    > - What port do I use?
    >
    You use the P4 port (50004 by default for instance number 00) when obtaining the InitialContext with this code:
    java.util.Properties properties = new Properties();
    // set the properties of the connection
    properties.put("Context.INITIAL_CONTEXT_FACTORY", "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    properties.put(Context.PROVIDER_URL, "<Server_Host>:<p4_port>");
    properties.put("Context.SECURITY_PRINCIPAL", "Administrator");
    properties.put("Context SECURITY_CREDENTIALS", "admin_password");
    // start initial context with the properties specified
    InitialContext context = new InitialContext(properties);
    Hope that helps!

  • Access SAP data from xMII 12.1 without RFC or JCO

    Hi All,
    Is it possible to access/get data from SAP in xMII without RFC/ JCO call?
    Let me know if there is other option available..
    Regards,
    Sachin

    Sachin,
    As far my knowledge goes the primarily used forms of achieving MII to ERP connectivity,
    1) MII -- ERP (via RFC, IDOC's, BAPI's)
    2) MII -- PI(XI) -- ERP
    3) MII -- ESR -- ERP (Web-services)
    But, I completely concur with Mike on this, you do not need to create any function modules unless you have no other choice.
    Check this link for List of Bapi's available and their description
    [BAPI List|http://www.sapbapi.com/bapi-list/]
    If none of the BAPI's really meets your requirement then you can go for "RFC_READ_TABLE" this RFC accepts the SAP table name and desired column names. (in a way you will be accessing the SAP DB you are looking for...)
    Yet, if none of the above options suffices your requirement only then you go for writing a custom Function module.
    [Writing Function Module|http://abaplovers.blogspot.com/2008/02/creating-function-module-in-sap-abap.html]
    Good Luck!!
    Regards,
    Adarsh

  • Accessing SAP ECC6 from EP

    Dear All,
    Our Netweaver EP developer is requesting for SAP_ALL to access sap ecc6 system.
    Are there any standard role from sap to support RFC call from Netweaver AS to SAP ECC6.
    in reality the requirement is only to make web based application for editing personal user information.
    Thanks and Regards
    Syed Saifuddin

    Hi Jurjen Heeck
    I think my knowledge is very less so I did not express the requirement in my question.
    Application built on Netweaver EP is a java web based application it can connect with Dev or Qty or Prd.
    But for connecting to any system the Netweaver Server need a username in SAP.
    now during development I can create a user having SAP_ALL in Development System.
    Now the same application need to connect to Quality and then to Production.
    So in Quality I want to restrict the user to only T-Code used in the portal application and those require for RFC communication.
    I want to know is there any standard Role or T-Code so I can assign it to user to run application from EP.
    Regards
    Syed Saifuddin

  • Access SAP BW from Java

    Hello,
    I need to build a Java web application that can collect and display data from various SAP BWs.
    Write operations are not required. What is the easiest way to do that?
    I found that SAP Open Hub Service lets you extract the data to a CSV file or a relational table.
    Assuming I go the way of creating a relational table, the following questions arise:
    - Where are those tables stored? Still within SAP BW or in an external relational DBMS (e.g. an Oracle database)?
    - How can I access those tables from within my Java code (just through a standard JDBC driver)?
    - Who initiates the population of those tables?
    - Can I trigger the extraction at a given time from within my java code?
    - If so, can I hand in filter critera, so that the table is populated only with data that matches my filter, or do I need to extract all data to the relational table and then filter at the next step?
    - Can I have a timer in the SAP BW that creates the table on a certain schedule (e.g. once per day)?
    What other (easier) options are there to achieve this task?
    Thanks,
    MARK
    Edited by: M. Arnold on Aug 17, 2010 9:50 AM

    Mark,
    What you can look at are :
    1. Use a JDBC connector to connect to the database directly - this has some obvious disadvantages because the data would have to be linked with the SID tables , text tables and Dimension tables for cubes which makes the process extremely cumbersome
    2. Use Openhub to extract to a relational table and access the same - possible , but you have two steps in between - openhub to update table and then access the table while maintaining data consistency - this might become a maintenance nightmare once you heavily use this concept
    3. Use web services - there are standard web services like query_view_data and rfc_read_tale which you can use - these web services are SOAP based and you should be able to use the same in your JAVA application
    4. Use the BI JAVA SDK to connect to the backend through an API supported by SAP - this would be easy to use - the SDk should be available on SCN or on the support marketplace and you shoiuld be able to use the same quite easily
    5. Use JCO and build the application using NWDS where you have native connectivity to SAP BW using JCO
    6. Use Web Dynpro JAVA to develop your application where you should be able to access the necessary APIs wherever required.
    Edited by: Arun Varadarajan on Aug 17, 2010 8:15 PM

  • Cannot access sapdb backend from Content Server?

    I am unable to access my sapdb from my Content Server via CSADMIN or with the /ContentServer.dll?serverInfo page.
    I run a Content Server on Unix - version 640, build 16. Here's what I've verified thus far:
    - SAPDB is up and running.
    - x_server process is running
    - apache is running (httpd processes)
    - Standalone gateway on same server is running.
    In the apache error logs I find the following message:
    ErrorDescription: Cannot start Document request, reason: SQLConnect
    failed, [MySQL MaxDB][LIBSQLOD SO][MaxDB] Invalid authorization specification;-4008 POS
    (1) Unknown user name/password combination, Error
    Code: -4008\r\nX-ServerId: server="nwkwcs";serverPort="1090"\r\nX-
    ServerType: SAP HTTP Content Server\r\n
    I had not changed my SAPR3 user or password in the database, so I am confused why this started happening all of a sudden?
    In an attempt to fix, I reset SAPR3 to custom password and ran report
    RSCMSPWS to store the new password in the cs.conf file. However, the
    same error is still a result.
    So, I deleted and recreated SAPR3 based upon SUPERDBA profile with default "SAP" password.  
    Then, I commented out DBNAME and PASSWORD in cs.conf file.  So, it should be using the default SAPR3/SAP login to the database. 
    However, this did not help either.
    I looked at note 706664, however I cannot even get the repositories to a defined status. I cannot connect via CSADMIN?
    Here's an excerpt from the http://server:port/ContentServer/ContentServer.dll?serverInfo page for
    further analysis:
    serverType="SAP HTTP Content Server";serverVendorId="SAPAG";
    serverVersion="640"; serverPatch="0";serverBuild="16";
    pVersion="0046";serverStatus="running";serverDate="2008-07-
    10";serverTime="13:58:28";startUpDate="2008-07-10";
    startUpTime="13:58:20";lastAccessDate="2008-07-
    10";lastAccessTime="13:58:20";
    contRep="Z_EKM_IWBHELP";contRepStatus="offline";contRepStatusDescription="SQLConnect failed, [MySQL MaxDB][LIBSQLOD SO]
    [MaxDB] Invalidauthorization specification;-4008 POS(1) Unknown user name/passwordcombination, Error Code: -
    4008";storageVersion="17";storage="SAPDB";buildLevel="1";contentStorageName="SDB";contentStorageHost="localhost"; security="1";contRepDescription="Content Repository for IWBHELP";
    I am unsure why the Content Server will not connect to the database?
    Points to all helpful answers!
    Thanks,
    Jeff

    Hi,
    How did you resolve this problem ?
    Thanks,
    Hemant

  • Accessing SAP BW from a Third party reporting Tool.

    Hi,
    We are trying to acess SAP BW using a third party tool for reporting purpose.
    We need a url to access SAP BW (something like http://host:13080/sap/bw/xml/soap/xmla
    SAP BW should have fully functional Web services interface (XMLA Standard  protocols)).
    Presently our SAP BW has only ABAP Stack installed and no Java Stack.
    To get a URL as mentioned above do we need a Java Stack to be installed?
    I am not a SAP developer and hence need a confirmation on the above question.
    Some documentation associated would also be usefull.
    Thanks and regards

    Thanks for the response
    May be you are telling abt SAP GUI
    the url for it is like
    http://<fully_qualified_hostname>:<http_port>/sap/bc/gui/sap/its/webgui/!
    But I need to use that URL to connect to SAP BW which needs some XMLA protocol.
    Any suggestions on same..
    Thanks and regards

  • 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

  • Accessing SAP Tables from a Java application

    Hi,
    I know, the forum is called "Web Application Server" but because it's Java question I hope to get answers here.
    I have a small stand-alone Java application that needs to access (read-only) all records from a SAP table. Is there a possibility to do this without writing a BAPI before?
    thanks a lot
    Paul

    Hi Paul,
    You can use JCo to call the standard remote-enabled function RFC_READ_TABLE. There is one annoyance involved with this function, though: each row of data returned is packed into a single string, so you must either specify a delimiter and use e.g. String.split(...) to parse out the column values or use the returned metadata to extract each value based on position and length attributes of the column.
    Another option (although this is usually not allowed in a productive environment) is to establish a direct JDBC connection to the database, thus bypassing the ABAP application layer entirely.
    Regards,
    Thorsten

  • Need to send cookie to non-SAP backend from URL iView

    Hi,
    I have a backend application which takes a cookie for
    (non-SAP) SSO purposes. I have created an URL iView
    in my EP 6.0 SP2 that correctly displays the content
    of that web page, i. e. the login screen.
    However, even when I have a cookie in my browser, it still
    displays that login screen, i. e. the cookie is either
    not sent or not recognized.
    I then created a simple test servlet on a backend server
    that prints the contents of all the HTTP headers. When
    I connect my browser directly to that page, I can see
    the cookie. When I connect my iView to that URL, I
    do not see the cookie. So apparently the iView does
    not send the cookie.
    As I learned, in EP 6.0 SP3 there is a "Fetch Mode"
    property for URL iViews which allow to define whether
    the URL in the URL iView should be retrieved by the
    server or the client. This seems to indicate that in
    SP2, always the server issues that request, which would
    explain why there is no cookie in the request (since only
    the browser holds these cookies). So I presume if I
    would use SP3 with Fetch-Mode set to Client, this might
    work. But then again, this fetch mode is not really
    encouraged by the documentation and only recommended
    if you are really desparate ...
    So the question basically is:
    - are my assumptions above correct?
    - is there a way to have the EP server send cookies to
      my backend systems with SP2?
    I'm a little puzzled that this doesn't work out of the
    box, since my understanding was that SAP SSO tokens are
    also transported to backend systems using cookies, and
    this is supposed to be on by default for EP. So I was
    expecting to see at least the SAP SSO tokens in all
    HTTP requests to backends. Apparently, the world is
    not that easy.
    Any insights would very much appreciated!
    Thanks,
    Matthias

    Additional thoughts:
    In general your assumptions are correct. When using client side fetch mode then the cookie should be forwarded, and I would not expect problems there. When using server side mode then the cookie domain changes and becomes the portal domain, and as a result the cookie is kept in the browser, but is a little useless. I'm not 100% familiar with how we solve this problem when using SSO2 cookie in server side. Yoav, can you elaborate ?
         The reason the documentation was not in favor of client side is because at the time the idea was to encourage the users to use the portal server cache. However, this seems less relevant now, because only the first request will be cached, but not the inner calls of the html page.
         Bottom line - I don't see any issue with using client side, and actually the default in FP is client side. So I would simply modify the iview to use it.

  • How to Create Webtemplate in SAP BI 7.0 without using PORTAL?

    Hi,
    I'm junior consultant sap BI ; I want to do a webtemplate in BI 7.0, but the firm doesn't have SAP Portal.
    I want to know if I can create my web template in BI 7.0, without using a portal? If I can do it, please tell me how!
    Thanks very much!
    Edited by: Gaudenzio on Jul 1, 2009 11:26 PM

    you will have to use WAD3.5 for that - you cannot use WAD 7.0 without having a JAVA Stack or the necessary JAVA Components installed in your app server.
    Then the question would be :
    Even if you do manage to create a WAD7.0 template without a JAVA Stack - you cannot run the same since it required portal...???

  • Restrictive connection to SAP system from J2EE

    Hi,
    I am using NW04s SP15. I have a webservice defined in stateless session bean. In my web service I am connecting to SAP system and doing some processing. If there are too many invocations of this webservice all DIA workprocesses of backend system gets used up and CPU runs into 100%. Is there a way I can restrict the number of connections to backend specifically for my application? This has to be configurable at customer end. It should be such that if configured number of DIA workprocesses is exceeded then application should wait and connect again. It should not throw any exception.
    I do not want something generic for the J2EE engine, but something specific for my application which is deployed on the server.
    Any hints/suggestions would be highly appreciated.
    Best Regards,
    Suparna

    Kumar, in addition to the technical connectivity that Sushma is talking about, if you have security considerations SAP GUI supports SNC, which needs to be configured at both the GUI and server to connect securely.  I believe this only secures GUI communication, so if you have other connections between the systems you'll need to have additional security.
    There are many hardware routers available, at all cost levels, that will allow you to establish a dedicated VPN (virtual private network) and encrypt all communication.  On the extremely low-cost end you can also set up SSL port forwarding for all SAP services (ports 32XX, 80XX, etc), but SSL services have to be enabled on both the front-end and back-end servers.
    If you're using web services or other HTTP services, SAP supports the use of HTTPS.  Those services need to be set up in ICM control (tcode SICF or SMICM, I can't remember off the top of my head).

  • How to access Administration console from OEM without providing any credent

    Hi Experts,
    I have installed OEM 12c Cloud Control and added one WebLogic domain as target. When I am monitoring that target I find links for Administration Console and Fusion middleware control on some target pages. When I click on that link it redirescts me to Administration console or Fusion middleware control. But there I have to provide credentials for log-in. Is is possible to configure OEM in a way that it directly open the Administration console and Fusion Middleware Control without asking the username and password?
    Please guide!!

    Hi Roshni,
    The links are provided for any administration tasks that you might want to do outside EMCC and to ensure you can easily navigate to the correct console given that most customers sometimes have hundreds of domains running. However, a single log-in across all domains monitored in EMCC are not included as part of that navigation as not everyone with access to the WLS monitoring capabilities on the WLS target home page in EMCC would automatically get access to the full administration rights provided in those consoles.
    -Glen

  • Alternative for integrating Portal to Sap Webwas 6.20 (without ITS)

    Hello
    I have a scenario which I should open SAP Transactions from Uwl tasks in Portal, without ITS (as sap Webwas doesnt have embedded ITS).
    I get the following error:
    iView : pcd:portal_content/every_user/general/uwl/com.sap.netweaver.bc.uwl.uwlSapLaunch
    Nome de componente : com.sap.portal.appintegrator.sap.Transaction
    Exception in SAP Application Integrator occured: Application URL ':///sap(ZT01VUxMbEJHNHpWWUIzVyUyQjRZWm5lWnclM0QlM0R1NjYlMkZzcklXQ3Z4WXJPV3g5OXVvVnclM0QlM0Q=)/bc/gui/sap/its/webgui' is not valid! Please check the protocol and host entries for system 'R3_SYSTEM'..
    Is there any alternative for accessing the SAP Transactions in UWL without ITS?
    I tried to change the Uwl XML to call a custom view, but nothing has changed, the result is the same. I changed from:
        <ItemType name="uwl.task.webflow.TS01000096.R3_SYSTEM" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
          <ItemTypeCriteria systemId="R3_SYSTEM" externalType="TS01000096" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchSAPAction" groupAction="" handler="SAPIACLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
                <Property name="IAC" value="WS01000060"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    To:
              <ItemType name="uwl.task.webflow.TS90300030.R3_SYSTEM" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchIView" executionMode="default">
                   <ItemTypeCriteria systemId="R3_SYSTEM" externalType="TS90300030" connector="WebFlowConnector"/>
                   <Actions>
                        <Action name="launchIView" handler="IViewLauncher">
                             <Properties>
                                  <Property name="iview" value="pcd:portal_content/myISRDispatcher"/>
                                  <Property name="openInNewWindow" value="yes"/>
                             </Properties>
                             <Descriptions default="launchIView"/>
                        </Action>
                   </Actions>
              </ItemType>
    Thanks

    Hi Vitor,
    This is not possible.
    If you want to call backend transactions you will need to use the ITS: ITS 6.20 for backend releases with kernel 6.20 (and lower) or the Integrated ITS with kernel >= 6.40. SAP notes 709038 and 325616 can give you more information.
    Best regards,
    Cristiano

Maybe you are looking for

  • Need Help: Not able to invoke fusion crm webservice using SOAP UI

    Hi, I am trying to invoke fusion crm webservice by using SOAP UI, but I am getting Invalid seccurity tocken exception. I have followed below steps specified in the oracle support document. In Soap UI, Go to File>Preferences ,select the "HTTP Settings

  • How do i get adobe flash player on my ipad2

    how do i get adobe flash player onmy ipad2

  • What is the best upgrade path from LiveCycle Designer 8.0?

    Back in June 2010, I developed a website for a client which included some interactive forms created with LiveCycle Designer 8.0 (came with Adobe CS3.) He recently brought to my attention the fact that the data filled in by his customers on the forms

  • Creating a softkey in Call Manager 3.34

    We are currently using a Standard User softkey template. On the On Hook state, the last softkey on our 7960 is blank. Is there a way to reprogram a softkey to be added into a New tor copied emplate. Currently you are limited to what is on the list to

  • Getting IDOC details-function module

    Hi , Is there any function module(importing parameter shld be Idoc No) available to get the IDOC details - Data records There is a urgent requirement 1 To get the details of the idoc-data records 2 To change the data Thanks in advance Regards, Sachin