Can any body help to resolve this issue. it is confirm that record exist for employeenumber because i am getting address information for that employeenumber and i want to update only telephone number only for testing.
my code is as below:
private void changeAddress()
{
CSApplication.proxyAddrChange proxyaddchange = new CSApplication.proxyAddrChange(destination1.ConnectionString);
CSApplication.BAPIRETURN1 Return11=new CSApplication.BAPIRETURN1();
try
{
proxyaddchange.Connection.Open();
string subType = "1";
string timeIntervalHigh = "31129999";
string timeIntervalLow = "01011900";
proxyaddchange.Bapi_Addressemp_Change(txtSapId.Text,"","SBTP00095","",subType,"999999",timeIntervalLow,timeIntervalHigh,out Return11);
}
catch(SAP.Connector.RfcCommunicationException exp)
{
Label1.Text += exp.Message;
proxyaddchange.Connection.Close();
return;
}
catch(Exception exp)
{
Label1.Text += exp.Message;
proxyaddchange.Connection.Close();
return;
}
finally
{
if (proxyaddchange.Connection.IsOpen)
proxyaddchange.Connection.Close();
}
Message was edited by: Adil Siddiqui