Calling User-Defined Macros
Procedure
To call user-defined macros in user exits, proceed as follows:
-
Open the folder with the technical name OEPPR3 in the Administration area.
-
Create a new version of the PrintUExit info object.
-
Develop and test the macros for the relevant user exit.
Make sure that the macros have the same name as the user exit.
-
Check in the Word file with the macros.
The following user exits are in the macro package in the print process:
-
KW_SetHeaderFooter:
If this routine exists, it is called before the header and footer lines are created. The sections can be set in the document itself.
-
KW_DocumentCreated:
-
If this routine exists, it is called directly before the print file is stored. Additional checks or formatting can be carried out in the generated file, and it can also be stored in a different format.
If a routine with the above name exists, it is called when the print file is created.