Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP with JAVA

Former Member
0 Kudos

hi all

how to integrate ABAP with JAVA?? Can anybody send me any link on that or any documents???

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

some useful links are:

1) http://help.sap.com/saphelp_nw04s/helpdata/en/18/da766aaf5311d6b29f00508b6b8b11/content.htm

2)http://www.sapjava.com/

3)

http://java.sys-con.com/read/47362.htm

4)https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/0067dcfa-5f28-2a10-5094-cf72b4ed5065 [original link is broken]

5 REPLIES 5

Former Member
0 Kudos

hi,

1)

Can I integrate Java and ABAP components in the scope of an application?

Of course, you can combine Java and ABAP components in your systems. There are several technologies enabling reliable data exchange between them, like SAP Java Connector (SAP JCo), SAP Java Resource Adapter (SAP JRA), web services, and SAP Exchange Infrastructure (SAP XI) to name some.

2)

Can I run an ABAP transaction from within Java?

Yes. In this scenario, Java components, like Web Dynpro for Java or EJB session beans, demarcate an ABAP transaction. For example, the BAPI technology is providing appropriate interfaces.

3)

Can I access ABAP and Java data in the same database transaction? Are there distributed transactions available over both Java and ABAP database schemas?

Distributed transactions, like JTA, spanning both Java and ABAP stacks are theoretically possible - that is if the all involved Java resources are XA-able. Nevertheless, we have not tested such scenarios sufficiently and thus do not support them in general.

4)

Where should I store database tables of my combined ABAP/Java system?

The important information here is: Please keep the database storage of your Java- and ABAP-based components separate:

ABAP components access database tables stored in the “ABAP” database schema.

Java components access database data stored in the “Java” database schema.

Best, there is one database instance keeping both ABAP and Java schemas, namely the database instance that is already pre-configured during the SAP Web AS installation.

5)

Can my Java program modify data in the ABAP database schema?

The important constraint is: In general, Java components do not access tables stored in the ABAP schema directly, via persistence APIs (for example, JDBC). Analogously, ABAP components cannot manipulate data in the Java schema.

Don’t worry: Of course, Java components can read or modify data in the ABAP schema. But rather than accessing table data directly, they are intended to go around: In the Java code, you apply the application-level APIs (like SAP Java Resource Adapter API, web services, Adaptive RFC for Web Dynpro UIs) and ask the ABAP component to do the work on the database.

6)

Why does SAP provide a separate persistence framework for Java instead of simply enlarging the existing Open SQL for ABAP framework?

There are some major reasons why SAP has decided to introduce the separete Java persistence framework "Open SQL for Java.“ Not surprisingly, the highest priority has been to preserve the well-proven stability and reliability of the database access from within ABAP applications - now running on the common SAP Web AS platform.

In addition, the alignment of the Open SQL twins differ a little bit. As SAP’s own framework, Open SQL for ABAP is perfectly tailored to achieve an efficient and reliable database access. In contrast, Java applications running on top of SAP Web AS will comply with J2EE and other popular Java standards. This results in slight differences in the database access area, for example in regard to supported portable data types, DML statements, and other ABAP-specific optimizations not available for Java.

7)

Does SQL on the Java side feature the same expressiveness as SQL for ABAP?

Yes. The SQL set available to Java components is even more expressive. For example you can use Unions and expressions as well as queries in SET clauses of UPDATE statements.

Background: The supported, portable SQL set for Java, called “Open SQL Grammar,” comprises a subset of the SQL 92 standard almost identical to the SQL 92 Entry Level limited to queries and changing (DML) statements. In addition, Open SQL Grammar contains some important JOIN variants (INNER JOINs and LEFT OUTER JOINs with slight limitations) as well as the SELECT … FOR UPDATE statement. You can use the SELECT … FOR UPDATE statement to select separate table rows with an exclusive database r/w lock. Please refer to the SAP Web AS documentation for a comprehensive description of the Open SQL Grammar.

Moreover, there is also a possibility of activating the whole SQL set supported by the proprietary JDBC driver. For example, you can switch the check-off for a specific statement. Namely, the Open SQL for Java framework is checking your code against Open SQL Grammar only if you use connection pools labelled “Open SQL.” If required, you could configure and access connection pools labelled “Native SQL” or “Vendor SQL.” In the both cases, your SQL statement gets forwarded “as is” to the target JDBC driver. Please note that we do not recommend this scenario because it affects the portability (and thus the valuable “out of the box” feature) of your database access implementation.

Because SAP strongly focuses on adhering to standards for Java, SQL for Java doesn’t support the proprietary SQL enhancements available in ABAP. Also, on the ABAP side there are some SQL statements available that are closely tied to the features of the ABAP language - for example the integration of high performing “internal” tables - not defined in the Java standards.

😎

Can I use my ABAP namespace for the Java development of database objects?

Yes. Your ABAP namespaces have been automatically reserved for your Java development. The only thing you are asked to do is to contact SAP and confirm their usage for the Java development.

9)

ABAP and Java Dictionary data type system in comparison...?

The type system in Java Dictionary is more flexible and effective (as demonstrated in answers to more detailed questions, please read on).

10)

Does Java Dictionary provide the same built-in, pre-defined portable types as ABAP Dictionary?

No. For example, the types CUKY, QUAN, CLNT, and ACCP aren’t available in Java. The types DATS and TIMS do not directly correspond to the JDBC types DATE and TIME (the types DATS and TIMS in the ABAP dictionary are simple; whereas the JDBC types DATE and TIME are mapped to timely database types). In contrast, the Java Dictionary types "date“ and "timestamp“ are not available in the ABAP dictionary.

Background: The built-in types of Java Dictionary map to standard JDBC types. They are proven to behave identically on each supported DBMS platform.

11)

Dictionary editors ABAP and Java: Functionality and handling by comparison. Has the ABAP domain concept been propagated to Java?

Based on the pre-defined, build-in types, in both dictionaries you can define your own portable types: ABAP - “data elements and domains,” Java - “simple types.” The concepts similar to “data elements” and “domains” in ABAP Dictionary are the “simple types” in the Java Dictionary. For a simple type, you can define the value range and some extra properties, for example the default value. You can maintain texts that can be displayed on the user interface (Dynpro or WebDynpro). You can further cut down the possible value range of a simple type by specifying format defaults for the user interface and by specifying the minimum and maximum field length or width.

Change documents and conversion exits are not available in Java.

In both the Java Dictionary and ABAP Dictionary you can maintain fixed values.

In Java Dictionary you can apply the type derivation.

13)

Tables/Structures

The properties of tables/structures are very similar in both dictionaries. The function range in ABAP regarding tables is bigger because of technical settings, index properties, and some additional features concerning the transport of table content (in the ABAP Dictionary you can define a table along with its content).

The life cycle support for database objects is very similar in Java and ABAP. Initially objects are defined and then they are transferred into a proved state by activating (in ABAP) and by saving (Java). Because of the different development environments deployment and transport has conditional differences (e.g. R/3 transportation in ABAP <-> CMS and SDM in Java).

Former Member
0 Kudos

Hi

Welcome to SDN forum

After the ECC6.0 Version Most of the JAVA things are integrated in Netweaver components like BSP,WAS, XI and Enterprise Portals etc

So if you are good in JAVA these things are very useful and through this you can easily integrate JAva with SAP

see the links

See the Links

/message/527697#527697 [original link is broken]

And after you are done with the documentation probably you can go through this scenario,

Also check the following threads which might help you a little more,

Also for more info related to XI go through these links:

XI -Starter

http://help.sap.com/saphelp_nw04/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm

SAP XI - Where to Find Information

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/sap%20xi%20-%20...

All the information you need in XI :

http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm

To understand the architecture of XI, Please go through this link:

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

You can also go through the url for Elearning :

https://www.sdn.sap.com/sdn/elearning.sdn // https://www.sdn.sap.com/irj/sdn/sdnpilot/elearning

Following is the link for 'how to guides', A step by step guide to create scenarios:

https://websmp201.sap-ag.de/nw-howtoguides

XI is all about configuration of Adapters, to learn more please go through this link:

http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm

One of the most powerful feature of XI, Business Process Management:

http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm

Following are the links to weblogs which will help to develop the basic scenarios.

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File

/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - File to ABAP Proxy

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address

/people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi - Message Flow in XI

/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM

/people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM

/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge in ccBPM

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge in ccBPM

/people/michal.krawczyk2/blog/2005/08/22/xi-maintain-rfc-destinations-centrally - Maintain RFC destination centrally

/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder

/people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party - Handling different partners for IDoc

/people/siva.maranani/blog/2005/08/27/modeling-integration-scenario146s-in-xi - Modeling Integration Scenario in XI

/people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible - Testing of integration process

/people/michal.krawczyk2/blog/2005/05/25/xi-how-to-add-authorizations-to-repository-objects - Authorization in XI

http://help.sap.com/saphelp_nw04/helpdata/en/58/d22940cbf2195de10000000a1550b0/content.htm - Authorization in XI

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi - Call UNIX Shell Script

/people/sravya.talanki2/blog/2005/11/02/overview-of-transition-from-dev-to-qa-in-xi - Transport in XI

/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File

/people/sap.user72/blog/2005/11/17/xi-controlling-access-to-sensitive-interfaces - Controlling access to Sensitive Interfaces

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - The same filename from a sender to a receiver file adapter - SP14

/people/prasad.illapani/blog/2005/11/14/payload-based-message-search-in-xi30-using-trex-engine - Payload Based Message Search in XI30 using Trex Engine

/people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i - XI : Configuring CCMS Monitoring for XI- Part I

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter - XI: HTML e-mails from the receiver mail adapter

/people/sap.user72/blog/2005/11/22/xi-faqs-provided-by-sap-updated - XI : FAQ's Provided by SAP

1) How-to Guides for SAP NetWeaver 2004 for SAP XI:

[original link is broken]

Regards

Anji

Former Member
0 Kudos

hi,

some useful links are:

1) http://help.sap.com/saphelp_nw04s/helpdata/en/18/da766aaf5311d6b29f00508b6b8b11/content.htm

2)http://www.sapjava.com/

3)

http://java.sys-con.com/read/47362.htm

4)https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/0067dcfa-5f28-2a10-5094-cf72b4ed5065 [original link is broken]

Former Member
0 Kudos