Skip to Content
0

Error -5002 Update Journal Entry

Jul 19, 2017 at 03:19 PM

31

avatar image

Hi everybody

I'm trying to update the DueDate of the Journal Entry line that has DP source, but error -5002 is displayed. The same code works when the source is not a Deposit

JEDep.GetByKey(1); 
for (int i = 0; i < JEDep.Lines.Count; i++)                 
{ 
JEDep.Lines.SetCurrentLine(i); 
JEDep.Lines.DueDate = DateTime.Now.AddDays(10);                 
}
int lrr = JEDep.Update();
if (lrr != 0)                 
{ }
10 |10000 characters needed characters left characters exceeded

Hi Francisco,

You are able to perform this action on SAP Business One client?

When you refers DP, you mean Deposit (object type 25)?

Kind Regards,

Diego Lother

0

Hi

DP is Deposit and yes, i can perform this action on client,

0
Francisco Carlos Henrique de Carvalho

Francisco,

Could you share the error message? You can get this with the method GetLastErrorMessage from company object, call this method inside your last if instruction.

Kind Regards,

Diego Lother

0

Diego

"Ocorreu erro interno (-5002)"

I tried in different database and even then the error is displayed

0
Francisco Carlos Henrique de Carvalho

Francisco,

There are some notes on SAP portal, with the error 5002 with diferent error message.

https://launchpad.support.sap.com, you need a S-Number to access it.

I tested your code on my demo database and got the same error when try to update a journal entry of a DP. Maybe you should open a ticket to SAP Support.

Kind Regards,

Diego Lother

1

Thanks Diego



0
* Please Login or Register to Answer, Follow or Comment.

0 Answers