ABAP Java connectivity

Hi ABAPers,
I want to have a sample program for SAP Java connectivity. I know SAP has a JCo but how to go about it. We have another system which needs to communicate with SAP 4.6C. Also, I would like to know whether while reading tables from other system, can this program update our tables.
Thanking you.

Hi,
To use JCo, download it (including the Javadocs) from http://service.sap.com/connectors. The zip file contains a comprehensive tutorial to program using JCo. You can also take a look at the FAQ on JCo at http://www.sapgenie.com/faq/jco.htm for more information.
If you just want to take a look at the sample code, you can download the tutorial from http://zerone.samcheok.ac.kr/Asp_pr/Language/.%5Cuploadfile%5CJCo%20Tutorial-1.pdf
You can definitely use JCo to update tables in SAP. You will either have to call an existing BAPI, or an RFC FM to do so.
Hope this helps. Let us know if you need further assistance.
Regards
Message was edited by: Shehryar Khan
Message was edited by: Shehryar Khan

Similar Messages

  • CRM (Abap + Java) connect with WAS (Abap + Java)

    Hello collegues,
    i have installed Netweaver 7.0 with Enterprise Portal.
    Now i must connect
    WAS with CRM system, but i do not what i have to connect ABAP - ABAP parts (RFC connection type TCP) or Java - Java parts (in visual admin in JCo) or ABAP - Java ( no idea how)? Which users are using for?
    The second task -
    i have tryed to create some user in portal but got message "error in persistence"?
    In useradmin in EP i saw that standart users from R/3 Abap are there. May be i fogot to set something after installation?
    Thank you very much for any idea.
    Julia

    Hi Julia,
    for CRM you don't need to "connect" the Portal (Java) with the CRM (ABAP) system.
    It is "just":
    - import of the CRM Business Package
    - definition of a system in the portal pointing to the CRM
    - setup of SSO (if you want SSO)
    The error with the persistance:
    You already have connected the Java UME to the ABAP system. In the ABAP you have a user called "SAPJSF" - this user has only read permission on the users. You have to assign another role to that user: SAP_BC_JSF_COMMUNICATION instead of SAP_BC_JSF_COMMUNICATION_RO
    Hth,
    Michael

  • ABAP+JAVA - Java-addon does not seem connected

    Hi,
    I messed around with this new system a month ago and now that I finally got back to it the JAVA part don't seem to be working or the SCS instance is not connected to the Central Instance.
    The SCS instance seems to be running fine.
    Some questions:
    1. In t-code SM51, should you be seeing any reference to the SCS/JAVA instance?
    2. The <b>Central Instance number is 08</b>. The S<b>CS number is 10</b>. So I should be able to connect to the java part by browsing to http://hostname:51000 or not? (I get a page cannot be displayed)
    3. When I for example trying opening the Solution Manager Diagnostics from the SAPGui the Internet Explorer window that opens try to browse to http:/hostname:8008/xxxxxxxxx . Should it not go to port 51000?
    4. Is it correct that the Default parameter  rdisp/msserv_internal = 2008 and that the SCS instance one = 3910?
    5. Any other advice or ideas on how I can troubleshoot this?
    Many thanks!

    Hi,
    some answers:
    1. No
    2. no. On the Java SCS only Java Message Server and Java Enqeue Server are running. Try http:/host:8108/msgserver you should get an answer from the Java Message Server because its http port is 81$$
    3. not neccesaryl. In an ABAP+Java System the ICM distributes HTTP request between ABAP and Java world. 80$$ is the default http port if ICM. Without any URL prefix the ICM should redirect to the Java Dispatcher. When the URL has a prefix starting with sap, e.g. http://host:8008/sap/public/info its going to the ABAP side.
    4. you find default ports at http://service.sap.com/security > Security in Details > Infrastructure. There should be a pdf called TCP/IP ports used by SAP software or something similar.
    5. what do you want to troubleshoot? Everything seems to be fine
    Regards,
    Sascha

  • AS ABAP & AS JAVA Connection

    Hi,
    I had installed ABAP on different host with different SID and JAVA on a different host with different SID.
    Please if someone can help me in setting up the connection between ABAP & JAVA Engine so that in SMICM, it shows J2EE Engine configuration true and Operational True.
    Regards
    Malay

    Hello, this is not possible. If you install a java system on a different server with a different sid as the abap system, the smicm is not involved for starting/stopping the j2ee. only if you have a addin installation. in your case stop/start java and abap seperate.
    regards,
    alexander

  • Abap-java stack connectivity

    Hello,
    i have a BI 7 system - abap+java stack
    the java stack is supposed to be configured to work against client 001 in the abap system
    apperently this is not the case
    usually it is configured from the http://<host>:<port>/nwa ->identity management but i can't login to the java/portal - the login screen is jumping again and again no matter which user name i put
    can anyone advise where is the java client in the abap stack (usually 001) is configured?
    Regards,
    Moshe

    Hi,
    Yes for default Central Services Installation the java stack will point to 001 client.
    Just check the certificate in the key store(in visual admin), this error generally occurs when the certicate gets expired. If it is the case then delete the certificate and create an new one then import the certificate in the abap stack.
    Regards,
    Vamshi.

  • SSO To J2EE engine of ABAP+JAVA Addin Install

    Hi all,
    I have setup an SAP system as a ABAPJAVA Addin Install.  The system is running NW04s SP11.  I have an SAP Portal installed on the JAVA side to support some BW functions.  I would like to do SSO from the users desktop directly to the portal component.  Is this possible with this type of install?  I have setup Kerberos / SPNego with a JAVA only install connected to a Microsoft ADS.  I have also configured the system to use MYSAPSSO2 tickets from another SAP system, but that requires the users to go to the other SAP system before going to ABAPJAVA Addin system.  I would like the users to go directly to the ABAP+JAVA Addin system via a URL like http://server:port/irj/... and get single signed on to the system.  Is this possible?
    Any help is appreciated!
    Russ Scherbarth

    Hello Russ,
    yes it is possible to configure SSO using SPNego Loginmodule (Kerberos) for this type of system as well. You also can use the SPNego configuration wizard to get the configuration work done, but you need to perform some manual follow up work as well.
    So my recommendation is check the online documentation for wizard based configuration AND manual configuration, perform the wizard based configuration (more or less the same as you did for the other system) and afterwards (depending on your JDK) you might have to perform some manual follow up activities.
    Select as user resolution mode prefixbased, the attribute to be used is uniquename. In addition you need to create the service user in the portal database (when using SUN JDK), as you do not have direct connection to Active Directory.
    With best regards,
    René

  • Error Deploying DictionaryProject to NetWeaver 7.0 SR2 ABAP-Java-Trial

    Hi,
    I built a simple DictionaryProject with Netweaver Developer Studio. Only one table with an ID-KeyColumn.
    But deployment to NetWeaver 7.0 SR2 ABAP-Java-Trial-VMWare failed with following error:
    Feb 11, 2008 11:43:30... Info: E R R O R ******* (DbColumns)
    Feb 11, 2008 11:43:30... Info: 23:43:30 2008-02-11 dbs-Error: Table BC_DDDBRTH: Error during reading of columns from db
    Feb 11, 2008 11:43:30... Info: E R R O R ******* (DbColumns)
    Feb 11, 2008 11:43:30... Info: 23:43:30 2008-02-11 dbs-Error: Caused by: DB2 SQL error: SQLCODE: -443, SQLSTATE: 38553, SQLERRMC: SYSIBM.SQLCOLUMNS;COLUMNS;SYSIBM:CLI:-805 Stack trace: com.ibm.db2.jcc.a.SqlException: DB2 SQL error: SQLCODE: -443, SQLSTATE: 38553, SQLERRMC: SYSIBM.SQLCOLUMNS;COLUMNS;SYSIBM:CLI:-805
    The trial is runnign DB2 on SLES
    Thank you,
    Josh

    Hi Josh,
    please apply note 823019 .You need to logon as user db2<sid>  and run:
    cd sqllib/bnd                     # UNIX
    db2 connect to <sid>
    db2 bind db2schema.bnd blocking all grant public sqlerror continue
    Regards
                  Frank

  • NWBC 2.0 logon failure to ABAP/JAVA stack system

    Hi,
    Maybe not the correct forum, but there isn't any for the NWBC.
    I am testing the Netweaver business client 2.0. It seems to work fine for portal connections, but when i try to connect to a netweaver system (abap+java) using the internal ITS url (http://host:8000/sap/bc/gui/sap/its/webgui), i get an error saying:
    Could not open the logon window on server <host> (server URL http:// <host>:8000/sap/bc/gui/sap/its/webgui, logon URL http://<host>:8000/ticketissuer/TicketIssuer?NWBC_avoidCache=460486210'); check if the URL is valid and the server is running
    The URL works fine on the NWBC 1.0. Is there something significantly changed in 2.0? Does the 2.0 version only accept portal URLs? I can't find any documentation on this.
    regards,
    Bas

    hi,
    There might be problem in Properties in the Connection Sections
    Also see the below documentation as i dont know what parameters you might have given for configuring.
    [Configuring NWBC|http://help.sap.com/saphelp_nw70/helpdata/en/46/5549df9d3651eae10000000a114a6b/content.htm]
    [Adjusting properties. |http://help.sap.com/saphelp_nw70/helpdata/en/46/554a149d3651eae10000000a114a6b/content.htm]

  • Whats the difference between ABAP stack, ABAP+Java stack and Java stack

    Hello,
    I have a nagging doubt about the difference between the ABAP stack, ABAP+Java stack & the Java only stack. I believe that the method of applying the kernel for all the 3 types is different.
    Also can we apply the ABAP support packs through JSPM.
    Please put some light on this.
    Thank you

    Hi Zaheer
    ABAP Stack
    AS ABAP is used to provide the ABAP foundation of SAP NetWeaver.
    Part of AS ABAP is the Search Engine Service (SES), which enables users to search for
    business objects using Search and Classification (TREX). SES accesses Search and
    Classification (TREX) functions through the Search and Classification (TREX) ABAP
    client. SES replicates the business objects from the ABAP application to Search and
    Classification (TREX), so that it can apply Search and Classification (TREX) search
    functions to them. When a user enters a search query, the Search and Classification
    (TREX) system responds to it, not the database for the ABAP application. For more
    information, see the document Installation Guide – SAP NetWeaver TREX Single Hosts /
    Multiple Host.
    Java stack
    AS Java is used to provide the Java foundation of SAP NetWeaver. Among the key
    capabilities of AS Java are:
    • J2EE Engine – a J2EE 1.3-compliant application server for running enterprise
    applications. In addition to the pure J2EE standard technologies, the J2EE
    Engine implements complementary technologies, such as Web Dynpro or Web
    Services, that are targeted at supporting large-scale, real-business application
    development projects.
    • SAP Composite Application Framework Core (CAF Core) is a service-oriented
    architecture for building and deploying composite applications. It enables
    modeling of different service types – entity services that represent a domain
    model, application services that implement business logic, and external
    services that offer connectivity to back-end services by means of remote
    function calls (RFCs) or Web services. Usage type AS Java comprises the CAF
    Core runtime environment, while design time tools are part of the SAP
    NetWeaver Developer Studio.
    • Web Dynpro is the user interface technology for developing professional
    business applications for mobile as well as for desktop clients. Web Dynpro
    applications can easily be integrated into SAP NetWeaver Enterprise Portal,
    providing a unified layout for the end user as well as enhanced navigation
    support. Web Dynpro also allows, for example, the development of interactive
    forms using the Adobe document services.
    • Adobe document services is a set of runtime services that provide a range of
    form and document creation and manipulation functions such as:
    • Converting XML form templates (created using Adobe LiveCycle Designer)
    to PDF and various print formats
    • Setting Adobe Reader rights to enable users to fill in and annotate forms,
    save and print them locally, and include digital signatures for authentication
    using the free Adobe Reader software
    Extracting data from SAP applications into Interactive Forms and transferring form data
    back into SAP applications using XML
    ABAP + Java Stack
    Contains both functionalities.
    I hope this helps
    Regards
    Chen

  • Change IP address on ECC6 (ABAP + JAVA stack)

    Hi all,
    we need to change the IP address of our server running an ECC6 with double stack (ABAP & Java). Also the DB is in the same server (it's a Demo IDES system).
    The computer's name will remain the same as previously.
    In the HOSTS file we have updated the new IP address.
    Are there some other manual corrections needed ?
    Is ther something to be adapted in the J2EE admin of config ?
    Thanks in advance.
    Andrea

    Hi,
    I have looked into OSS note:
      Note 757692 - Changing the hostname for J2EE Engine 6.407.0 installation
    It is mainly related to host name than IP address.
    Looking into the log file server.0.log I see:
    Thread[impl:5]_51##0#0#Error#1#com.sap.engine.core.service630.container.ServiceRunner#Plain###Service com.sap.security.core.ume.service error.
    Nested exception is: com.sap.engine.frame.ServiceException: <--Localization failed: ResourceBundle='com.sap.engine.frame.KernelResourceBundle',
    ID='UME initialization failed.', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key UME initialization failed.
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:372)
         at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Caused by: com.sap.security.core.persistence.datasource.PersistenceException: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=*192.168.0.112* SYSNR=00 GWHOST=192.168.0.112 GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       partner '192.168.0.112:sapgw00' not reached
    The actual IP address il 192.168.3.128. I do not understand where the 192.168.0.112 (the previously IP addres) comes from.
    May be there are some manual adjustment in Java parameters or RZ10 or SM59.
    Any suggestions are welcome.
    Thanks
    Andrea

  • Link User Management ABAP-Java Stack

    Hello everybody,
    we have a WAS 6.40 ABAP+Java running. In client '000' if i create a new user, this user is also available at the java stack of the WAS. But if i create a new user in client 'XXX' (a copy of the client '001') it does not show up at the Java Stack. So there has to be some customizing settings i missed to set. Anyone can give me a hint?
    thx
    Markus

    hi.
    First you'd better not use client 000 when install java engine.
    u should copy a client from 000, when intallation 
    java engine, use this client, when ask you to input client and ddic password.
    But if you have do so, just copy the client. and maintain the configuration in Visual Administrator.
    1. In the left frame choose Server - Services - Configuration Adapter
    2. In the tab Display Configuration (right frame) choose Switch between view and edit mode to activate the edit mode.
    3. Choose cluster_data- server - cfg - services - Propertysheet com.sap.security.core.ume.service
    4. Choose Show the detail of the selected node
    5. The parameter ume.r3.connection.master.client must be set to your SAP ABAP client. Adapt the value if
    necessary.
    wish it helps
    best Regards
    Sheng
    Message was edited by: Sheng Wang
    Message was edited by: Sheng Wang

  • Installation error ABAP + JAVA Stack

    Hi all,
    I am trying to install ABAP+Java server and i am facing the below issue.Can you please help me in resolving this.
    Hard Disk:-200 GB
    RAM:-2GB
    Log file 1:-
    ERROR      2010-01-28 17:32:12
    CJSlibModule::writeError_impl()
    CJS-30023  Process call 'C:\usr\sap\EP1\SYS\exe\uc\NTI386\dipgntab.exe -rwr40 -srctt DDNTT -srctf DDNTF -dsttt DDNTT -dsttf DDNTF -ttonly TT' exits with error code -1.
    For details see log file(s) dipgntab.log.
    ERROR      2010-01-28 17:32:12
    FCO-00011  The step adjustNametab with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|
    0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_MSS|ind|ind|ind|ind|2|0|adjustNametab was executed with status ERROR .
    INFO       2010-01-28 17:33:45 [iaxxgenimp.cpp:782]
               showDialog()
    An error occured and the user decide to stop.\n Current step "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|
    NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_MSS|ind|ind|ind|ind|2|0|adjustNametab".
    INFO       2010-01-28 17:33:45 [synxcpath.cpp:776]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04S\SYSTEM\MSS\CENTRAL\AS\__instana_tmp.xml.
    Exit status of child: 1
    ERROR 2010-01-28 17:37:28
    CJS-30023  Process call 'C:\usr\sap\EP1\SYS\exe\uc\NTI386\dipgntab.exe -rwr40 -srctt
    DDNTT -srctf DDNTF -dsttt DDNTT -dsttf DDNTF -ttonly TT' exits with error code -1. For details see log file(s) dipgntab.log.
    ERROR 2010-01-28 17:37:28
    FCO-00011  The step adjustNametab with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|
    NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_MSS|ind|ind|ind|ind|2|0|adjustNametab was executed with status ERROR .
    WARNING 2010-01-28 17:37:28
    Execution of the command "C:\usr\sap\EP1\SYS\exe\uc\NTI386\dipgntab.exe -rwr40 -srctt
    DDNTT -srctf DDNTF -dsttt DDNTT -dsttf DDNTF -ttonly TT" finished with return code -1.
    Output: ERROR in initialization (can't get R/3-version)ERROR in initialization (can't get R/3-version)
    C:\usr\sap
    D00\log\SLOG00.LOG: No such file or directoryrslgwr1(20): rstrbopen cannot open pre-existing
    SysLog file.C:\usr\sap
    D00\log\SLOG00.LOG: No such file or directoryrslgwr1(11): rstrbopen cannot open
    SysLog file.SysLog:iE1020100128173728000000000000??this TTY?user?            :?tc?
    Log FIle 2:-
    WARNING    2010-01-28 17:32:12
               CJSlibModule::writeWarning_impl()
    Execution of the command "C:\usr\sap\EP1\SYS\exe\uc\NTI386\dipgntab.exe
    -rwr40 -srctt DDNTT -srctf DDNTF -dsttt DDNTT -dsttf DDNTF -ttonly TT" finished with return code -1. Output:
    ERROR in initialization (can't get R/3-version)
    ERROR in initialization (can't get R/3-version)
    C:\usr\sap
    D00\log\SLOG00.LOG: No such file or directory
    rslgwr1(20): rstrbopen cannot open pre-existing SysLog file.
    C:\usr\sap
    D00\log\SLOG00.LOG: No such file or directory
    rslgwr1(11): rstrbopen cannot open SysLog file.
    SysLog:iE1020100128173212000000000000??this TTY?user?     
          :?tc?
    Thanks & Regards,
    Lokesh Kamana.

    Please execute R3trans -dv and post trans.log here. It seems there is problem with connection to DB.

  • Abap+java stack for Portal 7.0 and MI - User Data Source

    The SAP pre-requisites for Portal and MI (Mobile Infrastructure) 7.0 is an ABAP and Java Stack. If you install an AS ABAP + Java, the UME is automatically set up to use the ABAP user management of the same AS installation. What does this mean? The user store will be created in ABAP, for both the Portal and MI.
    The impact of this is portal users management is in ABAP. This configuration by design cannot be connected to LDAP Active directory for user authentication.
    Please let me know , if some body had already face similar issue and come up with the solution.  Thanks in advance.

    Hi Surya ,
    When you install portal or any NW component with ABAP stack , ABAP stack hold precidence over the JAVA Stack , refer to this link to have more idea on this .
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/306bb5bc98f24f8a85d489449af456/frameset.htm--
    http://help.sap.com/saphelp_nw04s/helpdata/en/12/7678123c96814bada2c8632d825443/frameset.htm
    Thanx
    Pankaj

  • Webdynpro ABAP & JAVA step by step example

    hi experts,
    i am new in webdynpro. i want to learn webdynpro so any one plz help me how to create,how to install,connect,and how to execute plz send any documents for webdynpro ABAP & JAVA step by step examples with screen shots.it's really helpful for my carrier.
    thanks and regards,
    sapbbm.

    Hi Bala,
    Go through the below link,
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
    Here u can find 6 tutorial applications on Webdynpro Abap with step by step procedure, Using this u can start of with Webdynpro from the basics.
    Along with this u can find good documentation in,
    http://help.sap.com/saphelp_erp2005/helpdata/en/f6/501b42b5815133e10000000a155106/frameset.htm
    Hope this helps,
    Regards,
    Sachidanand.B

  • Webdynpro ABAP & JAVA step by step example with screen shots

    hi experts,
    i am new in webdynpro. i want to learn webdynpro so any one plz help me how to create,how to install,connect,and how to execute plz send any documents for webdynpro ABAP & JAVA step by step examples with screen shots.it's really helpful for my carrier.
    thanks and regards,
    sapbbm.

    hi bala,
      check out this URL you have 41 sample codes and PDF of Webdynpro for JAVA.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Thanks
    Gopi

Maybe you are looking for

  • EJB 3.0 Local References

    I have an EJB module that contains a session bean, MasterBean, with a local interface MasterLocal, packaged in an EAR file. I am trying to look up a reference to MasterLocal in a regular Java class in the same EAR file. I am able to look up the Maste

  • Vendor Evaluation Plant Wise

    Hi Experts, We have a problem, we have multiple plants against one purchase organisation. When we are doing vendor evaluation, system gives evaluation report at purchase organisation level, but we want vendor evaluation at plant level. How can I get

  • WRE54G doesn't work with PS3...

    Hello, I bought yesterday the range expander WRE54G because I would like to expand my WiFi singal and make it accesible to my PS3. I configured de range expander and it works fine with all my electronic gadgets with WiFi, but it doesn't work with PS3

  • I have 2 accounts and want to streamline

    I have purchased apps, songs and books using 2 Apple ID's. I want to eliminate one of the accounts. I would like to eliminate the account with the fewer number of purchases. I would not mind repurchasing the songs/apps if I need to. How can I make a

  • Pass structure, internal table from workitem to BSP

    Hi All, I have a requirement where a BSP application is to be called from the workitem. How can i pass a structure or an internal table from the workitem to the BSP application?