Script CNSCPSSTD: Receipt lines inquiry
CRESPELNK: Change the link used to filter the lines
Context and operating mode
Transaction
There is no transaction in progress.
Log file
No trace file is open.
Code context
This entry point is located in the CNSCPSSTD script (Receipts lines inquiry) before the loop loading the receipt line grid, after the standard link done with PRECEIPTD and PRECEIPT and before the filter. It allows to change the link to add a new file.
Available variables and masks
The grid line in the screen CONSCPS2 is not yet loaded. The Link instruction has to be redone in the entry point.
Open tables
In the table below, the significant content flag indicates that the content is coherent with the context.
| Tables | Significant content | Table title |
|---|---|---|
| PRECEIPTD | No | Details receipts |
| PRECEIPT | No | Receipt |
| FACILITY | No | Site |
LOASPEFLD: Loading specific fields
Context and operating method
Transaction
There is no transaction in progress.
Log file
No trace file is open.
Code context
This entry point is located in the CNSCPSSTD script (Receipt lines inquiry), in the loop that loads the purchase receipt lines grid.
It is triggered at the end of the loop, after the grid is loaded with standard fields and just before moving to the next record.
It allows loading additional, specific fields into the grid.
Available variables and masks
-
The grid in the CONSCPS2 screen is being loaded.
-
nolign is the current line index.
| Variable | Description |
|---|---|
| nolign | Current line index in the grid |
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context.
| Table |
Significant content |
Table title |
|---|---|---|
|
PRECEIPT |
Yes | Purchase receipt header |
| PRECEIPTD | Yes | Purchase receipt lines |
| FACILITY | Yes if [M:CPS1]CPY ≠ "" | Sites |
ADDCTLLIN: Add controls on the purchase receipt line to display
Context and operating method
Transaction
There is no transaction in progress.
Log file
No trace file is open.
Code context
This entry point is located in the CNSCPSSTD script (Receipt lines inquiry), in the loop that loads the purchase receipt lines grid.
It is triggered at the beginning of the loop, before the line is loaded into the grid.
It allows skipping the loading of a purchase receipt line.
Available variables and masks
-
The grid in the CONSCPS2 screen is being loaded.
-
The variable GPE is set to 1 before the entry point.
-
To prevent a purchase receipt line from being loaded, set GPE to 0 within the entry point.
| Variable | Description |
|---|---|
| GPE | Set to 1 by default. Set to 0 to skip loading the current line. |
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context.
| Table | Significant content | Table title |
|---|---|---|
| PRECEIPT | Yes | Purchase receipt header |
| PRECEIPTD | Yes | Purchase receipt lines |
| FACILITY | Yes if [M:CPS1]CPY ≠ "" | Sites |