Connect to SAP R/3 using JCA and SLD
I have read a number of articles and code samples regarding back-end connections, but none of them provided the answer which is suitable for my situation.
I want to build a portal application which calls a simple BAPI in a SAP R/3 system.
The only requirements are that the application has to be set up according to the MVC pattern and the model will be exposed as a webservice.
I am using web dynpro to create the views and tie the view, the controller and the model together. The model should connect to a SAP R/3 system accessing it via single sign on.
I want the connection properties to be easily ajustable to make the application portable to another landscape, therefore I chose JCA to set up the connection.
FYI: The SAP back-end systems are defined in the portal system landscape and also in the system landscape directory on the XI server.
Does anyone know a good code sample/tutorial/how-to for setting up a flexible, easy manageable connection to a SAP back-end system?
thanks, I can get the data from SAP R/3 to crystal report.
but still dont know how to do the second question mentioned in previous message:
once the table I want to get the data from is a cluster, and have found the mapping data dictionary of this data cluster, which displayed in crystal report connection as well, however, the data is not what I wanted.
Similar Messages
-
Connect to SAP R/3 using Crystal Reports 2008
How to connect to SAP R/3 using Crystal Reports 2008 from Crystal Designer?
thanks, I can get the data from SAP R/3 to crystal report.
but still dont know how to do the second question mentioned in previous message:
once the table I want to get the data from is a cluster, and have found the mapping data dictionary of this data cluster, which displayed in crystal report connection as well, however, the data is not what I wanted. -
Data transfer b/w SAP to Java using IDOC and Interface SAP Jco
Dear Experts,
The challenging requirement we are having is, we need to create the interface for data transfer between SAP system and the Java system. The data will be transferred from SAP to java and similarly once some processing done in Java again the details needs to be transferred from Java to SAP.
For this data transferred we are planning to use IDOC process and for interface "SAP Java connector (Version 3.0.5)" we are planning to use. As per our understanding, from Java side one program needs to be written to connect with SAP as "Registered program". This registered program will appear in SAP GATEWAY automatically and using tRFC, TCP/IP connection both SAP and Java system will be connected.
In this case we are having some doubts.
1. The data from SAP is going to be transfered from one Custom transaction (Z tcode). Once "Outbound IDOC" will get triggered and will carry the details. Now the doubt is, whether the data / details will get transfered to JAVA system automatically or we need to perform any other steps from SAP ABAP coding...(like converting in to flat file, XML file and etc) ??
2. We are planning to install "SAP Jco" in Java server. Is this correct...??
3. Other than SAP Jco any other softwares needs to be installed or not..??
4. Since we are going to trigger the "outbound IDOC" from custom transaction, we are planning to develope one program in SE37. Other than this any other program we need to develop or not..??
5. Any sample Java program for the SAP Jco version 3.0.5 to create the "Registered program" with SAP..? (e.g. SAP Listener program).?
If anybody has detailed steps or explanation please share it with us.
Thanks in advance
Warm Regards,
VELHi All,
For the above mentioned issue, we implemented JCo software in JAVA system and created the JAVA program including SAP logon credential details like Client, User name, password and Language details.
When this JAVA program was compiled successfully then, that non SAP system will appear in SAP gateway Tcode.
Once non SAP system started appearing in SAP gateway that means, both SAP & Non SAP are connected automatically.
Regards,
Velmurugan P -
Design Time Connection of SAP Server failure using TIBCO Designer
Hi All,
While Connection to SAP Server using TIBCO Designer using Design Connection Configuration followed error we are facing.
Connection Error. Unable to Create a Connection with the target application bdhn4973.na.pg.com using connection parameters
programID=BWAH-IFS-L6A430 gatewayService=sapgw00 and the target application error is 102RFC_ERROR_COMMUNICATIONConnect to SAP gateway failedConnect_PM TPNAME=BWAH-IFS-L6A430, GWHOST=bhdn4973.na.pg.com, GWSERV=3300LOCATION CPIC (TCP/IP) on local ost with Unicode ERROR partner 'bdhn4973.na.pg.com:3300' not reached TIME Mon Jul 18 03:28:21 2011 RELEASE 720 COMPONENT NI (network interface) VERSION 40RC - 10 MODULE nixxi.cppLINE 3284DETAIL NiPConnect2: 155.125.167.58:3300SYSTEM CALL connectERRNO 239 ERRNO TEXT Connection refusedCOUNTER 6
Note: SAP Server is running but still we are not able to connect from TIBCO Designer. Few times it's able to connect and few time it will throw an error while connecting to SAP Server.
Can you please help me if any one you have any idea regarding this.
Regards,
VijayaHi,
Since you are able to connect, seems the issue with network instability.
1) Create an RFC connection and perform the connection test. Note down the time taken (milli seconds), a notable delay also can be the cause of the issue.
2) Do the ping from Tibco system to SAP and note down the time taken
3)Also check the firewalls in between the two systems and check the valid access
You may need Nework admin teams help to cross check these.
Regards,
Syed -
HT204266 I am facing problem to connect to the App Store using 3G and wi-fi
Hello
I am facing problem to connect to App Store from my iphone using 3G and wi-fi. It allows me to update the installed apps.The iTune Store is not available in certain countries
http://support.apple.com/kb/TS3599 -
Dear Friends,
I am using OCI and instant_client (11.2.0.3.0) in my C++ program (on Windows 7) to connect remotely to 11G database.
While doing a connection using server name as well as servername:port/service_name as connection strings, I am getting error of ORA-12504 TNS:listener was not given the SERVICE_NAME in CONNECT_DATA.
According to instant client FAQ & white paper at http://www.oracle.com/technetwork/database/features/instant-client/index.html, no tnsnames.ora is required for instant client. Then why could I be getting this error?
I ensured that only the instant client directory is in Path environment variable. There was a ODBC driver installed on this same host. Could that be modifying the behavior of instant client?
Kindly guide.
Many thanks in advance for your help and time.
Best Regards,
- ganesh>>what is the exact connect string you are using?
For connection, I am using the plain hostname on which the DB server is running.
>>are you calling OCIServerAttach before OCISessionBegin?
I am not using OCISessionBegin. For connecting to DB server, I am using the following sequence of OCI calls (in this same order):
1) g_OCIEnvNlsCreate
2) g_OCIHandleAlloc //-- error handle: OCI_HTYPE_ERROR
3) g_OCIHandleAlloc // --- sevice context: OCI_HTYPE_SVCCTX
4) Setting driver name and application name for the session:
OCISession* usersession = 0;
ret = g_OCIAttrGet(m_pSvcCtx, OCI_HTYPE_SVCCTX, &usersession, NULL,
OCI_ATTR_SESSION, m_pErrHdl);
if (ret == OCI_SUCCESS)
ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"OCI_DRV", 2,OCI_ATTR_DRIVER_NAME, m_pErrHdl);
ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"ClientApplication", <ub4>(strlen("DataReconScanning")), OCI_ATTR_CLIENT_IDENTIFIER, m_pErrHdl);
5) g_OCILogon() using the user, password and host name, as below:
g_OCILogon(m_pDbCon, m_pErrHdl, &m_pSvcCtx,
(text*)user.c_str(), static_cast<ub4>(user.length()),
(text*)pass.c_str(), static_cast<ub4>(pass.length()),
(text*)host.c_str(), static_cast<ub4>(host.length()));
Thanks. -
Connecting FAX to PSTN line using FXS and FXO ports
I have 2 cisco 1760 routers with FXS and FXO card installed in each. I have to transport 2 PSTN lines from Head Office to remote loaction using FXS and FXO cards and these lines will be used for voice calls and FAX( one line each for FAX and voice). I have configured the router for voice lines and it is working fine. Now I am using the same config for running fax machine but it is not working. Can anyone help me out how to configure FAX in this scenario also if anyone can share any sample config. I am attaching my config for both routers. Right now both routers are connected with a cross-over cable for lab test but we will connect them later using satellite connection.
HO Router (FXO card)
Current configuration : 1718 bytes
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
enable password cisco
no aaa new-model
resource policy
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
voice-card 3
ip subnet-zero
ip cef
no ip dhcp use vrf connected
no ip domain lookup
no ftp-server write-enable
voice class codec 10
interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.248
speed auto
h323-gateway voip bind srcaddr 10.10.10.1
ip classless
no ip http server
control-plane
voice-port 2/0
output attenuation 0
echo-cancel coverage 32
no vad
no comfort-noise
timeouts interdigit 3
timeouts call-disconnect 3
connection plar opx 2001
description Remote PSTN#:35296913
music-threshold -70
voice-port 2/1
output attenuation 0
echo-cancel coverage 32
no vad
no comfort-noise
timeouts interdigit 3
timeouts call-disconnect 3
connection plar opx 2002
description Remote PSTN#:35296914
music-threshold -70
voice-port 3/0
voice-port 3/1
dial-peer voice 2000 voip
destination-pattern 200.
no modem passthrough
voice-class codec 10
session target ipv4:10.10.10.2
incoming called-number .
dtmf-relay cisco-rtp h245-signal h245-alphanumeric
fax-relay ecm disable
fax rate 7200
fax nsf 000000
no vad
dial-peer voice 1321 pots
description line 1
huntstop
destination-pattern 1321
port 2/0
dial-peer voice 1322 pots
description line 2
huntstop
destination-pattern 1322
port 2/1
line con 0
password cisco
line aux 0
line vty 0 4
password cisco
login
end
Remote Router (FXS Card):
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
enable password cisco
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
voice-card 3
no aaa new-model
ip subnet-zero
ip cef
no ip domain lookup
no ftp-server write-enable
voice class codec 10
interface FastEthernet0/0
ip address 10.10.10.2 255.255.255.248
speed auto
h323-gateway voip bind srcaddr 10.10.10.2
interface Ethernet1/0
no ip address
shutdown
half-duplex
ip classless
no ip http server
control-plane
voice-port 2/0
description PSTN#:
voice-port 2/1
description PSTN#:
voice-port 3/0
voice-port 3/1
dial-peer voice 2001 pots
description Remote
huntstop
destination-pattern 2001
port 2/0
dial-peer voice 2002 pots
description Remote
huntstop
destination-pattern 2002
port 2/1
dial-peer voice 1320 voip
destination-pattern 132.
no modem passthrough
voice-class codec 10
session target ipv4:10.10.10.1
incoming called-number .
dtmf-relay cisco-rtp h245-signal h245-alphanumeric
fax-relay ecm disable
fax rate 7200
fax nsf 000000
no vad
line con 0
password cisco
line aux 0
line vty 0 4
password cisco
login
endIn your voice class codec 10 there aren't any codecs declared.
Add G.711 codec in this way:
voice class codec 10
codec preference 1 g711alaw
If the fax communication fails again try to disable T.38 and try fax passthrough mode:
no fax rate
modem passthrough nse codec g711alaw
fax protocol pass-through g711alaw
Regards. -
I got a new ipod touch and in the beginning instead of connecting to itunes on the computer i used wifi and now on the the computer it wont let me log on when itunes pops up what do i do?
What do you mean by: " computer it wont let me log on when itunes pops up what do i do?"?
What happens? -
Long connection times to Leopard server using ssh and screen sharing
I'm experiencing long connection times when using ssh (30 seconds, or so, before password prompt appears), and screen sharing (upwards of 5 minutes before display opens). Both the server and the macbook pro I'm connecting with are on the same LAN, with the sever connected by wire directly to an Airport Extreme, and the MBP connecting via wireless.
Anybody have any thoughts as to what's causing the long delays in connecting?A ping goes rather quickly, and the TNSNAMES.ORA file already contains the IP address. I have other software that connects to the Oracle server just fine without a long delay. I am not sure if this other software uses ODBC, it is a package software. I was begining to think I might have miscoded the connection in the VB program?
Tim -
Connect to SAP R/3 using SAP GUI for HTML through saprouter
Hello,
I have my system running on my intranet, but I need to connect some support enginners through an Internet connection. Nowadays some users can connect to QAS and PRO systems using SAP GUI for windows and java with the saprouter string, but the support enginners are using SAP GUI for HTML, do I need a special string or configuration so html users can connect to my system from the Internet?
Thanks in advance.thanks, I can get the data from SAP R/3 to crystal report.
but still dont know how to do the second question mentioned in previous message:
once the table I want to get the data from is a cluster, and have found the mapping data dictionary of this data cluster, which displayed in crystal report connection as well, however, the data is not what I wanted. -
Connect to Existing Wireless Network Using AE and 2WIRE Home Portal
I would like to use my airport express to connect to an existing wireless network set up in my place, I got a pc wireless network connected with a 2Wire Homeportal 1000HW.
I've tried with the Assitant in both options, just joining the network to play music or joining the network to extend the range and nothing works, always the AE disappears.
Can I do that with my home portal or I need a different one?
If I need a new one what should I buy, my provider is SBC (DSL)
HP Pavilion zv6000 Windows XPI am on a Mac and can do this with my 2Wire 1000SW. Not sure what the difference is, but I imagine it's just speed (mine is 802.11b). The reference to another posting on the 2Wire says that you must disable WEP. I have all my security still in place. When I run the setup utility and ask it to join my existing network (2Wire Network), it asks for my WEP and runs from there.
Were you able to get this to work? -
Problem connecting to public wifi hotspot using ibook and airport
Hi
I have a brand new iBook G4, replacing an iBook G3. At home I use it to connect wirelessly or wired with my Netgear router. No problems.
Yesterday I tried to access a public, unsecured wifi hotspot in a local cafe. There were two other people there using the net, both using iBooks (high Mac density, it seems!).
Whatever I did, I simply couldn't connect. First, using the same Location I use at home (defined to only use Airport), I could see the named network, but when I selected it I got the 'could not connect' dialog. Retried, no luck.
I then created a new location, configured that to use Airport. Same problem.
I then created a new network name, and tried again. No luck. Using this last option, it actually asked me for a WEP password, even though the network was, in fact, unsecured, and the other users had not been asked this.
I do use WEP protection at home.
Any ideas?? I'd like to be mobile and networked, so I'd really like to fix this!I presume that the iBook G3 worked fine at the location previously?
Some 802.11b access points require a firmware upgrade before 802.11g (Extreme) clients can connect.
Though 802.11g is backward compatible with 802.11b some older access points were developed before 802.11g and therefore are not in a position to allow the 802.11g clients to connect.
Note that you can attempt to persuade an Airport Extreme client to operate in 802.11b mode.
Hold down the control key [ctrl] when selecting the network from the menu.
http://docs.info.apple.com/article.html?artnum=107938
iFelix -
Can JConsole connect to remote JMX agent using JMXMP and TLS?
I have a JMX Enabled App that needs to be accessed with JConsole using TLS enabled JMXMP Connector.
The same server can be accessed with a custom JMX client but JConsole is causing be trouble.
I get error something like: "Client does not support profiles but the server requires it..."
thanks
Srini<p>Hi John,</p>
<p>Unfortunately there isn't a simple solution for this because you cannot pass to JConsole the environment map to be used to configure your JMXMP connector client.</p>
<p>In order to achieve that you will have to write your own JMXMP connector client provider (e.g. service:jmx:<b>secure-jmxmp</b>://host:port) that initializes the environment map with the appropriate security settings and then rewrites the JMXServiceURL to service:jmx:<b>jmxmp</b>://host:port and delegates to the existing JMXMP connector client provider.</p>
<p>Of course, you will have to supply the javax.net.ssl.* SSL system properties in the command-line as you already do.</p>
<p>Have a look at the JMX class JMXConnectorProvider for more detailed info.</p>
<p>Regards,<br>
Luis-Miguel Alventosa<br>
Java SE JMX/JConsole development team<br>
Sun Microsystems, Inc<br></p> -
Friends,
I am getting the following error while deploying a web dynpro application through NWDS.
Aborted: development component 'WebDynpro_ErrorBehavior'/'local'/'LOKAL'/'0.2007.05.29.17.02.04'/'1':Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter valid login information in the Filesystem Secure Store using the SAP J2EE Engine Config Tool. For more information, see SAP note 701654.com.sap.sdm.serverext.servertype.inqmy.extern.DeployManagerAuthExceptionWrapper: Wrong security credentials detected while trying to obtain connection to the J2EE Engine. (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMAUTHEXC)
I get this error after I supply the SDM password which NWDS asks before deploying.
Can someone guide?
[email protected]
ThanksIn the additonal error log it says-
Unable to compare host[px1db] and host[x900704] Throwable: java.net.UnknownHostException Throwable message: x900704: x900704
where px1db is my portal server and x900704 is my localmachine name.
I dont know why it says so ...In NWDS i have configured only px1db.
any thoughts.
Vinay -
RFC Connect to SAP with JavaScript
Dear all,
is there a way to directly connect to SAP via RFC using JavaScript. Are there any tutorials or code snipplets?
Kind regards
RomanHi,
If you are running in a windows environment you can use COM functionality to connect to SAP. Here is some example code for you.
[code]
main()
function main()
var txt;
var Row;
var Row2;
var BAPI = new ActiveXObject( "SAP.Functions" );
var Connection = BAPI.Connection;
Connection.ApplicationServer = "xxx";
Connection.Client = "xxx";
Connection.SystemNumber = xxx;
Connection.User = "xxx";
Connection.Password = "xxx";
Connection.logon(0,true);
var Running = BAPI.Add("EW_TH_WPINFO");
var Servers = BAPI.Add("TH_SERVER_LIST");
var Tables = Servers.tables("LIST");
var Dest = Running.exports("DESTINATION");
Dest.value = "NONE";
var CPU = Running.exports("WITH_CPU");
CPU.value = "00";
var List = Running.tables("WPLIST");
Running.Call;
Servers.Call;
for (var enumerator = new Enumerator(Tables.Rows) ;
!enumerator.atEnd(); enumerator.moveNext())
Row = enumerator.item();
Dest.value = Row("NAME");
Running.Call;
for (var enumerator2 = new Enumerator(List.Rows);
!enumerator2.atEnd(); enumerator2.moveNext())
Row2 = enumerator2.item();
if (Row2("WP_REPORT").length > 0){
txt = txt + "\n" + Row2("WP_PID") + "\t" + Row2("WP_REPORT") + "\t" + Row2("WP_BNAME");
WScript.echo(txt);
function jsTrim(strInput)
var strResult;
var objRegex = new RegExp("(^
s)|(
s$)");
strResult = strInput.replace(objRegex, "");
return(strResult);
[/code]
This code just gets a list of current users. Save the file as running.js and fill in the xxx parameters with what is relevent for your system.
You will need wdtfuncs.ocx and librfc32.dll registered on your machine.
Hope this helps.
PS in the widgets forum I have given you an example of how to connect to SAP via RFC within widgets.
Nathan
Message was edited by: Nathan Jones
Maybe you are looking for
-
Problem with ie6 displaying different to every other browser
I have just created my website and after testing with all browsers except (stupidly) ie6 it all works fine but for some reason in ie6 it displays incorrectly on this page http://www.flitecarz.co.uk/WD-Postcodes-Covered.html the part with the problem
-
How to remove all bookmarks in Firefox 3.6
I accidently added a lot of unwanted bookmarks. I tried removing it by going into Bookmarks tool bar and pressed control delete but this doesn't seem to be working. Is there a way to remove all of them? I also tried right clicking each toolbar and pr
-
Download non-english updates from Windows Update Catalog
Hi, I would like to integrate all updates to install image. However, I must select all language of each updates on Windows Updates Catalog each by each. Any idea to download all updates with differance language as easier? thanks
-
I am replacing an old laptop running WinXP with a desktop running Win7. I have Firefox 3.5.2 on the XP system and FF 3.6.13 on the Win7 system. I have an extensive list of bookmarks, passwords and settings on the FF 3.5.2 installation I'd like to mig
-
[SOLVED] no sound with 32bit prefix wine
Hello, I am trying to play Ultra Street Fighter IV and I am running into a few issues. My standard wine prefix is a 64bit one. With it, I can play the game, hear the audio fine, but the videos/cut scenes don't appear at all. They're completely skippe