SAP ABAP IMG Activity BADI_SD_CM (BAdI: Connection of SD to SAP Credit Management)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FIN-FSCM-CR-AD (Application Component) Adaptor
     UKM_GENERAL (Package) Connection to SAP Credit Management
IMG Activity
ID BADI_SD_CM BAdI: Connection of SD to SAP Credit Management  
Transaction Code S_PCO_36000386   (empty) 
Created on 20050603    
Customizing Attributes CR_257MKA   Critical User Exits (Required Activity) 
Customizing Activity BADI_SD_CM   BAdI: Connection of SD to SAP Credit Management 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_SD_CM    

Use

This Business Add-In (BAdI) provides methods that execute credit checks and commitment updates when SAP Credit Management (FIN-FSCM-CR) is connected.

You have the following options in SAP Credit Management:

BAdI methods:

  • FSCM_CREDIT_CHECK_ORDER        : Credit check in order
  • FSCM_CREDIT_CHECK_DELVRY        : Credit check in delivery
  • FSCM_COMMITMENT_UPDATE_ORDER    : Update in order
  • FSCM_COMMITMENT_UPDATE_DELVRY    : Update in delivery
  • FSCM_COMMITMENT_UPDATE_INVOICE    : Update in invoice
  • FSCM_GET_MASTER_DATA            : Read customer master data
  • FSCM_DISPLAY_CREDIT_MESSAGES    : Display credit messages

Requirements

Standard settings

In standard systems, the BAdI is shipped with an example implementation UKM_BADI_IMP1.

When SAP Credit Management and BAdI BADI_SD_CM are not activated, then the usual credit management (components SD-BF-CM and FI-AR) are used for the checks in SD and FI-AR.

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

Example code for BADI_SD_CM is available under implementation UKM_BADI_IMP1.

This implementation uses the following credit exposure categories:

  • 100: Commitment update in order
  • 400: Commitment update in delivery
  • 500: Commitment update in billing document

Note: The credit exposure category 200 is set in Badi UKM_FILL (Filling Line Items for Commitment Update. You will find this BAdI under Integration with Accounts Receivable Accounting.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 1   Mandatory 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  20050621 
SAP Release Created in 600