473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem using SAP.Net Connector calling BAPI

Hi,

I am having problem using EmployeePrivateAdrUS.GetList through SAP.NET. I
used the code below and get the error messgae that the method can not be
reflected. I assume taht the problem arise from xml code so after I change
the xml code for GetList, I can perform GetList successfully, but when I
perform Create. It doesn't give out error and doesn't do anything.

Can anyone tell me how to solve this and should I change the xml code part?

The code is as follows:

SAP.Connector.BAPIRETURN1 returnval = new SAP.Connector.BAPIRETURN1();
GetAddressDeail.BAPIPAKEYTable tbl = new BAPIPAKEYTable();
GetAddressDeail.EmployeePrivateAdrUS emp = new
EmployeePrivateAdrUS(d.ConnectionString);
emp.Connection.Open();
emp.Getlist("00001000","1","99991231","19950101", out returnval,ref tbl);
emp.Connection.Close();

The error message that I got before changing XML code part is as follows:

System.InvalidOperationException: Method EmployeePrivateAdrUS.Getlist can
not be
reflected. ---> System.InvalidOperationException: There was an error
reflecting
'Addressempkey'. ---> System.InvalidOperationException: The XML element
named '
ADDRESSEMPKEY' from namespace '' references distinct types
GetAddressDeail.BAPIP
AKEY and GetAddressDeail.BAPIPAKEYTable. Use XML attributes to specify
another X
ML name or namespace for the element or types.

Thank you in advance,

Sunny
Jul 21 '05 #1
0 3864

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stein Gran | last post by:
Hallo, I am trying to create a C# service which connects to the SAP DMS system using SAP .NET Connector. The service shall get a list of all documents in a DMS system, and extract all documents...
0
by: Sansanee | last post by:
Hi, I am having problem using EmployeePrivateAdrUS.GetList through SAP.NET. I used the code below and get the error messgae that the method can not be reflected. I assume taht the problem arise...
2
by: rakesh kumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
0
by: rakeshkumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
5
by: Darren Brook | last post by:
Does anyone know how to create an ActiveX EXE Server that raises events which can be captured by muliple clients? So, I have two applications that are both clients. I need to pass data via the...
0
by: manir | last post by:
Hi, It would really be of great help if you could suggest a solution for me. Program: I need to execute a stored procedure from an Oracle server through a C++ program using oci.h (Oracle...
1
by: sethupnr | last post by:
when i'm using a simple JSP-mysql code it shows some HTTP status 500 error.But simple JSP program without databse is running , Please help how to solve this problem. I'm new to JSP. my...
3
by: The Frog | last post by:
Hi Guys, I am having a problem with a late binding conversion with ADO. I have the following sub which is designed to be passed an ADO connection object and also the full path to the .mdb file,...
6
by: shivapadma | last post by:
i want to access mysql database server from jsp program for this i downloaded mysql-connector-java-3.1.14.zip mysql-connector-java-3.1.14 folder contains mysql-connector-java-3.1.14-bin.jar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.