Hi Paulo,
You might consider to store the begin state at another global variable in your program?
This user friendlier SM30, is also going to insert/update/delete key fields? Then you might also consider a back up table with fields like: tablename, timestamp, ernam and a string, which contains the original data of the table they just altered in XML or a ZIPPED XML string or ZIPPED XML xstring, to be more sufficient.
Good luck!
Best, Sander