Skip to Content
0

Get Value from updating udo

Jun 06, 2017 at 08:10 AM

50

avatar image
Former Member

Hello Experts ,

I would like to get the value from the update of a udo .I tried something like this(lretcode = oGeneralService.Update(oGeneralData)) but i received error .Any idea ?

Kind Regards ,

Ifigeneia Koumbarda

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edy Simon Jun 06, 2017 at 08:31 AM
0

Hi Ifigeneia,

GeneralService.Update() does not returns you a value.
If the update failed, it will throws an error, you can get the error message in the exception caught in your try catch block.

If the update succeed, it would just go on. There is nothing to return to you since the fact that you are doing an update, means you already know which record you are updating.

Regards
Edy

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Edy ,

Thank you for the answer.In order to add an udo it is the same case?

Kind Regards .

Ifigeneia Koumbarda

0

Hi Ifigeneia,

Adding is different,

SAPbobsCOM.GeneralDataParams oParam = oGeneralService.Add(oGeneralData);

you can get the key of the newly added record from the oParam object.

Regards
Edy

0