FUNPNH processing: FUNPNH
PNHAMTLIN: Modification of the ex-Tax line total
This entry point located in the FUNPNH processing (credit memos to receive) generates a "PNHAMTLIN" action.
The aim of this action is to give the possibility to recalculate the ex-tax amount of the credit memo to receive line.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The call is performed before the PWRKPND work file is loaded for each line of return awaiting credit.
Available variables and masks
[F :PWR]QTYPUU
Quantity of the return awaiting credit line expressed in [F :PND]PUU purchase unit.
[F :PWR]NETPRIPUU
Unit price for a purchase unit expressed in [F :PWR]NETCUR purchase currency.
WPRIX
The unit price for a purchase unit expressed in the [F :PWR]NETCUR invoice to receive currency.
The following classes are available: [F:PNH] and [F:PND].
These variables and classes must not be modified.
The following variable must be modified to influence the processing of invoices to receive.
[F :PWR]AMTNOTLIN
Return line ex-tax amount waiting credit expressed in the CMR currency [F :PWR]CUR.
This amount can be modified or recalculated to include the charges/discounts or for other reasons.
Note: This ex-tax amount will be automatically rounded according to the CMR currency [F :PWR]CUR.
Open tables
In the table below, the significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
BPSUPPLIER |
|
Suppliers |
BPARTNER |
|
Business partner |
PRETURN |
Yes |
Supplier return headers |
PRETURND |
Yes |
Supplier return lines |
PINVOICE |
|
Purchase invoice headers |
PINVOICED |
|
Purchase invoice lines |
FACILITY |
|
Sites |
GAUTACE |
|
Automatic journals |
GAUTACED |
|
Automatic journal lines |
GACCCODE |
|
Accounting codes |
GACCOUNT |
|
General ledger accounts |
COMPANY |
|
Companies |
TABCUR |
|
Currencies |
TABCHANGE |
|
Currency rate |
GDIAENTRY |
|
Entry transactions |
GDIAENTRYD |
|
Entry transactions |
TABACCLIK |
|
Link accounts |
GTYPACCENT |
|
Entry types |
GACCDUDATE |
|
Due dates |
GAPARBSE |
|
Reporting code setup |
CACNADEF |
|
Default analytical natures |
GJOURNAL |
|
Accounting journals |
GAJOUSTA |
|
Journal status |
CACNA |
|
Analytical natures |
CACCE |
|
Analytical dimension table |
FISCALYEAR |
|
Fiscal years |
PERIOD |
|
Periods |
TABUNIT |
|
Unit table |
CADSP |
|
Analytical allocations |
CAAUZ |
|
Restrictions table |
ACODNUM |
|
Document sequence numbers |
AVALNUM |
|
Sequence number values |
ATABDIV |
|
Miscellaneous tables |
TABCOEFF |
|
Coefficients |
TABVAT |
|
Tax code tables |
TABRATVAT |
|
Tax rate |
BALANCE |
|
General balance |
BALANA |
|
Analytic balance |
ITMMASTER |
|
Products |
ITMBPS |
|
Products - Suppliers |
PORDERP |
|
Purchase order price lines |
GCOMMITD |
|
Commitments |
PWRKPNH |
|
Temporary return |
PWRKPND |
|
Temporary return detail |
PWRKPOQ |
|
Temporary order detail |
Miscellaneous remarks
It is also possible to readjust the [F :PWR]NETPRIPUU unit purchase price, but notice that this latter is expressed in the [F :PWR]NETCUR purchase currency.
PNHFILTRE: Additional filter on supplier returns
This entry point located in the FUNPNH processing (credits to receive) generates a "PNHFILTRE" action.
The aim of this action is to give the possibility to set an additional filter on the supplier returns to process.
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is an open log file.
Different call cases
The call is performed before credits to receive are processed but after the selection entry screen has been validated.
Available variables and masks
The following variable is loaded when calling the "PNHFILTRE" action.
WCRIT
Filter on the supplier receipt header created by the processing from the PNHPST selection screen.
The following variable must be modified to influence the processing of credits to receive.
PNHFILTRE
Additional filter on the supplier return header (PRETURN).
WCRIT2
Filter on the supplier return lines created by the processing from the PNHPST selection screen.
Note: It is theoretically possible to intervene in the WCRIT and WCRIT2 filters created by the processing knowing that the selections actually carried out will not longer be compatible with it.
Open tables
In the table below, the "significant content" flag indicates that the content matches the context (in this particular case, there is none).
Table |
Significant content |
Table Title |
BPARTNER |
|
Business partner |
BPSUPPLIER |
|
Suppliers |
ITMMASTER |
|
Products |
TABCOEFF |
|
Coefficients |
PRETURN |
|
Supplier return headers |
PRETURND |
|
Supplier return line |
PORDER |
|
Purchase order headers |
PORDERP |
|
Purchase order price lines |
PORDERQ |
|
Purchase order quantity lines |
PINVOICE |
|
Purchase invoice headers |
PINVOICEV |
|
Purchase invoice header addition |
PINVOICED |
|
Purchase invoice lines |
FACILITY |
|
Sites |
GACCDUDATE |
|
Due dates |
GAUTACE |
|
Automatic journals |
GAUTACED |
|
Automatic journal lines |
GACCCODE |
|
Accounting codes |
GACCOUNT |
|
General ledger accounts |
COMPANY |
|
Companies |
TABCUR |
|
Currencies |
TABCHANGE |
|
Currency rate |
Miscellaneous remarks
All modifications to the filter will be noted in the log file.
PNHQTY: Modification of the quantity for credit to receive
This entry point located in the FUNPNH processing (credits to receive) generates a "PNHQTY" action.
The goal of this action is to give the possibility to modify the quantity of a credit to receive.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The call is made before the loading of the PWRKPND work file for each return line awaiting credit.
Available variables and masks
The following classes are available: [F:PNH] and [F:PND].
These classes must not be modified.
The following variable must be modified to influence the processing of credits to receive.
WQUANTITY
Quantity of the receipt line awaiting invoicing and expressed in [F :PND]PUU purchase unit.
This quantity can be modified according to the returns carried out or for other reasons.
Note: The values of the credit to receive are automatically calculated based on this quantity.
Open tables
In the table below, the significant content flag indicates that the content matches the context.
Table |
Significant content |
Table Title |
BPSUPPLIER |
|
Suppliers |
BPARTNER |
|
Business partner |
PRETURN |
Yes |
Supplier return headers |
PRETURND |
Yes |
Supplier return lines |
PINVOICE |
|
Purchase invoice headers |
PINVOICED |
|
Purchase invoice lines |
FACILITY |
|
Sites |
GAUTACE |
|
Automatic journals |
GAUTACED |
|
Automatic journal lines |
GACCCODE |
|
Accounting codes |
GACCOUNT |
|
General ledger accounts |
COMPANY |
|
Companies |
TABCUR |
|
Currencies |
TABCHANGE |
|
Currency rate |
GDIAENTRY |
|
Entry transactions |
GDIAENTRYD |
|
Entry transactions |
TABACCLIK |
|
Link accounts |
GTYPACCENT |
|
Entry types |
GACCDUDATE |
|
Due dates |
GAPARBSE |
|
Reporting code setup |
CACNADEF |
|
Default analytical natures |
GJOURNAL |
|
Accounting journals |
GAJOUSTA |
|
Journal status |
CACNA |
|
Analytical natures |
CACCE |
|
Analytical dimension table |
FISCALYEAR |
|
Fiscal years |
PERIOD |
|
Periods |
TABUNIT |
|
Unit table |
CADSP |
|
Analytical allocations |
CAAUZ |
|
Restrictions table |
ACODNUM |
|
Document sequence numbers |
AVALNUM |
|
Sequence number counter values |
ATABDIV |
|
Miscellaneous tables |
TABCOEFF |
|
Coefficients |
TABVAT |
|
Tax code tables |
TABRATVAT |
|
Tax rate |
BALANCE |
|
General balance |
BALANA |
|
Analytic balance |
ITMMASTER |
|
Products |
ITMBPS |
|
Products - Suppliers |
PORDERP |
|
Purchase order price lines |
GCOMMITD |
|
Commitments |
PWRKPNH |
|
Temporary return |
PWRKPND |
|
Temporary return detail |
PWRKPOQ |
|
Temporary order detail |
Miscellaneous remarks
A zero or negative quantity will not generate a line on a credit to receive.
PNHPWRK: Modification of the PWRKPNH and PWRKPND work tables
This entry point located in the FUNPNH processing (credits to receive) generates a "PNHPWRK" action.
The goal of this action is to give the possibility to modify or delete data in the PWRKPNH and PWRKPND work tables.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The call is made before the validation by "Commit" of a return data stored in the two work tables PWRKPNH and PWRKPND.
Available variables and masks
[F :PNH]PNHNUM :Return number being processed
The recording of the PWRKPNH work table (return header) with the key PWE0 = adxuid(1) + [F :PNH]PNHNUM can be modified or deleted.
The recordings of the PWRKPND work table (return lines) with the key PWR0(2) = adxuid(1) + [F :PNH]PNHNUM can be modified or deleted.
The transaction is terminated when setting GOK to zero.
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 |
BPARTNER |
|
Business Partner |
BPSUPPLIER |
|
Suppliers |
ITMMASTER |
|
Products |
TABCOEFF |
|
Coefficients |
PRETURN |
Yes |
Supplier return headers |
PRETURND |
|
Supplier return line |
PWRKPNH |
Yes |
Return header work file |
PWRKPND |
|
Return line work file |
PORDER |
|
Purchase order headers |
PORDERP |
|
Purchase order price lines |
PORDERQ |
|
Purchase order quantity lines |
PINVOICE |
|
Purchase invoice header |
PINVOICEV |
|
Purchase invoice header addition |
PINVOICED |
|
Purchase invoice lines |
FACILITY |
|
Sites |
GACCDUDATE |
|
Open items |
GAUTACE |
|
Automatic journals |
GAUTACED |
|
Automatic journal lines |
GACCCODE |
|
Accounting codes |
GACCOUNT |
|
General ledger accounts |
COMPANY |
|
Companies |
TABCUR |
|
Currencies |
TABCHANGE |
|
Currency rates |
PWRCRIT: Modification of the loading criteria for the PWRKPND table
This entry point located in the FUNPNH processing (credits to receive) generates a "PWRCRIT" action.
The goal of this action is to give the possibility to modify the loading criteria for the PWRKPND return line work table.
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The call is carried out before a return line is loaded and written in the PWRKPND work table.
Available variables and masks
[F :PND]PNHNUM:Return number being processed
[F :PND]PNDLIN:Return line being processed
WCRIT_CHARGPWR: contains the criteria used to carry out loading and writing of the PWRKPND table.
These criteria are as follows and can be modified:
[M:DIA]TYP=1 & [F:PND]POHNUM<>'' & GOPTCANA>0 & [F:PWR]LINACC<>'' & [F:PWR]LINCNA<>''
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 |
BPARTNER |
|
Business Partner |
BPSUPPLIER |
|
Suppliers |
ITMMASTER |
|
Products |
TABCOEFF |
|
Coefficients |
PRETURN |
Yes |
Supplier return headers |
PRETURND |
Yes |
Supplier return line |
PWRKPNH |
|
Return header work file |
PWRKPND |
|
Return line work file |
PORDER |
|
Purchase order headers |
PORDERP |
|
Purchase order price lines |
PORDERQ |
|
Purchase order quantity lines |
PINVOICE |
|
Purchase invoice header |
PINVOICEV |
|
Purchase invoice header addition |
PINVOICED |
|
Purchase invoice lines |
FACILITY |
|
Sites |
GACCDUDATE |
|
Open items |
GAUTACE |
|
Automatic journals |
GAUTACED |
|
Automatic journal lines |
GACCCODE |
|
Accounting codes |
GACCOUNT |
|
General ledger accounts |
COMPANY |
|
Companies |
TABCUR |
|
Currencies |
TABCHANGE |
|
Currency rates |