Process TRTVENMAJ: Allocate shortages
MAJMVC: Modify the customer to whom the transaction update should be sent
This entry point concerns the update of the customer movements.
It is used to intervene to modify the customer for which the update is to be carried out.
It is called in the sub-program for the update of the customer movements, just before the read. It is used to modify the customer in the key for the read.
Context and operating method
Transaction
There is one transaction in progress. The GOK variable is used and tested. It is initialized to 1. It can be set to 0 if the transaction should be abandoned.
Different call cases
This entry point is called in the TRTVENMAJ process in the sub-program MAJMVC. This sub-program is called from each process that is used in the creation, modification, deletion of a document (order, shipment, invoice).
Significant variables
Here are the variable that are passed to the sub-program MAJMVC :
. CLIENT : Code for the customer involved with the update (ordering, ship-to, bill-to customer)
. DEVORD : Document currency
. CHGTYP : Exchange rate type
. DATORD : Document date
. ORDNOT : Ex-tax amount
. ORDATI : Tax incl amount
. SENS : Sign for the update (+ or -)
. TYP : Type of the amounts to be processed
"C" : Update ordering customer order
"F" : Update in order for bill-to customer
"O" : Update of shipments credit
"D" : Update of shipped
"I" : Update invoiced not posted
. CAT : Category for the order or the shipment
"2" : Loan order or shipment
" " : other
The WPOINT_CLIENT variable has been especially created to enter the customer to be used to carryout the update of the credit levels. If it is entered, it is transferred in CLIENT before the read of the credit level. If it is not entered, the read is continued with CLIENT.
NB: The customer movement key is also made up of the customer and the financial site. The financial site is loaded with GFINRSP.
If the customer credit level record does not exist for the CLIENT-GFINRSP key, it is created. If not, it is updated.