472,952 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 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 3848

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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

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.