cancel
Showing results for 
Search instead for 
Did you mean: 

No Data Stored For 0006 in the selected period

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Still giving same return message "No data stored for 0006 in the selected period"

there are no error in execution but the data not saved in database.

below is the code i used as u suggested.

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

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

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

proxyaddchange.CommitWork();

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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