{"id":78,"date":"2011-09-21T15:43:25","date_gmt":"2011-09-21T05:43:25","guid":{"rendered":"http:\/\/supportingelement.wordpress.com\/?p=78"},"modified":"2011-09-21T15:43:25","modified_gmt":"2011-09-21T05:43:25","slug":"how-to-un-finalize-a-global-payroll-calendar-group","status":"publish","type":"post","link":"https:\/\/supportingelement.com\/index.php\/2011\/09\/21\/how-to-un-finalize-a-global-payroll-calendar-group\/","title":{"rendered":"How to Un-Finalize a Global Payroll Calendar Group"},"content":{"rendered":"<p>It is sometimes very useful to be able to un-finalize a pay period\/Calendar Group while testing and\/or debugging.  However, there is no online functionality to enable this.\n<\/p>\n<p>\nThe following SQL Script can be used to reset a Calendar Group.  After running the script it is important that you run the \u201cCancel\u201d process using the online \u201cCalculate Absence and Payroll\u201d component.\n<\/p>\n<p>\nWhilst I have never had an issue with this process, I would not recommend applying it to a production environment.  And as usual: I take no responsibility for any issues resulting from the use of this process \ud83d\ude09\n<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"5px\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<p>&#8211;Reset Seg Stat table<br \/>\nUPDATE PS_GP_PYE_SEG_STAT<br \/>\nSET PYE_CALC_STAT = &#8217;50&#8217;<br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<br \/>\n&#8211;Reset the Calendar Group<br \/>\nUPDATE PS_GP_CAL_RUN <br \/>\nSET RUN_FINALIZED_IND = &#8216;N&#8217;,<br \/>\nRUN_FINALIZED_TS = NULL,<br \/>\nRUN_OPEN_IND = &#8216;Y&#8217;,<br \/>\nPMT_SENT_IND = &#8216;N&#8217;,<br \/>\nGL_SENT_IND = &#8216;N&#8217;<br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<br \/>\nUPDATE PS_GP_CAL_RUN_DTL <br \/>\nSET CAL_FINAL_TS = NULL<br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<br \/>\n&#8211;Reset T&amp;L<br \/>\nDELETE FROM PS_TL_RUNCTL_ACDT<br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<br \/>\n&#8211;Reverse GL<br \/>\nDELETE FROM PS_GP_GL_DATA <br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<br \/>\n&#8211;Reverse Payment Data<br \/>\nDELETE FROM PS_GP_PAYMENT<br \/>\nWHERE CAL_RUN_ID = :1;<br \/>\n\/<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>It is sometimes very useful to be able to un-finalize a pay period\/Calendar Group while testing and\/or debugging. However, there is no online functionality to enable this. The following SQL Script can be used to reset a Calendar Group. After running the script it is important that you run the \u201cCancel\u201d process using the online\u2026 <span class=\"read-more\"><a href=\"https:\/\/supportingelement.com\/index.php\/2011\/09\/21\/how-to-un-finalize-a-global-payroll-calendar-group\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,8,18,21,22],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-global-payroll","category-payroll-process","category-peoplesoft","category-unfinalize"],"_links":{"self":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}