Ansicht
Dokumentation

/OPT/BTE_IF_00001140 - Interface Description for Event 00001140

/OPT/BTE_IF_00001140 - Interface Description for Event 00001140

rdisp/max_wprun_time - Maximum work process run time   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is an interface description only and does not contain any instructions. It is intended for developers of those additional components that provide their own function module at Event 00001140 (Change Document, Transaction Access).

Function module SAMPLE_INTERFACE_00001140 must not be changed.

If you want to create your own function module that is to be accessed at the callup point mentioned above, proceed as follows:

  1. Copy the function module to your own name range.
  2. Do not change any transfer parameters !!
  3. Write your own coding in the copied function module.
  4. Save and activate your function module.
  5. Carry out the necessary settings in Customizing. Business Transaction Events

EVENT

The event is in the PBO part of the FI posting transactions (FB60, FV60, FB01, and so on). Here you can determine which pushbuttons or menu options are to be deactivated on a user-specific basis.

INTERFACE

Table T_BKPF, with the document headers, and table T_BSEG, with the line items, are transferred to the additional component. In addition, the parameter I_PARKED is transferred; this has the value X if the document has been previously parked. You use this data to determine which actions the user is not to be permitted to perform.

Enter the OK codes that are not to be active in table T_EXCTAB. These are then hidden in the transaction.

Example

For example, in the parking transactions (such as STCODE = FV60), you can prevent posting (OK code BU) if the user name in the document header is the same as the current user. This enables you to implement the dual control principle.

Example coding:


if sy-tcode  = 'FV60'.  
  if i_parked = 'X'.  " document has already been parked
    read table t_bkpf index 1.  
    if t_bkpf-usnam eq sy-uname.  " park user = current user ?
     t_exctab-okcod = 'BU'.        " do not allow to post
     append t_exctab.  
    endif.  
   endif.  
endif.





Parameters

I_PARKED
T_BKPF
T_BSEG
T_EXCTAB

Exceptions

Function Group

/SAPLVIM_FG7A4

CL_GUI_FRONTEND_SERVICES - Frontend Services   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2774 Date: 20240423 Time: 133003     sap01-206 ( 46 ms )