ADELIA |
|
|
|
|
(I/B) |
|
|
|
|
Warning: This instruction can only be used in Adelia/400.
Section for use
According to management rule class:
- CT |
VERIFICATION |
- SK, PR |
SFTKYS_PROCESS |
- DE, CR, RE, UP, IE, IP, CA, VP, VE |
All |
Syntax
For the CA, CT, IP, VP, SK, PR management rules:
CALL_METHOD ClassOrRule LayoutVarId TransactionOrReportLayoutFormat ReportLayout
ClassOrRule |
Þ |
*CLASS | RuleName |
|
|
|
TransactionOrReportLayoutFormat |
Þ |
TransactionNum |
|
|
| ReportLayoutFormat |
|
|
| None |
|
|
|
ReportLayout |
Þ |
ReportLayout | None |
Other possibility:
CALL_METHOD *CLASS ViewName TransactionOrReportLayoutFormat ReportLayout
TransactionOrReportLayoutFormat |
Þ |
TransactionNum |
|
|
| ReportLayoutFormat |
|
|
| None |
|
|
|
ReportLayout |
Þ |
ReportLayout | None |
Note: For these rules, the aim of verification consists in generating as many elementary CALL_METHOD instructions as required for the layout variables that have as logical origin the properties of the entity associated with the view.
For the IE, VE, RE, DE, UP, CR management rules:
CALL_METHOD ClassOrRule ViewName TransactionOrReportLayoutFormat ReportLayout
ClassrOrRule |
Þ |
*CLASS | RuleName |
|
|
|
TransactionOrReportLayoutFormat |
Þ |
TransactionNum |
|
|
| ReportLayoutFormat |
|
|
| None |
|
|
|
ReportLayout |
Þ |
ReportLayout | None |
Description
The CALL_METHOD instruction is used to run one or more management rules of the specified class (or the rule RuleName specified in the instruction) optionally applying it to the specified layout variable ReportLayout or to the entity associated with the specified view ViewName.
This execution is achieved via object modules (external programs) previously generated using the corresponding logical entity.
Example
********************** |
|
INITIALIZATION 01 |
|
********************** |
|
CHAIN ORDERS |
|
CALL_METHOD *IP ORDERS |
|
PRESENT ORDERS |
|
CALL_METHOD CALCUL_GD_TOT ZORDR_TOTAL |
|
********************* |
|
VERIFICATION 01 |
|
********************* |
|
CALL_METHOD *CT ZORDR_DATE |
|
CALL_METHOD CONTROL_CUST ZCUST_CODE |
|
******************* |
|
VALIDATION 01 |
|
******************* |
|
PLACE ORDERS |
|
CALL_METHOD *VE ORDERS |
|
CLASSIFY ORDERS |
See also the list of 4GL instructions by topic