SAP ABAP IMG Activity FA_MX_ODN_2000 (BAdI: Get Document Class Based on Sales Org, Billing Type and Net Amount)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI (Application Component) Financial Accounting
     FIN1 (Package) Official document numbering
IMG Activity
ID FA_MX_ODN_2000 BAdI: Get Document Class Based on Sales Org, Billing Type and Net Amount  
Transaction Code S_EB5_05000335   (empty) 
Created on 20090408    
Customizing Attributes FA_MX_ODN_2000   BAdI: Get Document Class Based on Sales Org, Billing Type and Net Amount 
Customizing Activity FA_MX_ODN_2000   BAdI: Get Document Class Based on Sales Org, Billing Type and Net Amount 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_SD_ODN_DCLASS    

Use

This Business Add-In (Add-In) is used in the Official Document Numbering component.

This Add-In enables you to define customer specific logic to get the document class.

In the standard system, you get the document class based on the company code. In case you want to get the document class based on Sales Organization or Billing Type or Net Amount, you can do so using this BAdI.

Note

In case, you do not want to generate Official document number (ODN) for a specific billing type, you should send the document class parameter as null.

Requirements

You should only carry out this step if both of the following points apply:

  • The SAP standard processes do not suit your needs
  • You are a competent ABAP/4 programmer

Standard settings

In the standard system, the Business Add-In is not activated.

Activities

  1. After calling up the IMG activity, a dialog box appears, in which the existing implementations are displayed. Choose Change, and proceed as follows:
  2. From the tab index, choose Interface.
  3. Save your entries, and assign the implementation to a development class.
  4. Place the cursor on the method, and double-click to enter method processing.
  5. Enter the coding for the implementation between the statements method <Interface name> ~ <Name of method> and end method.
  6. Save and implement your coding. Return to the Edit Implementation screen.
  7. Save the entries on the Edit Implementation screen.

Note

You can also change an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

  1. Choose Activate.
  2. The coding you stored in the method will be run when the application program is executed.

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
FA_MX_ODN_2000 MX Mexico
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20091223 
SAP Release Created in 605