Use the invoice import feature to create or modify direct invoices or credit memos.
The SIH import template is not a comprehensive template, the proposed configuration is for information purposes only. This template is used to import the first four invoicing elements.
A sale invoice consists of two header files: SINVOICE and SINVOICEV and the SINVOICED line file.Import limitations in Modification mode
When importing a detail line, the system analyzes whether the line is a new line (creation) or an existing line (modification). To that end, the system uses the identifying fields of the line. These fields are: the line number assigned automatically (SIDLIN) and the product reference (ITMREF).
Invoice import in modification mode
The import of invoice in modification does not update stocks. The system rejects the import if there are imported lines in modification mode with stock update. The message: 'Invoice number: Product code: Invoice with unauthorized stock movement' is displayed in the log file.
When importing an invoice or a credit memo, you can let the system calculate the invoice footer automatically, or import it without the system running a recalculation. The selection depends on the existence in the import template of the data linked to the valuation of the invoice footer. If the data ha been entered, the system will not recalculate the invoice (especially if the AMTATI field of the SINVOICE table is contained in the template).When importing an invoice with a template used to calculate the invoice footer, the invoice elements are imported in the INVDTAAMT fields of the SINVOICEV table.
Import with stock movement
It is possible to import invoices with stock movement when this is a direct invoice provided that the imported invoice has the non-validated status. Otherwise, no stock movement will be carried out and the Stock movement flag will be set to No.There are two different ways of importing the kits and BOMs on an invoice:
Import of texts
When necessary, it is possible to import the texts into the invoice header, footer and line. This can be set up in the import template by using the global variable GIMP (in the template the fields *71... must be mentioned).
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 SIHFL import template.
For the import to operate properly, the data used in the import and relating to the following tables must already be available:
In this import, the mandatory fields are the following:
Table SINVOICEV:
If the storage site and the sales site are not contained in the import template (for those invoices containing stock movement), the sites will be determined by the default storage site and sales site of the session that performs the import.
Table SINVOICED
If the sales unit is not mentioned, the determined unit will be first that of the customer, then that of the product.
Table SIVTYP (invoice type)
If the invoice type is not specified, the system selects the first of the list in alphabetical order. This determines the type of invoice or credit memo (even if INVTYP in the template).
If the fields Invoice status (INVSTA) or Stock movement (STOMVTFLG) are not present in the import template, then they are set to No.
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 invoice import. The main checks being:
Sales site does not exist: Warning to check the sales site control of the invoice.
Non-existing storage site: Warning to check the storage site of the invoice during the invoice with stock movement import.
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 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 invoice.
This template can be used in import and export modes. The data is updated in the following tables :
Table |
Table description |
---|---|
BPARTNER [BPR] |
|
BPCUSTMVT [MVC] |
Customer transactions |
BPCUSTOMER [BPC] |
|
BPDLVCUST [BPD] |
|
CONTSERV [CON] |
|
CPTANALIN [CAL] |
Analytical accounting lines |
FACILITY [FCY] |
|
GACCCODE [CAC] |
|
GACCOUNT [GAC] |
|
GTYPACCENT [GTE] |
|
HDKTASKINV [HDI] |
Consumptions to be invoiced |
ITMBPC [ITU] |
|
ITMCATEG [ITG] |
|
ITMFACILIT [ITF] |
|
ITMMASTER [ITM] |
|
ITMMVT [ITV] |
Product-site totals |
ITMSALES [ITS] |
|
ITMWRH [ITW] |
|
PRICSTRUCT [PRS] |
|
SALESREP [REP] |
|
SDELIVERY [SDH] |
|
SDELIVERYD [SDD] |
Delivery detail |
SERREQUEST [SRE] |
|
SFOOTINV [SFI] |
|
SINVOICE [SIH] |
Sales invoices |
SINVOICED [SID] |
Sales invoice detail |
SINVOICEV [SIV] |
Costing sales invoice |
SORDER [SOH] |
|
SORDERP [SOP] |
Sales orders - price |
SORDERQ [SOQ] |
Sales orders - quantities |
SPRICLINK [SPK] |
Sales price list search |
SPRICLIST [SPL] |
Customer price lists |
SRETURND [SRD] |
Sales return detail |
STOCK [STO] |
Stock |
STOJOU [STJ] |
Stock journal |
STOLOT [STL] |
Lot numbers |
SVCRFOOT [SVF] |
Sales document - footer el. |
SVCRVAT [SVV] |
Sales document - tax |
TABCUR [TCU] |
|
TABPRTMOD [TPM] |
|
TABSIVTYP [TSV] |
|
TABUNIT [TUN] |
|
WAREHOUSE [WRH] |