SAP ABAP IMG Activity ECH_PE_CHECK_BEFORE_ (BAdI: Customer-Specific Check Before Saving in Payload Editor)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-FS-ECH (Application Component) Error and Conflict Handler
     FS_ECH_CUSTOMIZING (Package) ECH Customizing
IMG Activity
ID ECH_PE_CHECK_BEFORE_ BAdI: Customer-Specific Check Before Saving in Payload Editor  
Transaction Code S_BT6_28000047   (empty) 
Created on 20101125    
Customizing Attributes ECH_PE_CHECK_BEFORE_   BAdI: Customer-Specific Check Before Saving in Payload Editor 
Customizing Activity ECH_PE_CHECK_BEFORE_   BAdI: Customer-Specific Check Before Saving in Payload Editor 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ECH_PE_CHECK_BEFORE_SAVE    

Use

You use this Business-Add-In (BAdI) in the Forward Error Handler (CA-FS-ECH) component. You use this BAdI to determine that the changes to the payload of a postprocessing order can be saved only if certain conditions are met. One of these conditions could be that the user has added an extensive text or an attachment.

The BAdI uses the CHECK_SAVE_ALLOWED method that checks whether saving is permitted.

If you implement this BAdI, you need to trigger the exception CX_FEH_PE_SAVE_NOT_ALLOWED if you want to save a change in payload editor that does not fulfill your conditions. The data is not saved and the user receives a message.

If you want to use your own messages, you can derive new exception classes and assign them to your messages.

Requirements

Standard settings

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab page in the BAdI Builder (transaction SE18).

Activities

For more 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.

Example

The follow sample implementation is available:

  • ECH_TEST_PE_CHECK_BEFORE_SAVE

    This sample implementation is assigned to a generic message that indicates that saving is not permitted.

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 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20101125 
SAP Release Created in 703