cancel
Showing results for 
Search instead for 
Did you mean: 

MI access to non SAP system

Former Member
0 Kudos

Hi,

how can I access webservices through MI.

Also If i have a database which allows jdbc access how do I access it thru MI.?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

MI supports JDBC - Java Database Connectivity. The JDBC API allows you to access JDBC-enabled databases directly from Java.

>how can I access webservices through MI.

MI has a JSP runtime environment which could serve your purpose.

For further help visit the <a href="http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/index.htm">ONLINE DOCUMENTATION OF MDK - Mobile Development Kit</a>

Hope this helps.

Regards,

Ak.

Former Member
0 Kudos

Thanks for the response,

Actually the MI component on the server will not be talking to R3 system at all., but to other 3rd party system via JDBC and webservices.

This means that write a Data Access component which will access a database using JDBC API .This data access component can be called in the servlet that extends from AbstractMeHttpServlet that runs on MI server.

Similarly I can write a web service component to call a webservice from the servlet.

Pls correct me if I am wrong

Former Member
0 Kudos

hello shalu,

MI server components except the gateway are implemented

in ABAP. I think you are a little confused with the

servlet container running in the MI CLIENT with the MI

server components.

please refer to the MDK for more info regarding the

client and server architectures.

http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/index.htm

regards

jo

Former Member
0 Kudos

hi Shalu,

> MI component on the server will not be talking to R3 >system at all., but to other 3rd party system via JDBC >and webservices

in your case the flow won't be thro the ABAP stack. (ref MI architecture) From Java Stack it straight away calls your non SAP Backend.

if you see my previous response, i had mentioned "The JDBC API allows you to access JDBC-enabled databases directly from Java". Your J2EE Stack in your WAS will take care of this.

Regards,

Ak.

Former Member
0 Kudos

> Actually the MI component on the server will not be

> talking to R3 system at all., but to other 3rd party

> system via JDBC and webservices.

at this point, you may bring in your SAP NW XI into picture. If the non-sap backend data needs to be understood by SAP NW MI, it should be mapped accordingly. Exchange Infrastructure (XI) will take care of this.

Regards,

ak.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Shalu,

i would recommend you to take the ABAP-Webservice way. The advantage of this solution is that you can develop MI-Projects in the MI-Perspective of NWDS and you can use the "default way of data-sync" for smart sync/generic sync Projects.

For example: You only have to create a smartsync-project on MI-Server(MEREP_SBUILDER). Create the RFC's on MI Server(SE80) and add them to the smartsync project without using a destination(perhaps to GET_LIST and GET_Detail).In the RFC's implement a ABAP Werbservice to the non-sap systems. On 6.40 WAS MI-Server this way is very simple and very fast developed.

Regards

Frank

Former Member
0 Kudos

Hi Shalu,

In the MI Client you can have either AWT or JSP Application.

These are different user interface available for a MI Client.

Since you are intrested in webservices. you should use JSP Framework applciation.

<b>How can i access webservices through MI?</b>

In a real scenario,

1. You create a JSP Application using SAP-IDE. i.e SAP Netweavar Studio.

2. Export your jsp project to a .war file.

3. Deploy the .war file in the MI Server using WEB CONSOLE.

4. Assign this JSP Application to your userid & password which inturn corresponds to the MI Client.

5. Now, the MI Client has to synchronize it. So that the

application is visible in the MI Client.

6. MI Client sees the application as a link which he can use it later.

If i have a database which allows jdbc access how do i access it through MI?

Since you are going to use the application(Either JSP or AWT) in the client side and

since you are going to write those application in the MI Client. i.e Your machine,

The Data Source Name associated with your project is already present in your machine/client right.

So the MI client which is installed in your machine which is either JSP or AWT, takes care of the database access. :-D.

Check this link...

SAP NetWeaver Developer Studio

http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/eclipse/guideeclipse.html

Hope it helps.

Rewards Points for useful answers.

Regards,

Maheswaran.B

Message was edited by: Maheswaran B

Former Member
0 Kudos

Hello shalu,

if you want to save MI-Data via webservice in a non-sap system you can use ABAB webservice in the RFC Functions. If you are using generic sync you can do it directly in the MI-Middleware BAPI-Wrappers.

For calling a webservice from WAS 640(MI 2.5 Server) please check

http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm (chapter consuming a webservice)

If you are on WAS6.20(MI 2.1) you can use cl_http_client to achieve the same.

See this blogs:

/people/thomas.jung3/blog/2005/05/13/calling-webservices-from-abap-via-https

/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap

If you are using smart sync,you can call the webservice from custom backend function modules(custom function modules used in MEREP_SBUILDER).

Regards

Frank