You are on page 1of 5

Event Concept

PDF download from SAP Help Portal:


http://help.sap.com/saphelp_erp60_sp/helpdata/en/87/e8c5536a51204be10000000a174cb4/frameset.htm

Created on June 10, 2016

The documentation may have changed since you downloaded the PDF. You can always find the latest information on SAP Help
Portal.

Note

This PDF document contains the selected topic and its subtopics (max. 150) in the selected structure. Subtopics from other structures are not included.

© 2016 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose
without the express permission of SAP SE. The information contained herein may be changed without prior notice. Some software products marketed by SAP
SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are
provided by SAP SE and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP
Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set
forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional
warranty. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE in
Germany and other countries. Please see www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

Table of content

PUBLIC Page 1 of 5
© 2014 SAP SE or an SAP affiliate company. All rights reserved.
Table of content
1 Event Concept
1.1 Customer-Specific Enhancements
1.1.1 Customizing
1.1.2 Creating Installation-Specific Modules

PUBLIC Page 2 of 5
© 2014 SAP SE or an SAP affiliate company. All rights reserved.
1 Event Concept

Purpose
The event concept enables the integration of industry-specific and customer-specific processes and data in the existing system architecture of Contract
Accounts Receivable and Payable for a new implementation and in production operation.

Features
Using installation-specific and industry-specific function modules that you define in Customizing, you can enhance the standard business processes of
Contract Accounts Receivable and Payable in predefined program events seamlessly and without modifications. Depending on the event, you can either
realize an alternative program logic or additional functions.

1.1 Customer-Specific Enhancements

Purpose
The event concept enables you to integrate your own source text passages encapsulated and therefore exchangeable in function modules at specific points in
the program logic, the events, using defined interfaces.

Procedure
With Contract Accounts Receivable and Payable , SAP delivers a sample function module for each event. This module defines the interface of this event,
where there is usually no process logic implemented. In addition to this sample module, each industry component (application) can define standard function
modules in each event for conversion of industry-specific process logic. To adjust the processed defined by SAP to internal requirements, each customer can
also implement an additional customer module in each event in his installation.
The figure below makes this three layer architecture in the program logic clearer.

Program Logic on Reaching an Event (no Additional Function)

You manage these events and their function modules in the Implementation Guide for Contract Accounts Receivable and Payable under Program
Enhancements ® Define Customer-Specific Function Modules
The function module FKK_FUNC_MODULE_DETERMINE is processed for each event. From the following tables, it sequentially determines the event
modules defined in Customizing that are to be processed:
TFKFBM (sample function modules of Contract Accounts Receivable and Payable )
TFKFBS (Standard function modules for applications)
TFKFBC (Installation-specific function modules)
The technical name of the sample function module is made up of the technical ID FKK_SAMPLE_ and the name of the event. In the case of a sample module
defined for event 0010, the name would be FKK_SAMPLE_0010.
In addition to the events available to all industry components, there are additional industry-specific events that you can recognize from the encryption of the
application area in the technical name.

Overview of the Naming of Events

From Event To Event Application

0 9999 Application-independent

PUBLIC Page 3 of 5
© 2014 SAP SE or an SAP affiliate company. All rights reserved.
R0 R999 Utilities industry

V0 V999 Insurance

T0 T999 Telecommunications

P0 P999 Public Sector

X0 X999 Partner Development

Z0 Z999 Customer development

S0 S999 SAP Contract Accounts Receivable and Payable

In the Function Builder (transaction SE37), you can call up the function modules and their documentation. For a deeper, technical analysis, use the Object
Navigator (transaction SE80).

1.1.1 Customizing

Use
You manage the events provided and their function modules in the Implementation Guide for Contract Accounts Receivable and Payable under Program
Enhancements Define Customer-Specific Function Modules. You also define your installation-specific function modules here.

Features
When you call up the activity Define Customer-Specific Function Modules , on the left side of the screen, a list appears with all of the events; you can
double-click on them to select them. On the right side of screen, the tab page Documentation contains the documentation for the sample function module.
The tab page Function Modules shows the sample and standard function modules defined for this event.
If the indicator is set in the column Additional Functions in the area Sample Function Modules , you can define other, additional modules for the event
selected; in this case, all other modules listed in the areas Standard Function Modules and Installation-Specific Function Modules are executed. Generally,
you should set the indicator if the program in which the event is processed only provides data but does not expect any data to be returned. These are usually
events for which additional checks or other additional actions are to be run. An example is event 0010, which is frequently used to update additional industry-
specific and/or customer-specific data. Do not set the indicator Additional Function if return values are expected for the event and these values are required
for further processing. If several function modules were called up, these could return different values and the system would not be able to decide with which
value to continue processing.
The following is valid:
If the indicator Additional Functions is not set, standard function modules are processed before the customer modules.
If the indicator is set, only one module is called for this event. In this case an installation-specific module has priority over the standard module.

Example
If you carry out substitutions for a business partner item entered manually in event 1122, the total business partner item (FKKOP) is transferred and
expected to be returned.
If you look at event 0990 in Customizing, you can see that a standard function module is defined that the program logic determines when it reaches
this event. The standard function module has the indicator No Customer Module . This means that the installation-specific modules (customer
modules) defined for this event are not considered when the program logic reaches this event.

1.1.2 Creating Installation-Specific Modules

Use
You can portray customer-specific processes in your own function modules.

Prerequisites
To apply the event concept, you need knowledge of the program flow and the data structures.

Activities
If you want to realize an SAP standard function in an alternative form, proceed as follows:
1. Analyze the standard function module of the relevant application as delivered by SAP.
2. To supplement the functions of the standard module (not additional functions ), copy the sample function module to your own function group with a new
name. In the copy, remove the coding. If you also want to receive the standard functions, first add a call of the standard function. You can then change
the data returned in accordance with your installation-specific requirements before you return the data to the calling application.
If you want to realize an additional function, copy the sample module and replace the coding with the coding that you require.
3. Activate the module.
4. Enter your function module in the Implementation Guide for Contract Accounts Receivable and Payable under Program Enhancements Define
Customer-Specific Function Modules for the relevant event.
When you start the program, the system automatically calls up the event module that you have configured.

PUBLIC Page 4 of 5
© 2014 SAP SE or an SAP affiliate company. All rights reserved.
PUBLIC Page 5 of 5
© 2014 SAP SE or an SAP affiliate company. All rights reserved.

You might also like