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.

Similar Messages

  • VB code for connecting to SAP,using some standard bapi to get data to VB

    Do not use capital letters in the subject line, please see rules of engagement before you post any thread in the forum
    Hi ,
    Can anyone plz give code of VB to connect with SAP and Getting data from SAP table using RFC .
    Thks in Advance.
    Subject line edited by: Moderator Mohan Kumar K on Sep 9, 2009 12:23 PM

    This should be of enough help.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/608058b4-81b7-2910-4598-8a66dcdba0a8;jsessionid=(J2EE3417200)ID1155449350DB01489027927965648987End

  • How to connect Openoffice Base with java and retrive data from it?

    I need to retrive data from Openoffice-Base in windows through java. Is there any driver which helps to retrive data from Openoffice-Base.

    [http://tinyurl.com/nfvbbg]

  • Connection between SAP R/3 and SAP XI with RFC

    Hi Experts,
    I am beginner in SAP XI.
    We are using SAP XI 3.0 SP 9 and SAP R/3 4.6 C
    I am trying to validate a connection between SAP R/3 and SAP XI with RFC.
    I followed all the weblogs ,and i did exactly the same way, but I am unsucessful...
    Schema not available Exception
    com.sap.aii.af.service.cpa.CPAException: Schema not available for RFC|3b787a8035c111d6bbe0efe50a1145a5|http://sap.com/xi/XI/System.
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataSAXHandler.endElement(DirectoryDataSAXHandler.java:262)
    at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.endElement(SAXDocHandler.java:154)
    at com.sap.engine.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java:1826)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1722)
    at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2298)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1719)
    at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2701)
    at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:162)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:126)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:136)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:209)
    at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:270)
    at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:331)
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataParser.updateCentralCache(DirectoryDataParser.java:54)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.updateCacheWithDirectoryData(CacheManager.java:713)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:595)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:440)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:145)
    Please help me out on this
    Thanks in advance
    Raju

    hi,
    try refreshing you CAP cache:
    741214 (check this note)
    and check if the refresh was successful
    (CPA history)
    Regards,
    michal

  • Connectivity between SAP ECC system and SAP BI

    Connectivity between SAP ECC system and SAP BI
    Hi BI-experts!
    I would like to load e.g. transaction data from SAP ECC system into SAP BI system.
    The Loading process is hanging in processing step u201CSERVICE APIu201D.
    The process  in hanging in status "yellow" and then changed after a while to status u201Credu201D.
    [0FI_AR_4 |http://www.file-upload.net/view-1447743/0FI_AR_4.jpg.html ]
    The following steps within Load process are yellow and then red:
    Extraction (messages): Missing messages
    Missing message: Request received
    Missing message: Number of sent records
    Missing message: Selection completed
    Transfer (IDocs and TRFC): Missing messages or warnings
    Request IDoc : Application document posted (is green)
    Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
    Info IDoc 1 : sent, not arrived ; Data passed to port OK
    Info IDoc 2 : sent, not arrived ; Data passed to port OK
    Info IDoc 3 : sent, not arrived ; Data passed to port OK
    Info IDoc 4 : sent, not arrived ; Data passed to port OK
    Subseq. processing (messages) : Missing messages
    Missing message: Subseq. processing completed
    DataStore Activation (Change Log) : not yet activated
    Question:
    Can some one tell me whether my distribution model or other settings are wrong?
    I created 2 distribution model (BD64), one from SAP BW system and other from SAP BI system with message types RSRQST, RSINFO, RSSEND
    Thank you very much!

    Hi Holger.
    this issue is related to the RFC but not the one which is communicating from BI to R/3 rather the one which is communicating from R/3 to BI follow these steps.
    1. check your BI system logical name from the myself source system.
    2. go the ECC and run the transaction sm59
    3. go the ABAP Connection folder and search for your RFC which name would be by default as per your BI logical system name.
    4. double click it and edit it now check whether the Target hostname or ip is OK.
    5. In the logon tab check the client number User and password settings.
    Save it and test it with both Connection Test and Remote Logon.
    if every thing work fine i hope your problem will be solved.
    kind regards,
    Zeeshan

  • What User authorization objects needed for connecting to SAP from xMII?

    We eneter a SAP user and password for connecting to SAP from xMII to retrieve the metadata of the incoming IDocs.
    When I specify a user with SAP_ALL user profiles, the IDocs are received properly in xMII. If I specify a user with privileges to run only certain transactions, IDocs are not received in xMII.
    What user authorization objects are needed for this user to connect to SAP from xMII?
    Thanks,
    Sara

    Sam,
    I turned on the SAP System trace for this user and figured out the following auth. objects are required for receiving IDocs in xMII:
    C_TCLA_BKA
    S_RFC
    S_CTS_ADMI
    B_ALE_MAST
    S_IDOCDEFT
    The following auth. object is required for making JCO call to SAP from xMII:
    C_AFRU_AWK
    Thanks,
    Sara

  • Code for connecting to a Microsoft SQL server database

    Hi
    What is the code for connection to a Microsoft SQL server database using JSP? I know the structure of the code but i do not know the driver name. Any importing required besides java.sql?
    Thanks

    Back up there. JSP's should never contain any
    database code. You should write a bean to handle
    database transactions and call that from your JSP.I agree wholeheartedly with that.
    Why didn't you consult google to help you with your
    problem? The answer is on the MS website.
    http://support.microsoft.com/default.aspx?scid=kb;en-u
    s;313100This is correct, too. Isn't Google installed on your machine?
    %

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

  • Code for displaying the elements of ArraList and HashMap

    hi..im new to java ..
    tell me the code for displaying the elements of ArraList and HashMap

    myj-ava wrote:
    wt abt displaying the elments of HashMap?plz..give clear codehey, this is not a code-giving service. This is a forum of volunteers who help others who have specific questions. I find that the greatest help is given to those who have shown that they've put in at least some effort. You have shown none. Please look at the Sun tutorials first, then come back with a specific question if anything there confuses you.

  • Can we connect Mapview to multidimensional database and retrieve data

    I have zero knowledge on MapViewer and hence I am curious to know, if we can connect MapViewer to multidimensional database(Like Essbase etc...) and retrieve data from them ???

    Currently, MapViewer needs a conection to an Oracle Database where MapViewer metadata is stored. You may be able to access external spatial data if there is a java implementation of an interface to access external native data. MapViewer provides a spatial provider implementation for shapefiles. For other data, including from external databases, you may be able to access them if a java class implements the spatial provider interface class. Mapviewer Users Guide has some notes about implementing a external spatial provider.

  • ODC Failed to automatically connect to I/PM system and retrieve data

    Hi all,
    We are getting "
    failed to automatically connect to I/PM system and retrieve data. Please correct the log in settings and reconnect.
    Error: Failed to login. Exception: java.xml.ws.soap.SOAPFaultException: generic error
    Recently we have upgraded our ECM to 11.1.1.8.0 from 11.1.1.6.0
    ODC version is 10.1.3.5.1
    Thanks,
    Nir

    Hi ,
    Recently we have upgraded our ECM to 11.1.1.8.0 from 11.1.1.6.0   It's Typo I think.
    When you are getting this error?
    Are you using IPM commit driver for commiting the document from ODC?
    If yes,did you check connection setting ,is it successful?

  • HT4623 hi i have ipad 2 and i want to connect my external hard disk to transfer data from ipad to directly to external drive?

    hi i have ipad 2 and i want to connect my external hard disk to transfer data from ipad to directly to external drive?

    Only if you have an app and a wifi hard drive like this
    http://www.seagate.com/external-hard-drives/portable-hard-drives/wireless/wirele ss-plus/?cmpid=ppc-_-satellite-_-g-_-us-_-wifi_hard_drive-_-e

  • Creating a external content type for Read and Update data from two tables in sqlserver using sharepoint designer

    Hi
    how to create a external content type for  Read and Update data from two tables in  sqlserver using sharepoint designer 2010
    i created a bcs service using centraladministration site
    i have two tables in sqlserver
    1)Employee
    -empno
    -firstname
    -lastname
    2)EmpDepartment
    -empno
    -deptno
    -location
    i want to just create a list to display employee details from two tables
    empid firstname deptno location
    and same time update  in two tables
    adil

    When I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list.  When I attempt to edit it, I get an error:
    External List fails when attached to a SQL view        
    Sorry, something went wrong
    Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
    I can edit the view in SQL Manager, so it seems strange that it fails.
    Any advice would be greatly GREATLY appreciated. 
    Thanks,
    Randy

  • How to extract data from SAP 4.7 and upload data to SAP ECC 6.0

    Hi,
        How to extract data from SAP 4.7 and upload data to SAP ECC 6.0? Can i use BDC,BAPI,LSMW? Help me please.

    hi
    good
    both works not possible simultaneously.
    If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
    thanks
    mrutyun^

  • HT1364 How do I uninstall Itunes for windows7 without losing my playlists and other data? My library is on another drive rather than the My Music folder?

    How do I uninstall Itunes for windows7 without losing my playlists and other data? My library is on another drive rather than the My Music folder?

    Your iTunes library isn't deleted when you uninstall it, so uninstall iTunes without worrying about this

Maybe you are looking for

  • Section Code for Scrap Sales -

    Dear Friends, We are handling the TCS calculation on scrap sales through withholding tax codes.  Entries are flowing perfectly to finance. But section code is not captured in the billing document. How we will get the section code in sale order or bil

  • Delta in NW2004s

    Hello If I want to make an initial upload from data store object to cube should I select delta in extraction mode? What is the purpose of "Only get delta once"? Thanks

  • My Airport Extreme just stopped working.  The message says ethernet cable not plugged in, but it is.  Cable modem works fine.  Is this a common problem?

    My 2-year-old Airport Extreme instantly stopped working last night and is flashing the status light.  The problem description is that the ethernet cable is not plugged in... however, the ethernet cable is still plugged into the cable modem.  I checke

  • Help :  I cant use my caps lock

    My cat walked my keyboard. Then  my problem started. I can not hide keyboard & Cahracter Viewers in menu bar. So I cant use caps lock key. I tried to reset,,,  but did not work. Please advise me...  :-(

  • Match a PO to existing Invoice

    I am trying to match PO to an existing Invoice. Queried the invoice clicked on Match button and in  "Find Receipts for Matching" I have populated the PO#, Line# Shipment and Receipt Num#. After saving it gives a message no changes to save. How can I