PTHAMTLIN: Modification of the ex-Tax line total

This entry point located in the FUNPTH processing (invoices to receive) generates a "PTHAMTLIN" action.

The aim of this action is to give the possibility to modify the ex-tax amount for the line of the invoice 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 performed before the loading of PWRKPTD the work file for each receipt line awaiting invoicing.

Available variables and masks

[F :PWD]QTYPUU

Quantity of the receipt line awaiting invoicing and expressed in [F :PTD]PUU purchase unit.

[F :PWR]NETPRIPUU

Unit price for a purchase unit expressed in [F :PWD]NETCUR purchase currency.

WPRIX

The unit price for a purchase unit expressed in the [F :PWD]NETCUR invoice to receive currency.

The following classes are available: [F:PTH] and [F:PTD].

These variables and classes must not be modified.

The following variable must be modified to influence the processing of invoices to receive.

[F :PWD]AMTNOTLIN

Receipt line ex-tax amount awaiting invoicing expressed in the [F :PWD]CUR currency of the invoice to receive.

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 [F :PWD]CUR currency of the invoice to receive.

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

PRECEIPT

 Yes

Supplier receipt headers

PRECEIPTD

 Yes

Supplier receipt 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

 

Open items

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

PWRKPTH

 

Temporary receipt

PWRKPTD

 

Temporary receipt detail

PWRKPOQ

 

Temporary order detail

Miscellaneous remarks

It is also possible to readjust the [F :PWD]NETPRIPUU unit purchase price, but notice that this latter is expressed in the [F :PWD]NETCUR purchase currency.

 

PTHFILTRE: Additional filter on supplier receipts

This entry point located in the FUNPTH processing (invoices to receive) generates a "PTHFILTRE" action.

The aim of this action is to give the possibility to set an additional filter on the supplier receipts 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 invoices 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 "PTHFILTRE" action.

WCRIT

Filter on the supplier receipt header created by the processing from the PTHPST selection screen.

The following variable must be modified to influence the processing of invoices to receive.

PTHFILTRE

         Additional filter on the supplier receipt header (PRECEIPT).

WCRIT2

Filter on the supplier receipt lines created by the processing from the PTHPST 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

PRECEIPT

 

Supplier receipt headers

PRECEIPTD

 

Supplier receipt lines

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

 

Open items

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.

PTHQTY: Modification of the quantity for the invoice to receive

This entry point located in the FUNPTH processing (invoices to receive) generates a "PTHQTY" action.

The aim of this action is to give the possibility to modify the quantity of the invoice 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 performed before the loading of PWRKPTD the work file for each receipt line awaiting invoicing.

Available variables and masks

The following classes are available: [F:PTH] and [F:PTD].

These classes must not be modified.

The following variable must be modified to influence the processing of invoices to receive.

WQUANTITY

Quantity of the receipt line awaiting invoicing and expressed in [F :PTD]PUU purchase unit.

This quantity can be modified according to the returns carried out or for other reasons.

Note: The values of the invoice to receive are automatically calculated according to 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

PRECEIPT

 Yes

Supplier receipt headers

PRECEIPTD

 Yes

Supplier receipt 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

 

Open items

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

PWRKPTH

 

Temporary receipt

PWRKPTD

 

Temporary receipt detail

PWRKPOQ

 

Temporary order detail

Miscellaneous remarks

A null or negative quantity will not generate a line on an invoice to receive.

PTHPWRK: Modification of the PWRKPTH and PWRKPTD work tables

This entry point located in the FUNPTH processing (invoices to receive) generates a "PTHPWRK" action.

The goal of this action is to give the possibility to modify or delete data in the PWRKPTH and PWRKPTD 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 receipt data stored in the two work tables PWRKPTH and PWRKPTD.

Available variables and masks

[F :PTH]PTHNUM :Receipt number being processed

The recording of the PWRKPTH work table (receipt header) with the key PWH0 = adxuid(1) + [F :PTH]PTHNUM can be modified or deleted.

The recordings of the PWRHPTD work table (receipt lines) with the key PWD0(2) = adxuid(1) + [F :PTH]PTHNUM 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

PRECEIPT

 Yes

Supplier receipt headers

PRECEIPTD

 

Supplier receipt lines

PWRKPTH

 Yes

Receipt header work file

PWRKPTD

 

Receipt 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

PWDCRIT: Modification of the loading criteria for the PWRKPTD table

This entry point located in the FUNPTH processing (invoices to receive) generates a "PWDCRIT" action.

The goal of this action is to give the possibility to modify the loading criteria for the PWRKPTD receipt 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 receipt line is loaded and written in the PWRKPTD work table.

Available variables and masks

[F :PTD]PTHNUM :Receipt number being processed

[F :PTD]PTDLIN :Receipt line being processed

WCRIT_CHARGPWD: contains criteria used to carry out loading and writing of the PWRKPTD table.

These criteria are as follows and can be modified:

[M:DIA]TYP=1 & [F:PTD]POHNUM<>'' & GOPTCANA>0 & [F:PWD]LINACC<>'' & [F:PWD]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

PRECEIPT

Yes

Supplier receipt headers

PRECEIPTD

Yes

Supplier receipt lines

PWRKPTH

 

Receipt header work file

PWRKPTD

 

Receipt 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

ADDTRAFAR: Adding information to the log file

This entry point located in the FUNPTH processing for invoices to receive is used for example to add information to the log file.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There can be an open log file.

Available variables and masks

The following classes are available: [F:PWH], [F :PWD] and [F:TCU].

MAJPTD: Update of additional fields on the receipt line

This entry point located in the FUNPTH processing for invoices to receive is used to update specific fields in the receipt line table.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There can be an open log file.

Available variables and masks

The following classes are available: [F:PWH]and [F:PTD].

The WFAR work variable contains the number of the generated invoice to receive.