Insertion relative to the logical access level in a Business Component
You can insert specific processing in the logical accesses to Segments. These accesses are required to run the services on the Logical View: check, update, and selection.
The information that you enter specifies the position of the created subfunction. It is displayed in the Macro code as:
REF=Processing type Segment Category Elementary processing
- REF=SLCT SS01 CATR ALIM
- REF=CHCK SS01
- Processing type
- A logical access includes three possible processing types:
- CHCK: Check. You can
insert a specific processing relatively to one of the following levels:
- Level 10 for a Segment access for data check
- Level 15 for a Segment access for data check by category
- Level 20 for a Segment access for data check by category and by elementary processing type
- SLCT: Selection. You can
insert a specific processing relatively to one of the following levels:
- Level 10 for a Segment access for data selection
- Level 15 for a Segment access for data selection by category
- Level 20 for a Segment access for data selection by category and by elementary processing type
- UPDT: Update. You can
insert a specific processing relatively to one of the following levels:
- Level 10 for a Segment access for data update
- Level 15 for a Segment access for data update by category
- Level 20 for a Segment access for data update by category and by elementary processing type
You can parameterize the processing type to identify it in various use contexts. To do so, enter a $ symbol followed by a digit or a letter directly in the field.
- CHCK: Check. You can
insert a specific processing relatively to one of the following levels:
- Segment code
- Enter or select the code of the Logical View type Segment to which the specific processing applies.
- Elementary processing
- You can specify the elementary processing (level 20)
relatively to which you want to insert a specific processing. If you
do not select any value, the specific processing applies to all the
elementary processing types. The following three elementary processing types are possible:
- ALIM: Keys loading
- CALL: Call to call the physical access processing (by PERFORM)
- ERRS: Errors handling
You can parameterize the elementary processing to identify it in various use contexts. To do so, enter a $ symbol followed by a digit or a letter directly in the field.
- Category
- You can specify a category relatively to which you want to insert
a specific processing. If you do not select any value, the specific
processing applies to all the categories. The following categories are possible:
- CATT: Iterative (number of occurrences =1)
- CATR: Iterative (number of occurrences >1)
You can parameterize the category to identify it in various use contexts. To do so, enter a $ symbol followed by a digit or a letter directly in the field.
- Action type
- Specific processing is inserted in a Business
Component relatively to the standard generated processing. You can
then benefit from the generated processing and adapt it to your needs. You
indicate where the specific processing is inserted relatively to a
standard processing of the Logical View. You must select one of the following values to insert the specific processing:
- Begin. The specific processing is inserted at the beginning of the standard processing after the start tag. This positioning can be used only for the processing that is run by PERFORM. It is not available for all the general processing types. The positioning of this specific processing is identified by ACTION=*B in the Macro code.
- Insert before a standard SQL clause.
The specific processing is inserted before the start tag of the standard
processing.
In the Macro code, the positioning of this specific processing is identified by ACTION=*A. In the Business Component code, it is identified by @BEFORE.
- Insert after a standard SQL clause.
The specific processing is inserted before the end tag if the hierarchical
level is greater than the level of the standard processing. It is
generated after the end tag if the hierarchical level is identical
to the level of the standard processing.
In the Macro code, the positioning of this specific processing is identified by ACTION=*P. In the Business Component code, it is identified by @AFTER.
- Replace a standard SQL clause. This
choice can be activated only if no specific subfunction has already
been inserted in the SQL clause relatively to the attachment point
(WHENEVER clause or DECLARE CURSOR clause
on the same Segment). If a specific subfunction has already been inserted
relatively to the attachment point, you must first remove it.
In the Macro code, the positioning of this specific processing is identified by ACTION=*P. In the Business Component code, it is identified by @REPLACE.