Insertion relative to the automatic functions of a standard or client Dialog
You must enter information to insert the created subfunction relatively to the automatic functions and subfunctions of the model. This information varies according to the automatic function.
- Data Element code
- This field is specific to function 20. This function contains a subfunction for
each Data Element of the Screen to be checked.
For an insertion in a Macro, select a Data Element in the list that opens when you click the button that is associated with the field. In the Macro code, this piece of information is identified as REF=DELCO, where DELCO is the code of the selected Data Element.
For an insertion in a Screen, first check which Data Elements are called in the Screen -CE Lines. In the subfunction creation wizard, press the button that is associated with the Data Element code field. Select one of the Data Elements that are called in the Screen. In the Screen code, this piece of information is identified as F20C-DELCO. In this line, F20 is the automatic function code. C is the category of the Data Element call in the Screen -CE Lines (A for the header, R for the repetitive part, or Z for the screen bottom). DELCO is the selected Data Element.
- Segment code
- This field is specific to functions 25, 35, and
60, which contain a subfunction for each Segment accessed. The subfunction that
contains the specific processing is then identified by the Segment code that it processes. This code
must be complemented with the category if the same Segment is used in several
categories.Note: Function 80, which contains a subfunction for each access type to each Segment, cannot be accessed from this wizard page. It is common to Screens and Business Components. To insert a specific processing in this function, create a subfunction in function 80 without selecting any model for the insertion.
For an insertion in a Macro, select a Segment in the list that opens when you click the button that is associated with the field. In the Macro code, this piece of information is identified as REF=SEGM, where SEGM is the code of the selected Segment.
For an insertion in a Screen, first check which Segments are called in the -CS Lines tab of the Screen. You must also note their use (reception for example) and their category (repetitive category for example) in the Screen. In the subfunction creation wizard, press the button that is associated with the Segment code field. Select one of the Segments that are called in the Screen. Its use must correspond to the automatic function you selected on the first page of the wizard. For example, you can insert a specific subfunction in the 25 automatic function only if a Segment is used in reception in the Screen.
- Category
- This field is specific to the following functions:
- In functions 25, 35, and 60, if the Segment is called in several categories, you must differentiate the calls by specifying the category.
- In functions 30 and 65, a subfunction exists for each access to a category. The subfunction where the specific processing is to be inserted is identified by the category code.
You must select one of the following values:- A for the header category
- R for the repetitive category
- Z for the screen bottom category
In the Macro code, this information is identified as REF=SEGM CAT, where SEGM is the code of the selected Segment and CAT is the category.
For an insertion in a Screen, you must select the same category as the category that is indicated for the Segment in the Screen -CS Lines.
- Action type
- In this field, you specify how the new subfunction is to be inserted relatively to the automatic
subfunctions in functions 25, 35, and 60. You
must select one of the following values:
- Insert before. The subfunction is inserted before the automatic
subfunction that is identified by the Data Element or Segment it processes.
In the Macro code, this insertion type is identified by ACTION=*A. In the Screen code, it is identified as @BEFORE.
- Insert after. The subfunction is inserted after the automatic subfunction
that is identified by the Data Element or Segment it processes.
In the Macro code, this insertion type is identified by ACTION=*P. In the Screen code, it is identified as @AFTER.
Note: The condition of an automatic subfunction automatically applies to the inserted subfunction if the level of the inserted subfunction is greater than the level of the automatic subfunction. - Replace. The subfunction replaces the automatic subfunction that is
identified by the Data Element or Segment it processes.
In the Macro code, this insertion type is identified by ACTION=*R. In the Screen code, it is identified as @REPLACE.
Note: The condition of an automatic subfunction does not apply to the replaced subfunction.
- Insert before. The subfunction is inserted before the automatic
subfunction that is identified by the Data Element or Segment it processes.