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