The import of the quote can be used to create a new quote or to import modifications on a quote that exists in the system. Certain lines can also be deleted if required, without deleting the quote itself. This means that at least one quote line must exist.
A quote consists of a header and several lines. The principal file to be set up is always the SQUOTE file (quote header) because it is the file linked to the SQH object.
In the import template for quotes, two identifiers must be defined:
During the import of the modification, the identification of the existence of the principal object is made in an automatic fashion with the principal key that is the quote number (SQHNUM).
The identification of the existence of the detail lines is made, if they exist, in two ways as a function of the presence or not of the quote line number in the import template :
The quote import processes the deletion of a line detail. An order line will be deleted if it is imported with a 0 order quantity. An order cannot be completely deleted. At least one line must exist.
Import of Kits and commercial BOMs: Two ways exist to import the kits and BOMs.
Import of plain texts: When required, there is the possibility to import texts into the order header, order footer and the order line. This can be set up in the import template by using the global variable GIMP (in the template *71... fields are included).
GIMP(71..78) are used to import the texts linked to the quote header. It is possible to import a text of 8*100 characters i.e. 800 characters.
GIMP(81..88) are used to import the texts linked to the quote footer.
GIMP(91..98) are used to import the texts linked to the quote lines.
Import of dimension types on the line: to import the dimension types of a document line, it is necessary to add an additional level to enter the common table containing the analytical information on the line (CPTANALIN). See SQHFL import template.
Import of invoicing elements: the values entered for the invoicing elements can be imported into the different documents through the INVDTAAMT fields. (SQH, SOH, SDH).
The minimum information that must be imported is given below:
Customer code (BPCORD)
Product code (ITMREF)
Quantity (QTY) If the unit of measure is not specified, the system takes the sales unit for the product. Warning, at the time of the import in modification mode, if the unit is changed, it will not be considered and the import quantity in modification mode will correspond to the existing unit in the quote line. In order to carryout an import with a change of unit, it is necessary to start by deleting the line.
In addition to the generic error messages, the following messages can appear during the entry :
All the checks carried out by the object in interactive entry are also carried out on quote import. The principal checks being:
Sales site does not exist: Warning to check the sales site for the quote.
Shipment site does not exist: Warning to check the shipment site for the quote.
XXX Customer record does not exist: Warning to check the existence of the customer.
Product YYY record does not exist: Warning to check the existence of the product and the sales-product.
Unit of measure ZZZ record does not exist: Warning to check the existence and the validity of the unit for the product.
Mandatory QTY field: Control message corresponding to the existence of this information at the time of importing the quote.
This template can be used in import and export modes. The data is updated in the following tables :
Table |
Table description |
---|---|
AOBJBUR [AOA] |
Office documents |
AOBJBURMOD [AON] |
Default documents |
BOM [BOH] |
Header BOMS |
BOMD [BOD] |
Detail BOMs |
BPADDRESS [BPA] |
Addresses |
BPARTNER [BPR] |
|
BPCUSTMVT [MVC] |
Customer transactions |
BPCUSTOMER [BPC] |
|
BPDLVCUST [BPD] |
|
CPTANALIN [CAL] |
Analytical accounting lines |
FACILITY [FCY] |
|
ITMBPC [ITU] |
|
ITMFACILIT [ITF] |
|
ITMMASTER [ITM] |
|
ITMSALES [ITS] |
|
PRICSTRUCT [PRS] |
|
SALESREP [REP] |
|
SALTRS [SLT] |
Entered sales transactions |
SPRICLINK [SPK] |
Sales price list search |
SQUOTE [SQH] |
|
SQUOTED [SQD] |
Quote detail |
SVCRFOOT [SVF] |
Sales document - footer el. |
SVCRVAT [SVV] |
Sales document - tax |
TABCUR [TCU] |
|
TABMODELIV [TMD] |
|
TABPRTMOD [TPM] |
|
TABSQHTYP [TSQ] |
|
TABUNIT [TUN] |