SAP ABAP IMG Activity SIMG_EXG_0062 (Business Add-In for Exchange Agreement Validation)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       OIA (Package) Exg exchanges
IMG Activity
ID SIMG_EXG_0062 Business Add-In for Exchange Agreement Validation  
Transaction Code S_SO7_65001256   BAdI Customizing 
Created on 20020827    
Customizing Attributes SIMG_EXG_0062   Business Add-In for Exchange Agreement Validation 
Customizing Activity SIMG_EXG_0062   Business Add-In for Exchange Agreement Validation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SIMG_EXG_0062    

This BAdI allows you to define check routines for exchange agreement data, which are to be performed when the agreement is created or changed. You can implement the following methods:

  • ON_HEADER_CHANGE - this is called when the header data has been changed.
  • ON_ITEM_CHANGE - this is called when a sales or purchase contract has been added.

The BAdI check routines are called:

  • During online processing of transaction O3A1 (create exchange agreement).
  • During online procession of transaction O3A2 (change exchange agreement).
  • From the BAPI "ExchangeAgreement.CreateFromData" (function module BAPI_EXGAGRMNT_CREATE).

Example

In the sample code area (choose Goto -> Sample code), you can find an example for a header and item check:

The ON_HEADER_CHANGE sample code checks whether the base location entered on the exchange header exists as a TSW location.

The ON_ITEM_CHANGE sample code checks whether the document type of the assigend sales contracts is correct.

Requirements

Standard settings

Recommendation

SAP recommends that you do not enter any message directly in your check routine, but instead to fill the RE_MESSAGES structure with the message details.

Activities

Further notes

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 SIMG_EXG_0062 0 I270009305 Exchanges 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20020827 
SAP Release Created in 46C