The *CALC value for YCUAPMT enables F4 prompting in the generated application, and processes the CALC: user points in the action diagram of the function where you pressed F4. The main use for this feature is to provide Retrieve Condition functionality (*RTVCND built-in function) when you press F4.
Note: If you have Retrieve Condition logic within a USER: user point that you want processed when you press F4, you will need to move the logic to a CALC: user point.
If a CALC: user point contains logic that you do not want processed when you press F4, you can bypass the logic by checking for the F4 prompt condition. For example:
>CALC: .-- . DTL.Gender name = Condition name of DTL.Gender <<< . +-CASE <<< . |-DTL.*CMD key is *Prompt <<< . |-*OTHERWISE <<< . | : <<< . | (Actions to be bypassed when you press F4=Prompt) <<< . | : <<< . +-ENDCASE <<<
Note: Some function types contain logic that reinitializes function fields as shown in the following table. As a result, if you bypass function field calculation, when you press F4 the function fields will be reinitialized but not recalculated.
|
Function Type |
Function Field Initialization |
|---|---|
|
PMTRCD DSPFIL SELRCD |
No No No |
|
DSPRCD,2,3 EDTRCD, 2,3 EDTFIL DSPTRN EDTTRN |
Yes Yes Yes Yes Yes |
The action diagram logic that processes the key screen for the following functions does not contain a CALC: user point:
As a result, to process Retrieve Condition logic before processing the detail screens for these functions you can:
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |