AVTGENACPT: Intervene before the generation of the pre-payments

This entry point concerns the generation of the pre-payments in the purchase and sales orders.

It is used to intervene before the automatic generation of the pre-payments to modify certain values (amount to be split by axis).

This entry point is located in the TRTTPT process in the sub-program ACOMPTES.

It is called in creation, cancellation and control of the pre-payments.  

Context and operating method

Transaction

There is a transaction in process when in creation and cancellation of the pre-payments. It is the update transaction for the order. The GOK variable is used and tested. It is equal to 1. It can be set to 0 if the transaction should be abandoned.

There is no transaction in process when in pre-payment control.

Log file

There is no open log file.

Different call cases - Available variables and masks

This entry point is called:

·               In the sales order management :

In creation of an order, in the gobjet action CREATION to create the pre-payments.

In modification of an order:

·               In the action AVANT_MODFIC, to search if it is necessary to modify the pre-payments : If the payment condition has been modified or if the order amount has been modified and that the order has not been invoiced, the pre-payments are modified if they have not been paid.

·               In the action MODIF, to delete or re-create the pre-payments.

In deletion of an order:

·              In the action VERF_ANU,  to verify that no pre-payment has been paid.

·              In the action ANNULE,  to delete the pre-payments.

In order display:

·               In the action LIENS, to grey out the payment condition if the pre-payments have been paid.

·               In the purchase order management :

In creation of an order, in the gobjet action CREATION to create the pre-payments.

In modification of an order, in the action MODIF, to verify that no pre-payment has been paid then to delete and recreate the pre-payments if necessary.

In deletion of an order:

·              In the action VERF_ANU,  to verify that no pre-payment has been paid.

·              In the action ANNULE,  to delete the pre-payments.

 

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...

For the tables that are not used in all processes, the names of the processes that use them are given.

 

 Table

Significant content

Table Title

Tables opened by the sub-program ACOMPTES

TABPAYTERM

No

Payment conditions table

TABCUR

No

Currency table

GACCDUDATE

No

Open item table

GACCCODE

No

Accounting codes

GACCOUNT

No

General ledger accounts

ATABDIV

No

Miscellaneous tables

Sales order management

SORDER

No

Order headers

SORDERQ

No

Order line quantities

SORDERP

No

Order line prices

SQUOTED

No

Quote - Detail

BPARTNER

No

BP

BPCUSTOMER

No

Customers

BPDLVCUST

No

Ship-to customers

BPCUSTMVT

No

Customer transactions

ITMMASTER

No

Products

ITMSALES 

No

Products - Sales

ITMBPC

No

Products-customer

ITMMVT

No

Product - Movements

ITMFACILIT

No

Product-site

ITMCATEG

No

Product category

TABSOHTYP

No

Order types

FACILITY

No

Sites

TABCUR

No

Currency table

TABMODELIV

No

Shipment method table

TABUNIT

No

Unit of measure table

BPADDRESS

No

Addresses

SPRICLINK

No

Search sales prices (link)

PRICSTRUCT

No

Price list structure

SALESREP

No

Sales representatives

Purchase order management

PORDER

No

Order headers

PORDERQ

No

Order line quantities

PORDERP

No

Order line prices

PORDERC

No

Order line prices

PREQUIS

No

Purchase requests

PREQUISD

No

Purchase request detail

PQUOTATD

No

Request for quote product details

PRESP

No

Request for quote responses

PRESPD

No

RFQ response detail

PWRKORDERS

No

Requirements taken into account

PPRICLINK

No

Purchase price search (link)

BPARTNER

No

BP

BPSUPPLIER

No

Suppliers

BPADDRESS

No

Addresses

BPSUPPMVT

No

Supplier transactions

ITMMASTER

No

Products

ITMBPS

No

Products-Suppliers

ITMFACILIT

No

Product-site

ORDERS

No

On-hand orders

FACILITY

No

Site

TABCUR

No

Currency table

TABCOUNTRY

No

Country table

TABUNIT

No

Unit of measure table

TABCOEFF

No

Coefficient table

GACCOUNT

No

General ledger accounts

CACNA

No

Analytical natures

GAUTACEF

No

Automatic journal formulas

PERIOD

No

Periods

ATABDIV

No

Miscellaneous tables

TABVAT

No

Tax table

PAPPRECORD

No

Signature record