Friday, December 26, 2014

Clear All – will not clear the TEMPARORY table on object

Hi All,

CLEARALL – function has reset all flag we have sent on object. But there is one work around to save value on object

Clear All – will not clear the TEMPARORY table on object.

Using the temporary table we pass the our flag value in codeunit even if CLEAR ALL function is used on that.

Example:


In Standard codeunit – 90
  • Set the Temporary Table on codeunit  using the SetWhseRecptHeader function


  • System has write CLEAR ALL function on codeunit On Run trigger. So clear all function will clear all the flag set by any function and all global variable but magic is that clear all will not clear the temporary table variable



















  • In code you can set your flag using the Temporary Table













So now the CLEAR ALL  not the end of thinking…..

No comments:

Post a Comment