Ansicht
Dokumentation

SAMPLE_INTERFACE_00000900 - Interface Description of Event 00000900

SAMPLE_INTERFACE_00000900 - Interface Description of Event 00000900

CPI1466 during Backup   General Data in Customer Master  
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 00000900 (OI PROCESSING. Enrichment Before OI Display).

Function module SAMPLE_INTERFACE_00000900 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 executed prior to displaying the open items. The customer-specific fields of structure CI_RFOPS (which is included in structure RFOPS / RFOPS_S) can be filled.

INTERFACE

The list of selected items (T_POSTAB) and the document headers (T_BKPF) are passed to the add-on component for informational purposes only. This data must not be processed. Instead, an additional empty table (T_POSTABSUB) is passed. This table must be built in the add-on component with the contents of the fields that are substitutable. The TABIX field contains a row number that indicates from which row in T_POSTAB the field contents originate. If multiple add-on components use this event and, when doing so, these components fill different fields of structure RFOPS_S, you need to transfer all customer-specific fields from T_POSTAB to table T_POSTABSUB. This can be done with the move-corresponding command (see below).
SAP reserves the right to extend the structures RFOPS and RFOPS_S using appends or includes (SI_INCLUDE).

ERP05: Interface extended with optional parameter I_RF05A

Example

You want to substitute the contents of the customer field ZZTEST with the content 'TEST' in all rows of table T_POSTAB. For the most part, this requires a command sequence like this:
loop at t_postab.
t_postabsub-tabix = sy-tabix.
move-corresponding t_postab to t_postabsub. "initialize fields of CI_RFOPS
t_postabsub-ZZTEST = 'TEST'.
insert t_postabsub index sy-tabix.

endloop.

Make sure you write this code in your own module!





Parameters

I_RF05A
T_BKPF
T_POSTAB
T_POSTABSUB

Exceptions

Function Group

BFFMSMPL4

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.

Length: 2776 Date: 20240523 Time: 050615     sap01-206 ( 56 ms )