Script CNSCPSSTD: Purchase order lines inquiry
LOASPEFLD into script CNSCPSSTD : 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 (Purchase 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 (Purchase 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 |