SAP Function SAMPLE_PROCESS_00702910 - Interface Definition for Event 00702910

Parameter Reference Type Length Text
E_UPDATE_ACCHD C C 0 Perform Update on ACCHD
E_UPDATE_ACCIT C C 0 Perform Update on ACCIT

Parameter Reference Length Optional Text
T_ACCCR ACCCR 162 FI/CO document currency information
T_ACCHD ACCHD 332 FI/CO document header information
T_ACCIT ACCIT 3308 FI/CO document item information


DEFINE &TEXT& = 'Post RE Document: RE_DOCUMENT_COMPLETE'
DEFINE &EVENT& = '00702910'
DEFINE &TYPE& = 'PROCESS'
INCLUDE FI_OPEN_FI_DOCUMENTATION_1 OBJECT DOKU ID TX

Event
The documents from the Real Estate component are mainly posted to FIusing accountancy interfaces.
With this function module, you can make additional substitutions beforecopying the document data for posting to FI that are not available inthe accountancy interface (see Note 42615).

Description of Interface:
The following tables are copied to the function module:

  • T_ACCHD - Document header

  • T_ACCIT - Document items

  • T_ACCCR - Amounts and currencies

  • You can modify the fields in tables T_ACCHD and T_ACCIT, but the systemonly takes account of the changes in the fields that exist instructures VIRE_ACCHD_CUT and VIRE_ACCIT_CUT.
    To ensure better performance, take note of the following two exportparameters at the end of your coding:
    • E_UPDATE_ACCHD

    • E_UPDATE_ACCIT

    • If your substitution is to have effect in table T_ACCHD (re T_ACCIT),set the parameter E_UPDATE_ACCHD (re E_UPDATE_ACCIT) to 'X'.

      Example
      The following sample coding modifies the document header text andaccount-dependent document item texts. Both tables T_ACCHD and T_ACCITare affected


      LOOP AT T_ACCHD.
      T_ACCHD-BKTXT = 'New Document Text'.
      MODIFY T_ACCHD.
      ENDLOOP.
      LOOP AT T_ACCIT.
      case t_ACCIT-KOART.
      when 'D'. t_accit-sgtxt = 'Customer'.
      when 'K'. t_accit-sgtxt = 'Vendor'.
      when 'S'. t_accit-sgtxt = 'G/L Ledger'.
      when others.
      endcase.
      MODIFY T_ACCIT.
      ENDLOOP.
      E_UPDATE_ACCHD = 'X'.
      E_UPDATE_ACCIT = 'X'.

      Notes
      If you want to overwrite other fields, you can add new fields tostructures VIRE_ACCHD_CUT and VIRE_ACCIT_CUT.
      However you have full responsibility for the effects of thesemodifications.
      Key fields of tables, accounts, amounts SHOULD NOT BE CHANGED under anycircumstances because this could lead to inconsistencies!

459098Change of posting data with BTE 00702910
453273Periodic posting: fill POR data