Skip to Content
author's profile photo Former Member
Former Member

How to update Employee Indormation i.e. Phone

Can any body help me. i want to update employee information i.e Phone through .NET Connector.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2005 at 06:28 AM

    Hi Adil,

    The question does not give a very clear idea of what you are trying to do. Can you explain the query in detail?

    Regards,

    Ankit Bhansali

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ankit,

      i am getting employee information by using Bapi_Employee_Getdata and Bapi_Addrempth_Getdetailedlist.

      there is no problem to display the information for a perticular employee. Now i want to update employee information i.e his telephone no.

      for this i used Bapi_Addressemp_Change. my code is working fine, no error but in return message i am getting "No data stored for 0006 in the selected period".

      In SAP information exist for that employee.

      My code as below

      CSApplication.proxyAddrChange proxyaddchange = new CSApplication.proxyAddrChange(destination1.ConnectionString);

      CSApplication.BAPIRETURN1 Return11=new CSApplication.BAPIRETURN1();

      CSApplication.BAPIRETURN1 Return12=new CSApplication.BAPIRETURN1();

      CSApplication.BAPIRETURN1 Return13=new CSApplication.BAPIRETURN1();

      try

      {

      proxyaddchange.Connection.Open();

      // To refer to the subset that has Permanent Address details

      string subType = "1";

      // Get records till this date(yyyymmdd - format)

      string timeIntervalHigh = "99991231";

      // Get records from this date(yyyymmdd - format)

      string timeIntervalLow = "18000101";

      proxyaddchange.Bapi_Employee_Enqueue(txtSapId.Text,out Return11);

      // I removed all the optional parameter except telephoneno

      proxyaddchange.Bapi_Addressemp_Change(txtSapId.Text,"","","",subType,"123456789",timeIntervalLow,timeIntervalHigh,out Return12);

      proxyaddchange.Bapi_Employee_Dequeue(txtSapId.Text,out Return13);

      proxyaddchange.CommitWork();

      }

      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();

      }

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.