Académique Documents
Professionnel Documents
Culture Documents
Business Requirement:
1. when the document is created in sap, there is some action to be taken, for example updating to
ZTables or Information to be sent to Relevant User.
2. All reversed documents should be saved in the Ztables for further analysis or to notify the
responsible person that document has been reversed.
To accomplish this requirement, use the Business Transaction Event 1130, Post Document:
SAP Internal Field Substitution.
1
Business Transaction Events (BTE) 1130
Process diagram:
Structure
SAP provides sample function modules (called SAMPLES) for each event, which describes the
interface and can be used as a template for modules to be developed. To use a SAMPLE, copy it into
your namespace and do modification according to your requirement.
Definition
The business transaction event is an event for which an SAP program extends the system without
modification, depending on the settings in Customization.
From the
2
Business Transaction Events (BTE) 1130
SAP IMG chooses: Financial Accounting ->Financial Accounting Global Settings -> Business
Transaction Events and then go to Settings -> Process function modules ->of an SAP Application.
In the BTE (Business Transaction Events) method, function modules are called up in specified
events, to which they have been assigned in Customizing. The event interface is predefined.
Step by step process to create the Business Transaction Event 1130, Post Document: SAP
Internal Field Substitution.
Step 1:
SAP IMG choose: Financial Accounting ->Financial Accounting Global Settings -> Business
Transaction Events
Click on Execute button (Business transaction events) then go to Environment ->info system
(process)
3
Business Transaction Events (BTE) 1130
Give attribute type A (Application Component) and check short text only as shown. Press Execute.
4
Business Transaction Events (BTE) 1130
* *Note: you give this function module name to ABAP Consultant and ask to copy that function
module (into new ZFunction group) and give your requirement to him he will develop the code for
you according to your requirement.
Step 2:
Create function Group: Now open other session go to Tcode: SE37, take menu path Go to ->
function group ->create group (you can also create with Tcode SE80)
Give Function group name (must start with Z or Y) and give short description
and save in your package.
5
Business Transaction Events (BTE) 1130
Activate function Group Goto SE80 (Object navigator) select function group and give your function
group name and click on display.
Place the cursor on object name (your function group name) right click and click on activate.
Copy the function module: Now come back to the Tcode SE37 and give the function module
name SAMPLE_PROCESS_00001130 Click on copy button
It will notify you through Information Message "Function module name is reserved for sap" - click
enter
Function module is copied will see this message in the status bar.
6
Business Transaction Events (BTE) 1130
Write the code: complete document details are available in function module internal tables. You
can develop code according to your requirement.
Warning: don't change the interface. Do change only in the source code tab.
Once you finish your development and activate the Function module.
Step 3:
SAP IMG choose: Financial Accounting ->Financial Accounting Global Settings -> Business
Transaction Events -> settings-process modules->of an sap application
you will get information message "Cross table cross client" click enter
you will get information message "Don't make any changes to sap data" click enter
7
Business Transaction Events (BTE) 1130
2.
Save the entry now it will ask you for Transport request no. save.