This entry point belongs to processing SUBPIHC update of invoicing elements in the invoice footer, and generates action "PECINVDTA".
The aim of this action is to give the possibility to take into account or not each invoicing element of the order or the receipt in order to update the invoice elements.
There is no transaction in progress.
There is no open log file.
The call is made during the recovery loop concerning invoicing elements of the order or the receipt in order to update the invoice elements.
This is valid, no matter what method used to create the invoice line, be it by picking on an order or a receipt, or by manual entry.
The [F:PVF] class is loaded during the call to the action "PECINVDTA".
[F:PVF]VCRTYP
Type of document currently being processed.
3 = Order
5 = Open order
6 = Receipt
[F:PVF]VCRNUM
Document number currently being processed
Code of the invoicing element being processed
The following screen masks are usable: [M:PIH0],[M:PIH1], [M:PIH2], [M:PIH3], [M:PIH4]
The previous classes must not be modified with the exception of the following.
Following variable must be modified in order to implement or not the taking into account of the element.
WPECFLG
Indicator for the taking into account
0 = No element is taken into account for this document
1 = Current element is not taken into account
2 = Current element is taken into account
3 = All the elements in the document are taken into account
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 |
PVCRFOOT | Yes | Footer elements in purchase documents |
PINVOICE | No | Invoice header |
PINVOICEV | No | Additional purchase invoice header |
PINVOICED | No | Purchase invoice lines |
PORDER | No | Purchase order header |
PORDERQ | No | Purchase order quantity line |
PORDERP | No | Purchase order price line |
PRETURN | No | Return header |
PRETURND | No | Supplier return line |
PRECEIPT | No | Receipt header |
PRECEIPTD | No | Receipt line |