A wizard makes it easy to create specific functions or
subfunctions. Its contents depend on the model and
the Insertion type you select on the first
page.
Create a function or subfunction
Some functions or subfunctions are independent of any automatic
functions or subfunctions. Others are inserted relatively to automatic
functions or subfunctions that are specific to a model: Standard
or client Dialog or Business Component.
The information that is displayed in the wizard varies accordingly.
Insertion relative to the 05 hierarchical level in a Business Component
You can insert specific processing or replace standard
processing in the generated blocks. These blocks have a 05 hierarchical
level. These blocks are the Business Component initialization and
end blocks, the SQL declarations block, and the Logical View blocks
(available on a Macro only). The block and the action type that you
select indicate where the specific processing is to be inserted.
Insertion relative to SQL processing in a Business Component
You can insert specific processing in the SQL clauses WHENEVER and DECLARE
CURSOR. These clauses have a 10 hierarchical
level. You must insert subfunctions in the specific function (level 05)
that you attached to the FSQL block. In the created
subfunctions, you can then insert subfunctions with a lower hierarchical
level. It is advised to insert them in relative mode because they
will be inserted in the subfunctions that depend on the SQL specific
function.
Insertion relative to the Logical View processing in a Business Component
The code that is generated for a Logical View is in the
program body or in the elementary levels that are run by PERFORM.
This code contains the standard processing for the implementation
of the services in the Logical View. This standard processing is associated
with only one Logical View. To add a specific processing, you must
then insert it relatively to a standard processing of the Logical
View. It is inserted after the automatically generated tag or associated
condition.