SAP ABAP Data Element SWE_CONTFB (Function Module for Access to Event Container)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-BMT-WFM (Application Component) SAP Business Workflow
     SWE (Package) Business Workflow: Events
Basic Data
Data Element SWE_CONTFB
Short Description Function Module for Access to Event Container  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type FUNCNAME    
Data Type CHAR   Character String 
Length 30    
Decimal Places 0    
Output Length 30    
Value Table TFDIR    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short  
Medium  
Long 20 Function module 
Heading 17 Function module 
Documentation

Definition

Function module called immediately before the actual event creation.

Since the events are determined and triggered on the basis of the change document, specific event parameters are not provided with values. You can set these events parameters using the function module.

The interface of the function module is described using the following templates:

  • SWE_CD_TEMPLATE_CONTAINER_FB
  • SWE_CD_TEMPLATE_CONTAINER_FB_2

Use

The function module SWE_CD_TEMPLATE_CONTAINER_FB is used to describe the interface for the handling of BOR objects. This is still supported for reasons of compatibility.

Since BOR objects and classes are supported, a new version of the interface has been defined. This is described using the function module SWE_CD_TEMPLATE_CONTAINER_FB_2. This interface enables processing of both BOR objects and classes.

The new interface should be used for new function modules. With this interface, the event container is passed as an object reference. Since there is no conversion into the internal table of the BOR container involved, this interface gives better performance.

Existing function modules can still be used providing no information is lost.

Dependencies

Example

Supplementary Documentation - SWE_CONTFB0001

Use

With this function module the event container can be modified and added to.

The function module will, if it is entered, be called up after the writing of a change document with the triggering of an event.

In the implementation of the function module you can access via the parameter CHANGEDOCUMENT_POSITION single items of the change document and place corresponding information about the change document in the event container.

Procedure

Examples

You can consult the function module SWE_MODIFY_EVENT_CNTN_TEMPLATE which can be used as a pattern and a reference.

Dependencies

So that you can also access the values that were created in the event parameter in a binding definition, you must create the corresponding element in the event container. You do this in the Business Object Builder.

History
Last changed by/on SAP  20110908 
SAP Release Created in