I am trying to set Max Data on PurchLineHistory, but it didn't work, kindly help to see what is the error (Dynamic AX 2012 R2 CU7)
void job2 ()
{
PurchLineHistory plh;
;
while select forupdate plh where plh.PurchId=="ABC-000123"
{
if(plh)
{
ttsbegin;
plh.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
plh.ValidTo = DateTimeUtil::maxValue();
plh.update();
ttscommit;
}
}
}
*This post is locked for comments
I have the same question (0)