cancel
Showing results for 
Search instead for 
Did you mean: 

Get Value from updating udo

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Edy ,

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

Kind Regards .

Ifigeneia Koumbarda

edy_simon
Active Contributor
0 Kudos

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