Ansicht
Dokumentation

CRM_PRC_AGRMNTS_CREA - BAdI: Determine Price Agreements to Be Generated

CRM_PRC_AGRMNTS_CREA - BAdI: Determine Price Agreements to Be Generated

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

You use this Business Add-In (BAdI) in the Customer Relationship Management (CRM) and Service Contract (CRM-BTX-CTR-SCO) components.

You can use this BAdI for a service contract item in the financing contract to have the system automatically generate a price agreement for each product entered in the corresponding product list. This enables you to enter automatically a discount for the product contained in the product list when this is called by a follow-up document as part of the service, and to specify the type and amount of the discount.

  • In the standard system, the BAdI implementation is not activated. The default values listed below are set automatically if a user-defined implementation is not activated.
  • SAP does not provide default code.
  • The BAdI is not filter dependent and is not designed for multiple use.

The BAdI is called after you have created and changed the corresponding service contract item product list. The BAdI contains the following two methods:

  • GET_CONDITION_TYPE: Specifies the condition type that is used as the discount condition in the price agreement to be generated.
  • SET_PRICE_AGRMNT_DATA: Specifies the price agreement to be generated.

Once you have specified the discount condition using GET_CONDITION_TYPE, the system deletes all price agreements for the service contract item that have this condition type. You then specify the price agreement to be generated using SET_PRICE_AGRMNT_DATA.

If no data is entered for the customer in the implementation, the program uses the following values:

  • Condition type: 0PAR
  • Use of condition technique: PR
  • Condition application: CRM
  • Condition table: SAP00090
  • Condition amount: -100
  • Condition currency: %
  • Condition calculation rule: A

Note:

Note that a condition type that can be set in both methods must be identical.

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

This BAdI uses the interface IF_PRC_AGRMNTS_CREATE. For more information, display the interface in the Class Builder.






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3290 Date: 20240523 Time: 163852     sap01-206 ( 104 ms )