469,282 Members | 1,940 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

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 3731

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Darren Brook | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.