SAP ABAP IMG Activity SIMG_BADIFMSG (BAdI: Control Postings Using Master Data Attributes)
Hierarchy
EA-PS (Software Component) SAP Enterprise Extension Public Services
   PSM-FM (Application Component) Funds Management
     FMFG_E (Package) US Federal Government budgetary ledger account derivation
IMG Activity
ID SIMG_BADIFMSG BAdI: Control Postings Using Master Data Attributes  
Transaction Code S_P2U_59000002   (empty) 
Created on 20030905    
Customizing Attributes SIMG_BADIFMSG   BAdI: Control Postings Using Master Data Attributes 
Customizing Activity SIMG_BADIFMSG   BAdI: Control Postings Using Master Data Attributes 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name FMFG_FUNDMSG_DRV_DEF    

Use

Use this BAdI to perform additional validations in the posting process into Funds Management (FM). It is foreseen that additional authorization checks are carried-out depending on master data attributes like a fund or fund center status. With this BAdI you can set up the rules governing the nature and severity of messages when controlling specific postings.

The rules use source fields selected from the following:

  • Fund
  • Funds center
  • Commitment item
  • Funded program
  • Grant
  • User
  • Fund's status
  • Fund type
  • GL account
  • Commitment item
  • Message variables
  • Amount type
  • Value type

The target fields for the rules are selected from the following:

  • Message class
  • Message severity
  • Message number

Requirements

Standard settings

Activities

  1. Select the Create icon.
  2. In the dialog box, enter a name (Z_ABC_123) for the BAdI implementation in the Implementation Name field and press Enter.
  3. The screen for changing the BAdI implementations is now displayed.
  4. Enter a short text for the implementation in the Implementation Short text field.
  5. Choose the Interface tab.
  6. You can implement check rules as ABAP code, but implementation with the formula builder as described below is usually easier.
  7. Change the Implementation Type to Formula.
  8. Save your entries, and assign the implementation package to a customer development class .
  9. Provide transport information.
  10. Use the developer's key to proceed and save.
  11. Double click the method name to enter method processing.
  12. Choose the "Create Condition" icon.
  13. Enter a name for the first rule and press Enter.
  14. Change the "Show Me" fields to Parameters - Controlling Postings with Master Data Attributes
  15. Create the first rule # (Condition 1) and (Condition 2).
    1. Expand the subtree.
    2. Double click "True".
    3. Select "Create Exception"
    4. Enter the message number, message class, and message type. If you enter message type "Warning" or "Error" and leave the other fields empty, a default message of the specified type is issued.
  16. Repeat the above process for any additional rules and conditions.
  17. Choose Activate for this implementation.

    The code you stored in the method will be run when the application program is executed.

Further notes

This BAdI can also be implemented with ABAP code. If there is the need to check authorizations for a given user under specific conditions for certain master data attributes, an authorization object should be created and evaluated at this calling point. SAP recommends the use of customer authorization objects to perform any detailed role-user dependent controls.

In previous releases, tables FMUSERGROUP and FMGROUP supported a grouping of users for specific checks within this BAdI. Although this functionality could still be used, the use of authorization objects is preferred and recommended.

Example

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050623 
SAP Release Created in 200