{"id":1040,"date":"2010-05-18T16:13:36","date_gmt":"2010-05-18T14:13:36","guid":{"rendered":"http:\/\/websha.de\/xstepcafe\/?p=1040"},"modified":"2018-06-01T06:45:20","modified_gmt":"2018-06-01T04:45:20","slug":"archiving-of-pi-sheets-and-electronic-work-instructions-oss-pilot-note-2","status":"publish","type":"post","link":"https:\/\/websha.de\/xstepcafe\/2010\/05\/18\/archiving-of-pi-sheets-and-electronic-work-instructions-oss-pilot-note-2\/","title":{"rendered":"Archiving of PI Sheets and Electronic Work Instructions (OSS Pilot Note)"},"content":{"rendered":"<p>The only way to archive PI Sheets and delete the corresponding database tables is to use the EBR functionality. For all other cases (Test PI Sheets or PP-based Electronic Work Instructions) archiving is not possible. However, deletion of old entries from the database becomes essential for maintaining the performance of the ERP system. In this article I describe a pilot note which solves this dilemma (Also explained in <a href=\"http:\/\/websha.de\/xstepcafe\/2009\/05\/06\/xstep-cafe-session-11\/\">Web Session 11<\/a>).<!--more--><\/p>\n<h2>Introduction<\/h2>\n<p>Archiving is one of the most neglected parts in the implementation of any software component. Sometimes the topic is included in the initial project plan but later there is either no time or no budget left and then dropped. Then, years later you suddenly realize that your system performance begins to slow down. Then the deletion of old database entries becomes a number one priority leading to an unforeseen project although you might have planned that cool new other project&#8230;<\/p>\n<p>The mere deletion of PI Sheets is an easy task in transaction CO60 (Menu: PI Sheet -&gt; Delete). However you might want to save your precious manufacturing data somewhere for later analysis. By using the Electronic Batch Record (EBR) it is possible to archive completed PI Sheets to an optical archive which is one of the requirements in regulated industries (e.g. Pharmaceuticals). Some of you might not want to do this because it involves some additional setup and others might use the new Electronic Work Instructions which do not support an EBR. To be able to archive  also in these cases a pilot note has been created.<br \/>\nThe functional coding is delivered by OSS note 1300626 which is included in ECC 6.0 EhP3, SP5 or ECC 6.0 EhP4, SP4. By creating an OSS message and aplying for pilot note 1317521 the note can be released to you to unlock this functionality (please see also OSS note 170183 on modification notes). Please also check all preconditions (e.g. setup of the archive system). After you have implemented the pilot note the following reports are available to you:<\/p>\n<ul>\n<li>RCOPOC_ARCHIVE_PROD_INST (Optical archiving of PI sheets\/Work Instructions)<\/li>\n<li>RCOPOC_WKLT_ARC_PROD_INS (Delete DB entries or display PI sheet\/Work Instruction from Optical Archive)<\/li>\n<\/ul>\n<p>Of course you can also create your own transactions using these reports but they can also be used for background processing (archiving \/ deletion).<\/p>\n<h2>Archiving<\/h2>\n<p>The first step is the selection and archiving of PI Sheets\/Electronic Work Instructions which are either<\/p>\n<ul>\n<li>Completed<\/li>\n<li>Discarded<\/li>\n<li>Cancelled<\/li>\n<\/ul>\n<p>There are several selection criteria available (report RCOPOC_ARCHIVE_PROD_INST):<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-7.png\" alt=\"\" \/><\/p>\n<p>Note the flag for direct archiving. This is used to bypass the following screen where you can select one or more object you want to archive (useful for background processing):<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-8.png\" alt=\"\" \/><\/p>\n<p>You also get a nice log:<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-9.png\" alt=\"\" \/><\/p>\n<h2>Selection for Deletion\/Display<\/h2>\n<p>To delete the database objects or retrieve the archived data using report RCOPOC_WKLT_ARC_PROD_INS you have the following selection screen:<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-10.png\" alt=\"\" \/><\/p>\n<p>Note the flag for direct deletion of objects without the pre-selection screen. This is very useful for background processing. Another nice feature is the possibility to select by archiving details like archiver&#8217;s name or archiving date. If you do not omit the pre-selection screen you get a list of all archived objects. There is a special column to indicate whether the object is still present in the database.<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-11.png\" alt=\"\" \/><\/p>\n<h2>Deletion<\/h2>\n<p>From there you can either delete:<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-12.png\" alt=\"\" \/><\/p>\n<h2>Display Archive<\/h2>\n<p>Or you can display any archived object. In the following screens you see that the same style is used as for the EBR. It includes a lot of additional data that normally is presented interactively from within the PI Sheet or Electronic Work Instruction reading some data from the back end. Of course when you have deleted all the back end data it needs to be included all in the archived object which is the reason why the archived style has much more information included. here are some screens:<br \/>\n<img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-13.png\" alt=\"\" \/><\/p>\n<p><img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-14.png\" alt=\"\" \/><\/p>\n<p><img src=\"http:\/\/websha.de\/xstepcafe\/wp-content\/uploads\/2010\/05\/moz-screenshot-15.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The only way to archive PI Sheets and delete the corresponding database tables is to use the EBR functionality. For all other cases (Test PI Sheets or PP-based Electronic Work Instructions) archiving is not possible. However, deletion of old entries from the database becomes essential for maintainng the performance of the ERP system. In this article I describe a pilot note which solves this dilemma.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[72],"tags":[51,74],"_links":{"self":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/1040"}],"collection":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/comments?post=1040"}],"version-history":[{"count":7,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/1040\/revisions"}],"predecessor-version":[{"id":2159,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/1040\/revisions\/2159"}],"wp:attachment":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/media?parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/categories?post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/tags?post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}