Displaying Goods Movements in the Shift Report: Example

Use

For the BAdI COCF_BD_SR_PDF_CUSTOMER there is an example implementation that enables you to include goods movements for orders that were posted within the period of the shift report but do not belong to a confirmation.

Prerequisites

  • You have implemented the example implementation.

  • To be able to generate the shift report, you must use the class CL_COCF_SR_PDF in Customizing for the Shift Report Type .

  • To select the goods movements, the system uses the date and time of the actual entry and not the document date or the posting date of the goods movements. For this reason, you must create another new index for the database table MKPF . This enables you to avoid long runtimes.

Features

The class CL_COCF_SR_PDF_CUSTOMER_DEMO is used in the example implementation.

Through the implementation of this example, the following functions are made available in the shift report:

  • A list of the goods movements entered in the period of the shift report. The system determines only the goods movements belonging to the operations the order contains in which the work center for which the shift report belongs is entered.

  • In addition, you can specify that the system is to create a listing of the affected orders on the cover page.