SAP ABAP IMG Activity E_IPPE_CMP_REP (BAdI for Reports in PVS)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   LO-MD-PPE (Application Component) Integrated Product and Process Engineering
     CPPER3E_WB (Package) System-Specific Parts of the iPPE Workbench
IMG Activity
ID E_IPPE_CMP_REP BAdI for Reports in PVS  
Transaction Code S_AEN_10000588   (empty) 
Created on 20050310    
Customizing Attributes E_IPPE_CMP_REP   BAdI for Reports in PVS 
Customizing Activity E_IPPE_CMP_REP   BAdI for Reports in PVS 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name IPPE_CMP_REP    

Use

Appication Component: AP-PPE.

Package: CPPEOM.

The Business-Add-In (BAdI) IPPE_CMP_REP provides methods for the selection function in the object search of the product structure. The selection function is used in the following areas:

  • Enhanced PVS load area
  • PVS-CMPID report for overview of item and assembly variants

The BAdI IPPE_CMP_REP contains the following methods:

  • You can use method ADJUST_WHERE_CLAUSE to adjust the WHERE clauses of the generated SELECT statement for the selection function according to customer specifications. This refines the search.
  • You can use method ADJUST_SELECT_OPTIONS to adjust the contents of the selection screens that are used for specifying parameters. This method also allows you to filter and change the attributes used according to customer specifications.

The BAdI IPPE_CMP_REP defines two screen enhancements that can be used to enhance the selection screens used with customer-specific attributes. These attributes allow you to further adjust the selection function according to customer requirements.

  • Screen Enhancement: Selection for Enhanced PVS Load Area
  • Screen Enhancement: Selection for the PVS-CMPID Report

Requirements

None

Standard settings

  • The Business Add-In is not active in the standard system.

  • The Business Add-In cannot exist at several positions.

  • The Business Add-In is not filter-dependent.

Activities

To activate the Business Add-In, you have to create an active implementation.

  1. To do so, choose the IMG activity by double-clicking @15@.

    Or

  2. To do so, choose the following menu in the SAP Easy Access Menu Tools -> ABAP Workbench -> Utilities -> Business Add-Ins -> Implementation.

    If implementations already exist for the selected BAdI, the system braches to a dialog box displaying a list of the existing implementations.

  3. In this dialog box, choose Create.

    The system branches to the dialog box BAdI Builder: Create Implementation.

  4. Enter an implementation name and choose Continue.

    The screen Business Add-In Builder: Change Implementation appears.

  5. In the field Implementation Short Text enter a short desctiption.
  6. Select the tab page Interface.

    In this tab page, the field Name of implementing class is filled automatically as the system assigns the class name using the name of the implementation.

  7. Save your entries and assign the implementation to a package.
  8. Position the cursor on one of the methods. Access the class builder with a double click.
  9. Enter the coding for the implementation between the instructions method <Interface-Name>~ <Method nAME>.and endmethod.
  10. Save and activate your coding and return to the screen Change Implementation.
  11. Save your data again.

    Note: It is possible to create an implementation for a BAdI and activate it later. In this case, you should exit processing here.

  12. Choose Aktivate.

During the execution of the application program, the system now runs through the coding you saved in the method.

You can find additional information in the SAP Library under SAP NetWeaver Components -> SAP Web Application Server -> ABAP Workbench (BC-DWB)-> Changing the SAP Standard (BC) -> Business Add-Ins -> Implementing a Business Add-In.

Example

Example: Add Customer-Specific Fields in the Load Area of the iPPE Workbench

  • Implement the BAdI.
  • On the 'Subscreens' tab page, define a screen for the 'Enhancements: Selection for Load Area' row with which the iPPE Load dialog box is to be enhanced.
  • The selection fields on the defined screen are displayed below the available selection fields.
  • For the customer-specific area of the Load dialog box, use a screen that is defined via the 'selection-screen' statement in a report or module pool. See the example below:

selection-screen begin of screen 0002 as subscreen.

select-options:

so_fld1 for pvcmpd-zzfield1,

so_fld2 for pvcmpd-zzfield2,

so_fld3 for pvcmpd-zzfield3.

parameters: p_param1 type xfeld.

selection-screen end of screen 0002.

  • You can use additional language elements for creating the selection screens.
  • You do not need to carry out any additional implementations for customer-specific fields that were added using customer includes in order for the entries to be used in the selection (this includes the fields pvcmpd-zzfield1, pvcmpd-zzfield2, pvcmpd-zzfield3).
  • You can enhance the selection screen via additional parameters. You can evaluate the parameter value by implementing the methods ADJUST_WHERE_CLAUSE and ADJUST_SELECT_OPTIONS.

Example: Using Method IPPE_CMP_REP~ADJUST_SELECT_OPTIONS

  • The method provides the following information:
    • IT_DDIC_FIELDS: Contains information about the DDIC reference for the fields used.
    • CT_SO_INFO: Contains the values specified by the user on the selection screen, which can be revised in this method.
  • In method ADJUST_SELECT_OPTIONS, you can change the values for the selection options, if, for example, values are dependent on one another because of customer-specific logic.
  • In the example above, you may not want to include the entries in the selection option so_fld3 when the parameter p_param1 is set. These can be deleted from the table CT_SO_INFO.

Example: Using Method IPPE_CMP_REP~ADJUST_WHERE_CLAUSE

  • The method provides the following information:
    • IT_SO_INFO: Contains the data from the selection options as well as the parameters of the selection screen used.
    • IT_DDIC_FIELDS: Contains DDIC information about the iPPE fields used in the selection.
    • CT_COND: Contains the dynamic WHERE clause that is used to find iPPE objects in the subsequent SELECT statement in the database.
  • You can revise the table CT_COND in order to exclude certain fields from the selection, for example. To do so, you must adjust the texts contained in the table.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050310 
SAP Release Created in 600