Use the order import to create orders or to import modifications on an existing order.
You can also delete specific lines without deleting the order itself, if required. This means that at least one order line must exist.
A sales order is made up of a header and one or more lines. The main file to set up is always SORDER (order header) as this is the file linked to the SOH object.
For order creations, you must define two identifiers, one for the SORDER header file and one for the SORDERQ detail file.
During the import of the modification, the existence of the principal object is acknowledged automatically with the principal key that is the order number (SOHNUM). The existence of the detail lines is acknowledged, if actual, in three ways depending on the presence/absence of the order line number in the import template:
If two lines have the same product reference (and the same shipment date), the line number must be redefined in order to differentiate them. If this is not done, the first line corresponding to the search criteria is always processed.
The order import processes the deletion of a line detail. An order line will be deleted if it is imported with a blank order quantity. An order cannot be completely deleted. At least one line must exist.
During an import, you can also specify if the order line must be closed or not. You must then add the SOQSTA field to the template.
If an invoicing term is included in the import template on the header or on a line, this term is used to calculate the scheduled invoices of lines related to non deliverable products. This rule only applies to orders of the normal category.
Two ways exist to import the kits and BOMs.
When required, you can import texts into the order header, order footer and order line. Set this up in the import template using the global variable GIMP (in the template *71... fields are included).
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 SOHFL import template.
The value entered for the invoicing elements can be imported into the different documents through the INVDTAAMT fields. (SQH, SOH, SDH).
Import template with | Management of the project code | ||
... in header | ... on the line | In creation | In modification |
YES | NO | Header = Value of the header import file | |
YES | YES | Header = Value of the header import file | |
NO | YES | Header = Blank value | Header = Non modified value |
Import template with | Management of the project code | ||
... in header | ... on the line | In creation | In modification |
YES | NO | Header = Value of the header import file | Header = Value of the header import file |
YES | YES | Header = Value of the header import file | |
NO | YES | Header = Blank value | Header = Non modified value |
The minimum information that must be imported is:
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 order import. The main controls are the following:
Message on the sales site control in the order.
Message on the shipping site control in the order.
Warning to check the existence of the customer.
Warning to check the existence of the product and the sales-product.
Warning to check the existence and the validity of the unit for the product.
Control message corresponding to the existence of this information at the time of importing an order.
This template can be used in import and export modes. The data is updated in the following tables :
Table |
Table description |
---|---|
BPADDRESS [BPA] |
Addresses |
BPARTNER [BPR] |
|
BPCUSTMVT [MVC] |
Customer transactions |
BPCUSTOMER [BPC] |
|
BPDLVCUST [BPD] |
|
CPTANALIN [CAL] |
Analytical accounting lines |
FACILITY [FCY] |
|
ITMBPC [ITU] |
|
ITMCATEG [ITG] |
|
ITMFACILIT [ITF] |
|
ITMMASTER [ITM] |
|
ITMMVT [ITV] |
Product-site totals |
ITMSALES [ITS] |
|
ITMWRH [ITW] |
|
PRICSTRUCT [PRS] |
|
SALESREP [REP] |
|
SORDER [SOH] |
|
SORDERP [SOP] |
Sales orders - price |
SORDERQ [SOQ] |
Sales orders - quantities |
SPRICLINK [SPK] |
Sales price list search |
SPRICLIST [SPL] |
Customer price lists |
SQUOTED [SQD] |
Quote detail |
SVCRFOOT [SVF] |
Sales document - footer el. |
SVCRVAT [SVV] |
Sales document - tax |
TABCUR [TCU] |
|
TABMODELIV [TMD] |
|
TABPRTMOD [TPM] |
|
TABSOHTYP [TSO] |
|
TABUNIT [TUN] |
|
WAREHOUSE [WRH] |