Maintenance Order Program SAP
Maintenance Order Program SAP
************************************************************************
* Print Drive ABAP for CONTROL TICKET *
* *
* Standard FORM is PM_COMMOM *
* *
*----------------------------------------------------------------------*
* ABAP STEPS: *
* 1: IMPORT data to print. *
* *
* 2: Parse of Data to print FORM. *
* The external text tables will be read as necessary. *
* *
* 3: Save Print-Protocol records in PMPL *
************************************************************************
*$*$ D A T A S E C T I O N I N C L U D E S ---------------------*
INCLUDE RIPRID01. " General DATA and TABLE struct.
*------------------*
START-OF-SELECTION.
*------------------*
PERFORM PRINT_PAPER. "can be started via SUBMIT or PERFORM PRINT_PAPER
*----------------------------------------------------------------------*
* FORM PRINT_PAPER *
*----------------------------------------------------------------------*
* Main driving Form behind the Printing of Papers *
* All information is imported from MEMORY *
*----------------------------------------------------------------------*
* --> FORM Name of SAPSCRIPT form to use. *
* --> WWORKPAPER Print options for SAPSCRIPT. *
* Structure command to define wworkpaper so the *
* individual fields can be addressed. *
* --> DATA STRUCTURES See form DATA_IMPORT INCLUDE RIPRID01 *
*----------------------------------------------------------------------*
*$*$ - P R I N T P A P E R
FORM PRINT_PAPER. " This form name must be used !!!
*$*$ - STARTED BY EXTERNAL PERFORM
PERFORM ORDER_DATA_IMPORT. " See INCLUDE RIPRIf02
PERFORM MAIN_PRINT. " Print the PAPER now
ENDFORM.
*$*$ MAIN PRINT SECTION CONTROLLED HERE................................
*... If you are making changes to Print ABAPS, (Naturally a copied
*... version) here is the place you can alter the logic and
*... and data supplied to the form. You should not alter logic
*... before this point if you wish it to operate successfully
*... with the standard transactions. Form PRINT_PAPER must exist !!
*... However if you wish the PRINT LOG to work you must take
*... care to make sure the LOG records are written to PMPL.
*......................................................................
FORM MAIN_PRINT.
*... Workpaper is controlled at a HEADER LEVEL (ORDERS)
*... ONLY THOSE OPERATIONS WITH A VALID CONTROL KEY FOR PRINT will
*... be LISTED.