SAP TRM customers sometimes have the requirement to prefill the content of a form bundle when creating a tax return in the Taxpayer Overview.
Event P320 is used for that purpose and changes form bundle data during form bundle creation.
The form bundle header data (collected from initial screen), the default forms, the empty form data (derived from customizing) is then available for further processing.
However there is no structure available in the interface of P320 to prefill a table form of the form bundle, with line items of the preceding period for instance.
Table forms are also not part of the BRFplus context and cannot be prefilled with activity 21.
To prefill a table form, it is important not to update table form data directly. Instead, the table form data must be accessed via the form data manager using methods from class cl_fmca_tf_form_data.
Step 1 - In transaction FQEVENTS, go to event P320 "TRM Form Processing: Derive Data from Initial Screen" and create an installation-specific function module
Caution: do not forget to add the coding of standard function module FMCA_EVENT_P320_BRFP so that content of other forms are also prefilled by BRFplus.
Step 2 - Prepare/Derive records to prefill the table form in a local table e.g. LT_Z001_LINES of type ZDFMCA_TF_Z001_L (this is the transparent table for the line items assigned to the table form in customizing)
Key fields of table form line item table must also be provided: