SAP Function SAMPLE_PROCESS_00001120 - Beschreibung der Prozess-Schnittstelle 00001120

Parameter Reference Type Length Default Optional Text
I_BKDF BKDF u 60 X Belegkopfergänzung für Dauerbuchung

Parameter Reference Type Length Default Optional Text
I_BKDFSUB BKDF_SUBST u 17 X Prozess-Schnittstellen: Substituierbare Felder beim Buchen

Parameter Reference Length Optional Text
T_BKPF BKPF 697 Belegköpfe
T_BKPFSUB BKPF_SUBST 56 Inhalte der substituierten BKPF-Felder
T_BSEC BSEC 532 X Belegsegment CPD-Daten
T_BSEG BSEG 2012 Belegzeilen
T_BSEGSUB BSEG_SUBST 144 Inhalte der substituierten BSEG-Felder


DEFINE &TEXT& = 'Substitution document fields'
DEFINE &EVENT& = '00001120'
DEFINE &TYPE& = 'PROCESS'
INCLUDE FI_OPEN_FI_DOCUMENTATION_1 OBJECT DOKU ID TX LANGUAGE EN

PROCESS
This process is always reached when all the final checks have beencompleted before a document is updated. However, at this stage, thedocument number has not yet been assigned.

INTERFACE
The current document headers (there will be more than one forcross-company code transactions, for example), the corresponding lineitems and the recurring entry data for the document header and theone-time account data are transferred to the additional component, forinformation purposes only. You must not edit this data. Instead, twoadditional tables (T_BKPFSUB and T_BSEGSUB) and the structure BKDF_SUBSTare also transferred. The contents of the fields that can be substitutedare entered in these tables. Field TABIX contains a line number whichshows from which line in T_BSEG or T_BKPF the field contents originate.
Note: There is no additional check after the substitution. You must notoverwrite an existing payment lock (for example, due to a workflowdefinition).

Example
In the second line of table T_BSEG, the field contents from SGTXT (itemtext) should be replaced by the entry 'TEST'. This basically requires astatement sequence in the form
READ TABLE T_BSEGSUB WITH KEY TABIX = 2.
T_BSEGSUB-SGTXT = 'TEST'.
MODIFY T_BSEGSUB INDEX SY-TABIX.
You must code this statement sequence in your own function module.