SAP ABAP IMG Activity CRM_SRV_ACCT_TOOL (BAdI: Determine Tool Costs and Account Assignment)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   CO (Application Component) Controlling
     IAOM_CRMSERVICE_EXEC (Package) Process Integration for CRM Service
IMG Activity
ID CRM_SRV_ACCT_TOOL BAdI: Determine Tool Costs and Account Assignment  
Transaction Code S_PCO_36000115   (empty) 
Created on 20050426    
Customizing Attributes CRM_SRV_ACCT_TOOL   BAdI: Determine Tool Costs and Account Assignment 
Customizing Activity CRM_SRV_ACCT_TOOL   BAdI: Determine Tool Costs and Account Assignment 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name CRM_SRV_ACCT_TOOL    

Use

You use this Business Add-In (BAdI) in the Product Costs Controlling (CO-PC) component.

You can use this Business Add-In to reorganize the account assignment and determination of tool costs in CRM service processes. The system calculates tool costs by using an hourly rate.

The BAdI is called either to determine planned costs for a service process or to determine actual costs for a service confirmation. You can recognize which case applies from the value type that is transferred to the BAdI.

When calculating tool costs for service processes, an account assignment object is credited. To do this, you can specify different types of account assignment objects:

Cost center / activity type (default)

Cost center

Internal order

If a cost center/ activity type is credited by the allocation, the system executes an internal activity allocation for service confirmations. If a cost center or an internal order is credited, the system executes reposting to the service confirmations.

For account assignment to the cost center / activity type, tool costs are calculated by using the activity price. In this case, do not determine the rate and currency key in the BAdI.

For account assignment to the cost center or internal order, on the other hand, you must determine the rate and currency key in the BAdI.

Requirements

Standard settings

In default implementation, the BAdI is active and is used to determine a cost center / activity type. To do this, a Customizing table is used that contains as assignment criteria characteristics from the material master for production resources.

The Business Add-In is not filter-dependent and cannot be used more than once.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

To display example coding, choose Goto -> Default Coding -> Display.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG CRM_SRV_ACCT_TOOL 0 HLA0009404 Product Cost Controlling 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050426 
SAP Release Created in 600