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

No Data Stored For 0006 in the selected period

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2005 at 02:46 PM

    Hi,

    try to use

    string timeIntervalHigh ="99991231" 
    string timeIntervalLow = "1900101"

    I think, your SAP System has some problems to convert "99/99/3112" to a valid date.

    by the way, are you getting an error message ?

    Regards

    Gerhard Rausch

    Message was edited by: Gerhard Rausch

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for reply.

      i used both

      string timeIntervalHigh ="99991231"

      string timeIntervalLow = "1900101"

      As well as

      string timeIntervalHigh ="31129999"

      string timeIntervalLow = "01011900"

      i tried to run the BAPI by using SE37 Transaction code. same error displayed there and when i tried to enter 99991231 date, system not accepting then i tried 31129999 and system accepted but getting same error.

      one strange thing happen that i used same thing

      (string timeIntervalHigh = "99991231"

      and

      string timeIntervalLow = "19000101" )

      in Bapi_Persdanl_Getdetailedlist and i am getting records for the same employee.

      i am not getting any error. code are working fine but in return table i am getting this message and information not updated in system.

      Message was edited by: Adil Siddiqui

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

    Hi,

    corresponding to the documentation of "BAPI_ADDRESSEMP_CHANGE" you have to call "BAPI_EMPLOYEE_ENQUEUE" first to lock the employee.

    The documentation of "BAPI_EMPLOYEE_ENQUEUE" contains an example how to change an address of an employee.

    Regards,

    Gerhard Rausch

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Adil

      How do you do the Lock object? I have a table and i created a lock object for it.

      I used VB.Net. Then I created a Function - remote enabled. When I run my program from .Net, it does not lock the data instead if I run from SAP itself, it does lock the data.

      Could you tell me how to do it from NON-SAP?

      Thank you.

      Regards.

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.