Example 1 - Call REFM BAPI_USER_GET_DETAIL via Java Console App

coldwaterphewServers

Nov 17, 2013 (3 years and 11 months ago)

362 views

Example 1
-

Call REFM BAPI_USER_GET_DETAIL via Java Console App


BapiExample.java
shows

a very basic example of using the SAP Java
Connector to call the remote
-
enabled function module
"BAPI_USER_GET_DETAIL"

from a Java console application
.




To Build

(sapjco must be in classpath)
:




To Run:




Example 2
-

Call REFM BAPI_USER_GET_DETAIL via J2EE Sevlet


BapiServletExample.java demonstrates a similar call as BapiExample.java,
only this time, it's a J2EE servlet.


Java source only:
C:\dev\src\java\
BapiServletExample\WEB-INF\classes\BapiServletExample.java


WAR with Source:
C:\dev\src\java\
BapiServletExample\BapiServletExample.war


Deployed on Apache Tomcat:





Deployed on Tomcat, displayed through Portal: