TRTACHRCP1 processing: TRTACHRCP1
REVALSTO: Price adjustment after completion or reopening of the receipt
This entry point is located in the TRTACHRCP1 processing for purchase receipt management and generates a "REVALSTO" action.
The aim of this action is to give the possibility to short-circuit price adjustment after completing or reopening a receipt line.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The entry point is called when updating a receipt line whose completion flag has been modified.
Available variables and masks
The following file classes are loaded during the call to the "REVALSTO" action.
[F :PTH] Receipt header.
[F :PTD] Receipt line.
The previous classes must not be modified.
The following variable can be modified
WUPDPRIFLG
Indicator for update of price adjustment.
0 = No price adjustment
1 = The adjustment is carried out for the balance of the non invoiced quantity (default value)
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 |
Receipt headers |
PRECEIPTD |
Yes |
Receipt lines |
Miscellaneous remarks
This entry point is only called for completed or reopened receipt lines.
CUSMAJCMM: Deactivate the update of commitments when closing a receipt line.
This entry point, located in the TRTACHRCP1 processing (purchase receipt management), is used to deactivate commitment update when closing a receipt line.
Context and operating mode
Transaction
Transaction
There is one transaction in progress. Can be aborted by setting GOK to 0.
Log file
There is no open log file.
Different call cases
The entry point is called for each receipt line being closed.
Available variables and masks
The following file classes are loaded: [F:PTH] and [F:PTD]
Before calling the entry point, the GPE variable is set to 1. When the update of commitments is not required, it should be positioned to 0.
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 |
Receipt headers |
PRECEIPTD |
Yes |
Receipt lines |