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: 

Regarding ALE

csyadlapalli
Explorer
0 Kudos

Dear all,

I am very new to ALE. I know all the concepts. But i got one doubt. I am having one requirement, we are using ECC 6.0 system. client having a Java application, there they will create POs. We need to capture that data in SAP. Which way is best one?? Whether Java supports BAPIs, if we go for ALE, do we need any middle ware??

Please provide the details ASAP.

Thanks in Advance,

Chandra.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Since the source is a custom application, the suggested method would be using a BAPI. ALE is best when two SAP applications are talking...otherwise, mapping the idoc structure with data would be mean a lot of effort on the Java development(positions would be hard-coded etc.)

Many corporates don't allow all applications to link directly to their SAP boxes, in such cases, all connections need to be routed thro' a middleware. Otherwise, yes a java application can call a BAPI on SAP.

Regards

4 REPLIES 4

Former Member
0 Kudos

Hi,

Since the source is a custom application, the suggested method would be using a BAPI. ALE is best when two SAP applications are talking...otherwise, mapping the idoc structure with data would be mean a lot of effort on the Java development(positions would be hard-coded etc.)

Many corporates don't allow all applications to link directly to their SAP boxes, in such cases, all connections need to be routed thro' a middleware. Otherwise, yes a java application can call a BAPI on SAP.

Regards

guillaume-hrc
Active Contributor
0 Kudos

Hi Chandra,

There is a piece of middleware that is well know by Java programmes: the SAP Java Connector (JCo).

With JCo, Java is able to communicate with SAP :

- synchronously / asynchronously

- simple connections / pool of connections

Besides, you can either call RFC Function Modules (including BAPIs) or send Idocs (thus, ALE) to SAP.

The last choice depends greatly on your requirements. Usually, when you have to be synchronous, you go for BAPI. With IDocs, it is far easier to re-process things when they have gone wrong...

Best regards,

Guillaume

Former Member
0 Kudos

On either case you will need a Java connector. For more information look at:

<a href="http://service.sap.com/connectors">External Connectors</a>.Read the overview for Java connector.

One you have established the connection, you can call BAPIs directly from your JAVA application.

If you need further info let me know..

Former Member
0 Kudos

Hi Chandra,

As per my analysis of your requirement BAPI would suite best, if you go with ALE, u need to use external connectors and they may not be synchronous with your applications, whenever you are trying to use external applications BAPI will be very much suitable.

Regards:-

Santosh.D