One of the main requirements of the Print Workbench and the print processes defined by the applications is performance. In individual printing, creating a document means calling the complete SAPscript and Smart Form API. In the case of SAPscript, this takes place as follows:
If you work with the same print parameters and want to output the individual documents in the same output request, you do not need to call the OPEN/CLOSE_FORM modules. The calls have such a negative affect on performance that for each CLOSE_FORM, the output request used is not noted and for the subsequent OPEN_FORM, the system has to determine from all of the existing output requests on the database. The Print Workbench is set up so that if the calling application so requires, the calls of OPEN/CLOSE_FORM can be suppressed. The performance benefit is between 10% and 30% depending on the number of output requests in the system.
If the calling application has set the indicator OCL_ACTIVE in the print parameter structure when calling the print modules EFG_PRINT or EFG_PRINT_EXPANDED, the Print Workbench executes the open/close optimization internally.
Due to the considerable improvement in performance described above, SAP recommends that you activate this function. However, since the change to the control logic can lead to undesired side effects under some circumstances, you must be able to parameterize the function. To do this, the Print Workbench provides you with a separate field in the print parameter dialog EFG_GET_PRINT_PARAMETERS. The application has to make it visible and make a default entry.