tmannais
20th March 2019, 10:47
Hi,

In Invoice-to Business Partner session (tccom4112s000), I want to default a field to a specific value using Extension. I tried using hook "Set Object Defaults" with dal.set.message() after I set the value to the field. It shows the message as the value I set in the hook but what I see in the session is still the old value. I have a guess that the value is set to this value by standard default by the session and it overwrites what I set in the Extension because when I click on the field and press tab, it still shows the same old value.
So the question is if this is the case, how can I set the default so that it overwrites the standard default resulting in my default gets to display in the session.

Regards,
Thana

Ajesh
22nd March 2019, 14:06
this is from the standard Guide



Set Object Defaults hook
Use this hook to set default values for CDFs.

Example:
function extern long set.object.defaults()
{
tcmcs004.cdf_date = utc.num()
return(0)
}

OmeLuuk
4th November 2021, 11:59
When it comes to Table Extension, it should be :confused: possible to also modify the RDD DEFA value by entering the value in the field (shown green in the attachment)... But this field appears to be a non-input field:mad: