Professional Documents
Culture Documents
FB60: User Exit For Deactivating Functions: Symptom
FB60: User Exit For Deactivating Functions: Symptom
Symptom
In the FI EnjoySAP Transactions, you want to deactivate some functions (for example, 'Park'
or 'Post') that are active by default.
Other Terms
FB50, FB65, FB70, FB75
Solution
The following changes implement a BTE event where you can deactivate function codes. You can
see from the documentation how to use the user exit.
If you use Release 4.6B Support Package 30 - 34 or Release 4.6C Support Package 18 - 26,
only point 10 of the following correction instructions is relevant.
Caution: After you have implemented this note manually, it is imperative that you delete the
new function module OPEN_FI_PERFORM_00001140_E prior to importing a Support Package.
Otherwise, it inconsistencies may occur in the function group.
1. Call Transaction SE11 and create data type EV00001140 as a data element with the
following field values:
Development class: FIBF
Short description: 'Open FI: Event 00001140'
Domain: XFELD
Field label
Length Field label
Short 10 EV00001140
Medium 10 EV00001140
Long 10 EV00001140
Heading 1 X
Documentation
1. This event runs in the FI Enjoy transactions before the PF status is set. You can fill
the internal table T_EXCTAB with function codes that are active as standard but are not to
be active in your system.
a) Import
b) Tables
T_BKPF: Table of document headers (input only)
Parameter name Type spec Ref type Deflt Pass Opt Short text
Fill table T_EXCTAB with the OK codes that are not to be active. Use table T_BKPF with
the document headers and the SYST fields to determine the actions that are not to be
executed by the user. Import parameter I_PARKED has value 'X' if the document was
already parked. For example, you could prohibit the posting in the parking transactions
(OK code 'BU') if the user name in the document header is the same as the current user.
This allows you to implement the dual control easily.
5. Call Transaction SE37 and choose menu path 'Goto -> Function groups -> Create group'.
6. Create function group BFFMSMPL4 with the following attributes:
Short text: 'Sample modules 4'
Package: FIML
Application: S
7. Call Transaction SE37 and create function module SAMPLE_INTERFACE_00001140 with the
following attributes:
Function group: 'BFFMSMPL4'
Short text: 'Interface description for Event 00001140'
Parameter name Type spec. Ref type Deflt Pass Opt Short text
I_PARKED TYPE XFELD X X Doc already parked
Tables
Event Text
00001140 POST DOCUMENT: Exclude OK Codes (Enjoy)
Parameter name Type spec Ref type Deflt Pass Opt Short text
I_DOCUMENT_EXISTS TYPE CHAR1 X X Doc already exists
existing
13. Implement the attached program corrections.
Manual Activities
Attributes
Key Value
Software Components
Software Component And subsequent
SAP_APPL
SAP_APPL
SAP_ABA
SAP_ABA
Correction Instructions
Software Component Number of Correction Instructions
SAP_APPL 2
Support Package
Software Component Version Support Package