Application Development and Automation 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: 
Read only

How to integrate JAVA front end with SAP

Former Member
0 Likes
1,963

Hi All,

Presently we are using BSP's for integration with SAP .Now all we there is a need for us to remove BSP Applications and moving to JAVA front end.

can you please let me know the approach in which we can integrate SAP and Java Fron end.

Please let me know the basic steps that needs to be done.

Regards.

Rohit..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,146

i am not aware indepth but basically we will intergrate through BAPI's to ABAP from JAVA. You can use object and method in java to call bapi.

10 REPLIES 10
Read only

Former Member
0 Likes
1,147

i am not aware indepth but basically we will intergrate through BAPI's to ABAP from JAVA. You can use object and method in java to call bapi.

Read only

0 Likes
1,146

Hi Phani,

Thanks for immediate reply.

Then as an ABAPer I have to create one BAPI ?

Please give me any links related to this .

Read only

0 Likes
1,146

Hello,

No need create any BAPi SAP provided many bapis if the reqmnets come we can create based on the reqmnets......

BAPI tcodes Raleted

1)BAPI

2)SWo1-

To check the BAPIS to related module go to swo1 tcode.

This link may help u

https://www.sdn.sap.com/irj/scn/wiki

http://help.sap.com/saphelp_nw04/helpdata/en/78/21745d51ce11d189570000e829fbbd/frameset.htm

Thank u,

santhosh

Read only

0 Likes
1,146

Hi Santhosh,

          I have success fully created sale order by using "BAPI_SALESORDER_CREATEFROMDAT1" with the help of jco library, now i want to get the invoice no as well delivery invoice amount. how can i get? can you pls tel me the BAPI name as wel table name? is there any sample java code for that?  pls share me.

Regards,

Raja

Read only

former_member750652
Contributor
0 Likes
1,146

Hi Rohit,

I think you can go with WebDynpros what is the JAVA based and can be developed in NWDS.

Web Dynpro is used to design user interfaces for Java and ABAP applications.

http://help.sap.com/saphelp_nw70/helpdata/EN/15/0d4f21c17c8044af4868130e9fea07/content.htm

One more way is using JAVA connectors,SAPu2019s new Java middleware, the SAP Java Connector (JCO) allows customers and partners to easily build SAP-enabled components in Java. JCO supports both inbound (Java calls ABAP) and outbound (ABAP calls Java) calls in desktop and server applications.

In this Sample Program we connect to SAP and call two BAPIs.

Import statements: Any program using JCO should contain the following import statement:

import com.sap.mw.jco.*;

Otherwise, you have to fully qualify each class and interface which is very inconvenient.

Connecting to SAP

JCO.Client mConnection;

A connection (or session) with SAP is handled by class JCO.Client

try {

mConnection =

JCO.createClient("400", // SAP client

"c3026902", // userid

"********", // password

"EN", // language

"iwdf5020", // host name

"00"); // system number

mConnection.connect();

}

catch (Exception ex) {

ex.printStackTrace();

System.exit(1);

}

"A Client object is created via a call to createClient(). You can use a specific application server (as in the above code) or a server group (load balancing)." REFER the JCO Javadoc for the overloaded createClient() method for the latter possibility.

"The Client class's connect () method tries to log on to SAP. If that fails for any reason, an exception is thrown. If the call succeeds, we can now stay connected for as long as we like. When we are done, we can call disconnect () to explicitly log off."

for more on JAVA connectors refer the follwing link:

http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm

Thanks,

Ram.

Read only

0 Likes
1,146

Hi Ram,

          I have success fully created sale order by using "BAPI_SALESORDER_CREATEFROMDAT1" with the help of jco library, now i want to get the invoice no as well delivery invoice amount. how can i get? can you pls tel me the BAPI name as wel table name? is there any sample java code for that?  pls share me.

Regards,

Raja

Read only

former_member222860
Active Contributor
0 Likes
1,146

Hi,

Using JCo (Java Connector), we can integrate SAP with Java

Pl. search with that key-word

thanks\

Mahesh

Read only

Former Member
0 Likes
1,146

Hi,

Please go through the below link it will be useful,

Thank U,

Jay....

Read only

0 Likes
1,146

Hi All,

thanks for your valuable information .

regards,

Rohit.

Read only

Former Member
0 Likes
1,146

Dear All,

       

Thanks!

          I have success fully created sale order by using "BAPI_SALESORDER_CREATEFROMDAT1" with the help of jco library, now i want to get the invoice no as well delivery invoice amount. how can i get? can you pls tel me the BAPI name as wel table name? is there any sample java code for that?  pls share me.

Regards,

Raja