Insertion of Customer's Own Texts and Tables You can insert your own section containing customers' own texts and tables into the shift report.
You have implemented the BAdI COCF_BD_SR_PDF_CUSTOMER.
Note
You can use the BAdI only for shift reports intended for work centers and hierarchies.
For the system to be able to generate the shift report, you must have set up the class CL_COCF_SR_PDF in Customizing for the shift report in the Customizing activity
Define Shift Report Types
.
You have specified that the
Customer's Own Data
section is to be displayed in the shift report in the Customizing activity
Define Shift Report Types
.
You have specified the order in which the tables or texts are to be displayed in the Customizing activity
Define Shift Report Types
. You can additionally specify a separate layout for each object. In this layout, you also specify the heading for the display of the table in the shift report.
You can use the BAdI COCF_BD_SR_PDF_CUSTOMER to define customers' own texts and lists, which are then displayed in the shift report. The BAdI is run through when a shift report is generated.
In this BAdI, you can specify the name of one or more structures, for example, to build customer-specific tables that can then be displayed in the shift report. With the BAdI, you also define the content of these tables.
In the BAdI, you can additionally define a second heading for the table to display certain information such as the number of entries from the table. However, you can also use this second heading as a text field for a text of any length you wish. You can format the text in the BAdI. This text is then outputted correctly formatted in the shift report. You can insert this text in addition to the above-mentioned table. In this case, the text is positioned above the table. However, you can also do without the table and just output this long text.
Furthermore, you can define texts with the BAdI that are then to appear on the cover page of the shift report.
You will find an example of how to insert long texts and tables into the shift report in the system documentation for the BAdI COCF_BD_SR_PDF_CUSTOMER.