SAP ABAP IMG Activity BADI_PDF_CUSTOMER (Enhancement of Shift Report By Customer's Own Tables)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PP-SFC (Application Component) Production Orders
     COCF (Package) Order and Confirmation Data
IMG Activity
ID BADI_PDF_CUSTOMER Enhancement of Shift Report By Customer's Own Tables  
Transaction Code S_E36_82000284   (empty) 
Created on 20080215    
Customizing Attributes BADI_PDF_CUSTOMER   Enhancement of Shift Report By Customer's Own Tables 
Customizing Activity BADI_PDF_CUSTOMER   Enhancement of Shift Report By Customer's Own Tables 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name COCF_BD_SR_PDF_CUSTOMER    

Use

With the BAdI COCF_BD_SR_PDF_CUSTOMER, you can 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. You can use the BAdI only for shift reports provided for work centers and hierarchies.

In this BAdI, you can specify the names of one or more structures, for example, in order to build customer-specific tables from them, which can then be displayed in the shift report. With the BAdI, you define the content of these tables. In Customizing for the Shift Report, you define the layout of these tables in the IMG activity Define Shift Report Types. In this layout you also specify the heading for displaying the table in the shift report.

In the BAdI, you can additionally specify 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 in which you can specify a text of any length. You can format the text in the BAdI. This text is then outputted in the shift report correctly formatted. 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 output this long text only.

You will find an example of how to insert long texts and tables in the shift report in the example class CL_COCF_SR_PDF_CUSTOMER_DEMO.

Furthermore, you can use the BAdI to specify texts that are then to appear on the cover page of the shift report.

The following methods are available:

  • With the GET_TEXT_LIST method, the texts are defined
  • With the GET_TEXT_CONTENT method, the text that is to be displayed on the cover page is fetched during the generation of the shift report
  • With the GET_TABLE_LIST method, the tables and their structures are defined.
  • With the GET_TABLE_CONTENT method, the table content is determined during the generation of the shift report.
  • The methods GET_TEXT_PREVIEW_TABLE, DISPLAY_TEXT_PREVIEW_DETAIL, and DISPLAY_TABLE_PREVIEW_DETAIL must be implemented without content. They are only used in conjunction with the business function LOG_PP_SRN_02.

Requirements

You can use the BAdI in connection with the class CL_COCF_SR_PDF only. You must define this class in Customizing for the shift report type.

Standard settings

  • In the standard system, the Business Add-In is not active.
  • The Business Add-In is not filter-dependent.
  • The Business Add-In can be used multiple times

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

Example class CL_COCF_SR_PDF_CUSTOMER_DEMO

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20080502 
SAP Release Created in 604