SAP ABAP IMG Activity WLF_IDOC_DB_OPT (BAdI: Optimization for IDoc Processing)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-MD-MM (Application Component) Material Master
     WSTO (Package) Stock Overviews
IMG Activity
ID WLF_IDOC_DB_OPT BAdI: Optimization for IDoc Processing  
Transaction Code S_E17_83000054   IMG Activity 
Created on 20131113    
Customizing Attributes WLF_IDOC_DB_OPT   BAdI: Optimization for IDoc Processing 
Customizing Activity WLF_IDOC_DB_OPT   BAdI: Optimization for IDoc Processing 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WLF_IDOC_DB_OPTIMIZATIONS    

Use

This Business Add-In (BAdI) is used in the Agency Business (Global Trade) (LO-AB) component.

You can use this BAdI to optimize the database access for the IDoc data selection based on tables EDIDC, EDID4, and EDIDS. This filter-dependent BAdI allows you to create separate implementations, depending on the database used. Separate coding can therefore be executed for each database. The BAdI is called during execution of transaction IDoc Processing (transaction code WLF_IDOC).

The corresponding interface offers a single method: READ_IDOC_DATA. This method can be used to read relevant IDoc information, using all selection criteria entered by the user on the UI of transaction WLF_IDOC. For each selection option, the method offers a generic importing parameter (for example, IT_CRETIM, used for the user input in selection field Created at). As a result, the method returns a table with the selected IDoc data based on tables EDIDC and EDID4, and a second table that contains the latest status information record for each relevant IDoc.

Note

This BAdI is intended exclusively for database providers. It allows them to optimize functions for their database that SAP has already optimized for SAP HANA, without making modifications.

Requirements

Standard settings

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

To display the BAdI definition in SE18, choose BAdI Name and enter WLF_IDOC_DB_OPTIMIZATIONS.

The filter DBSYS_TYPE has been defined for this BAdI. When an instance of the BAdI is created, this filter is applied with the value of the static attribute DBSYS_TYPE in class CL_DB_SYS.

BAdI Implementation

  • WLF_IDOC_DBSYS_HDB

    This BAdI implementation uses an SQLScript procedure instead of calling the original data selection logic in FORM EDIDC_SELECT_DATA in include WLF_IDOC_NEW_F01. This BAdI implementation is assigned to filter value HDB.

Activities

Example

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  20131113 
SAP Release Created in