How to call a function in Update Rules to reverse a key figure sign
We would be appreciated if someone could provide a sample code in Update Rule by calling a function called NEGATIVE which is in BW to reverse a sign of a key figure!
Edwin Harpino replied
it should like
Debit/Credit Amount * 1-
you can switch 'expert mode', click the icon beside checking syntax, here we are allowed to directly enter the formula and technical name is used.
another way is use 'routine' and code is
result = comm_structure-deb_cre_dc * -1.
hope this helps.