on 06-15-2005 2:36 PM
Hello,
I have a problem using SAP .net connector.
On a machine using Visual Studio .Net 2003 and SAP .NET connector 2.0
I have successfully added an Application Server in Server Explorer
and I get all the BO's.
In my opinion, the BOR is loaded dynmically at design-time from SAP.
Is this right?
Now there is my strange phanomen.
When I drag e.g the BO ACCDocument, everything is fine and the
attributes/fields are displayed.
But when I drag the BO APAccount, there is a Message Box "Loading Data, this
may take some time" and after a few seconds there is an error message
like the one in
"Could not establish a connection to R/3-System xyz".
When I set the ABAP-Debug-option to true, I can step through
the source-code on the desired system via Sapgui, so I think the connection-parameters
have to be right, and its no problem due to missing rights
please help me, what I'm doing wrong?
Unfortunately there's no solution provided in the
topic mentionned above
Thanks.
J.Kerscher
> In my opinion, the BOR is loaded dynmically at
> design-time from SAP.
> Is this right?
Yes, this is using NCo internally.
But note that later for fetching the actual Metadata an external Java Program is used. Parts of the connection string is passed to this program, but not the full connection string. A lot can happen on this way. Therefore I recommend to hold Shift and Control keys while dragging, because this will copy the command line for Java to clipboard. Any further analysis has to be done with this Java program and it's parameters only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Reiner,
thank you for your answer.
You told me, that later an external Java Program is
used. But this "later" is already at run time, isn't it?
I've done, what you proposed and pasting the contents of
the clipboard:
C:\Programme\Java\jre1.5.0_02\bin\java.exe -Xmx128m -cp
aii_upload_core.jar;aii_upload_sap.jar;aii_util_misc.jar;aii_util_xml.jar;aii_util_rb.jar;inqmyxml.jar;sapjco.jar;SAPmdi.jar
com.sap.aii.upload.tool.RFC2WSDLTool "C:\WINNT\Profiles\kerscher\LOKALE~1\Temp
metadata.wsdl"
<system> <sysno> <client> <user> <passwort>
BAPI_AP_ACC_GETBALANCEDITEMS BAPI_AP_ACC_GETCURRENTBALANCE BAPI_AP_ACC_GETKEYDATEBALANCE
BAPI_AP_ACC_GETOPENITEMS BAPI_AP_ACC_GETPERIODBALANCES BAPI_AP_ACC_GETSTATEMENT
to a dos box, there's another error message:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/aii/upload/to
ol/RFC2WSDLTool
How can I proceed?
THANK YOU in advance.
j.kerscher
> You told me, that later an external Java Program is
> used. But this "later" is already at run time, isn't
> it?
No, design time - just in the moment when you see the progress bar moving.
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> com/sap/aii/upload/to
> ol/RFC2WSDLTool
Cd to your NCo install dir (e.g. c:\Program Files\SAP\SAP .NET Connector 2.0) and re-execute the command.
Hello Rainer,
after doing so, I recieve exactly the same message
as in VS.NET.
+(INFO: using logging implementation "AII Logging"
Exception in thread "main" com.sap.aii.upload.sap.SAPConnectionException$Connect
Failed: Konnte keine Verbindung zum R/3-System xyz(system=1, client=zyx) aufbau
en.
at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:103)
at com.sap.aii.upload.sap.SAPConnection.
LOCATION SapRouter on xyz
ERROR hostname 'hostname' unknown
TIME Thu Jun 16 08:56:05 2005
RELEASE 620
COMPONENT NI (network interface)
VERSION 36
RC -90
MODULE nixxi.c
LINE 2209
DETAIL NiIHostToAddr
COUNTER 30059+
THank you.
j.kerscher
Yes, this is indeed a possible explanation: As I explained before, on Server Explorer/NCo side we have a full connection string that supports load balancing.
Unfortunately the command line iterfaces to the Java program doesn't support the full connection string, but just application server, system number, client, username and password. If we have a load balancing setting in server explorer we don't have this information. Instead we have only the message server and some additional information.
The trick that we use is just taking the message server as application server. This sometimes works, but obvously not in your case, e.g. because the admin didn't configure dialog work processes on the message server host.
A solution for you is just to use a non-load-balanced connection to create the proxies. At runtime you have of cause full message-server support.
It is allways possible to get a app-server connection from a load-balanced one, please ask you admin. You can use a "custom" entry for server explorer and just specify app server, system number, client, username and password.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.