Show TOC
EH&S Release 2.2A: Changes in Export and
Import
Description
For this EH&S Release, import and export have been extended.
Damage caused to data by errors
The R/3 System creates logs for both import and export so that you can
obtain information about data that was not imported or exported due to
errors.
Software/hardware requirements
For a description of the creation of transfer files for first database in
the R/3 System for sources, phrases, and substances, see the EH&S
documentation LOEHS: Environment Data . The creation of transfer
files for importing properties trees and report templates is carried out in
the same way (same syntax).
First identify the relevant fields for the properties tree and report
template files.
Allocate your data in the following sequence:
| Properties tree |
Table or structure |
| 1. Properties tree |
TCG51, TDG52, TCG53 |
| 2. Substance characteristic values |
TCG11, TCG12 |
| 3. Class |
KLAH (Struktur CLCLASSES) |
|
SWOR (Struktur CLA_DESCR) |
|
KSML (Struktur CLA_CH_ATR) |
|
KLAT (Struktur CLA_LNGTXT) |
| 4. Characteristic |
CABN, CABNT, CAWN, CAWNT |
| 5. Phrase set |
ESTPS, ESTPT, TCG66 |
Identify the relevant fields:
- Status M = required fields
- Status K = optional fields
Properties tree
Table name: TCG51
| Field |
Status |
Type |
Commentary |
| MENID |
M |
CHAR 10 |
Properties tree key |
Table name: TCG52
| Field |
Status |
Type |
Commentary |
| LANGU |
M |
LANG 1 |
Language key |
| MENNAM |
M |
CHAR 40 |
Description of properties tree |
Table name: TCG53
| Field |
Status |
Type |
Commentary |
| ID |
M |
NUMC 6 |
Node ID in the tree |
| ESTCAT |
M |
CHAR 30 |
Substance characteristic cat. key |
| PARENT |
M |
NUMC 6 |
ID Father node |
| COMPR |
K |
CHAR 1 |
Compression indicator |
Substance characteristic value
Table name: TCG11
| Field |
Status |
Type |
Commentary |
| ESTCAT |
M |
CHAR 30 |
Substance characterisic category |
| ESTTYPE |
K |
CHAR 10 |
Substance characteristic type |
| REM |
K |
CHAR 60 |
Comment |
| CLVANAM |
M |
CHAR 18 |
Class name for value assignment |
| CLVPNAM |
K |
CHAR 18 |
Class name for composition |
| ECCOFLG |
K |
CHAR 1 |
KZ: Copied subs char values active |
| ECINFLG |
K |
CHAR 1 |
KZ: New subs char values active |
| ECUPFLG |
K |
CHAR 1 |
KZ: Changed subs char values active |
| USEPROF |
K |
CHAR 10 |
Default usage profile |
| IDLID |
K |
CHAR 10 |
Identification display |
Table name: TCG12
| Field |
Status |
Type |
Commentary |
| LANGU |
M |
LANG 1 |
Language key |
| ESTNAM |
M |
CHAR 40 |
Label for substance characteristic category |
Class
Table name: KLAH (structure name CLCLASSES)
| Field |
Status |
Type |
Commentary |
| CLASS |
M |
CHAR 18 |
Class name |
| CLASS_TYPE |
M |
CHAR 3 |
Class type |
Table name: SWOR (structure name CLA_DESCR)
| Field |
Status |
Type |
Commentary |
| LANGUAGE |
M |
LANG 1 |
Language key |
| CATCHWORD |
M |
CHAR 40 |
1. Key word=Label |
Table name: KSML (structure name CLA_CH_ATR)
| Field |
Status |
Type |
Commentary |
| CHARACT |
M |
CHAR 30 |
allocated characteristic |
Table name: KLAT (structure name CLA_LNGTXT)
| Field |
Status |
Type |
Commentary |
| LANGUAGE |
M |
LANG 1 |
Language key |
| TXT_ART |
M |
CHAR 1 |
Text ID/Text type |
|
|
|
0 = long text, 1 = standard description, |
|
|
|
2 = standard title |
|
|
|
long text is used for F1 help |
| TXT_DESCR |
K |
CHAR 40 |
Short description of long text |
| TXT_FORM |
K |
CHAR 2 |
Control column/ format column |
| TXT_LINE |
M |
CHAR 72 |
Text line |
Characteristic
Table name: CABN
| Feld |
Status |
Type |
Commentary |
| ATNAM |
M |
CHAR 30 |
Characteristic name |
| ATFOR |
M |
CHAR 4 |
Data type for characteristic |
|
| ANZST |
M |
INT2 5 |
No. places for characteristic values |
| ANZDZ |
K |
INT2 5 |
No. decimal places; Def.=0 |
| MSEHI |
K |
UNIT 3 |
Unit of measurement |
| ATINT |
K |
CHAR 1 |
KZ, if interval values allowed; Def.=N |
| ATVOR |
K |
CHAR 1 |
KZ, if negative values alowed; Def.=N |
| ATEIN |
K |
CHAR 1 |
E=single-value; M=multi-value; Def.=E |
| ATINP |
K |
CHAR 1 |
KZ Characteristic is not ready for import |
| ATPRT |
K |
CHAR 10 |
Check table |
| ATPRF |
K |
CHAR 30 |
Function module for value check |
| ATDEX |
K |
NUMC1 |
Display form for exponents |
Table name: CABNT
| Field |
Status |
Type |
Commentary |
| SPRAS |
M |
LANG 1 |
Language key |
| ATBEZ |
M |
CHAR 30 |
Characteristic label |
| ATUE1 |
K |
CHAR 30 |
First heading on dialogs |
Table name: CAWN
| Field |
Status |
Type |
Commentary |
| ATWRT |
M |
CHAR 30 |
Characteristic values |
Table name: CAWNT
| Field |
Status |
Type |
Commentary |
| SPRAS |
M |
LANG |
Language key |
| ATWTB |
M |
CHAR 30 |
Label for characteristic value |
Set
Table name: ESTPS
| Field |
Status |
Type |
Commentary |
| PHRSEL |
M |
CHAR 30 |
Phrase set |
| REM |
K |
CHAR 60 |
Comment, |
Table name: ESTPT
| Field |
Status |
Type |
Commentary |
| LANGU |
M |
LANG 1 |
Language key |
| PHRASNAM |
M |
CHAR 40 |
Label for phrase set |
Table name: TCG66
| Field |
Status |
Type |
Commentary |
| ESTCAT |
M |
CHAR 30 |
Substance characteristic category |
| ATNAM |
M |
CHAR 30 |
Characteristic name |
Table allocation for report templates
Allocate your data in the following sequence:
| Report template |
Table |
| 1. Report template header |
DRAW |
| 2. Label |
DRAT |
| 3. Report symbols |
TCGA6, TCGA7 |
Identify the relevant fields:
Report template header
Table name: DRAW
| Field |
Status |
Type |
Commentary |
| DOKAR |
M |
CHAR 3 |
Document category |
| DOKNR |
M |
CHAR 25 |
Document number |
| DOKVR |
M |
CHAR 2 |
Document version |
Label
Table name: DRAT
| Field |
Status |
Type |
Commentary |
| LANGU |
M |
LANG 1 |
Language key |
| DKTXT |
K |
CHAR 40 |
Description document (short text) |
Report symbols
Table name: TCGA6
| Field |
Status |
Type |
Commentary |
| LSYTYPE |
M |
CHAR 2 |
Substance report symbol type |
| LSYID |
M |
CHAR 10 |
Substance report symbol |
| CLASS |
K |
CHAR 18 |
Class number |
| ATNAM |
K |
CHAR 30 |
Characteristic name |
| TABNAME |
K |
CHAR 10 |
Table name |
| FIELDNAME |
K |
CHAR 10 |
Name of table field |
Table name: TCGA7
| Field |
Status |
Type |
Commentary |
| LANGU |
M |
LANG 1 |
Language key |
| LSYNAM |
M |
CHAR 40 |
Description of substance report key |
|
Change system parameters in customizing
The section Export and Import was added to Customizing for Environment
Data. Carry out the activities in this section before you start export or
import.
Changes in procedure
Import
In addition to importing sources, phrases and substance data, you can
import a properties tree or a sustance report template in the same way.
(See also: EH&S documentation LOEHS:Environment Data)
Notes on substance import
You can identify the data provider using the following data:
- NAME (entry in transfer file: +NAME)
- ORT (entry in transfer file: +CITY)
- LAND (entry in transfer file: +CNTY)
Notes on phrase import
You can import individual languages.
You can use engineering change management for phrase import:
- If you have not set the Full import indicator, the following
scenarios can occur:
- If phrase keys and texts are identical, the phrase is not imported.
- If the phrase keys are identical, but phrase texts are different, you can
import the phrase with or without engineering change management:
With engineering change management: The imported
phrase is valid from the date of the change number.
Without engineering change management: The
previous phrase is imported in all languages for which import is carried out.
The phrase references and allocations to phrase sets are also replace.
- If you have set the Full import indicator, the phrases from the
phrase library to be import are physically deleted before import, unless you
import them with engineering change management. If you do, the imported
phrases are valid from the date of the change number.
Notes on importing properties trees
These functions enable you to
- import a new properties tree into the R/3 System
- modify an existing properties tree
You can display all differences for all substance characteristic categories
selected in the R/3 System between the properties tree for the source and
target system. The following differences can occur:
- The labels for substance characteristic categories are different.
- Different classes are allocated to the substance characteristic
category.
- A class is defined differently.
- The characteristics assigned to the class are different.
- The characteristics are defined differently.
- The labels for the characteristic are different.
- The phrase sets assigned to the characteristics are different.
- The labels for the phrase sets are different.
All substance characteristic categories selected that are not SAP classes
or characteristics are imported. In addition, you can use the parameters to
control which elements of the substance characteristic categories are imported
(labels for sustance characteristic categories, classes, class labels,
characteristics and characteristic labels, for example).
Elements that depend on other selected elements (labels, for example) are
imported without explicit marks.
If you have modified an existing properties tree, the R/3 System makes a
comparison during import, and attaches new substance characteristic categories
at the right point in the properties tree.
Existing objects are not deleted by the import.
Note:
You can generate phrase sets if the phrase sets
are not part of the export file, and do not yet exist for the
characteristics.
The phrase sets have the same names as the
characteristics. The label consists of the following:
- The first 15 characters of the characteristic category
- The first 15 characters of the characteristic label
The system takes the languages into account that
are defined for the characteristic categories as well as for the
characteristics.
The new phrase sets are allocated the
characteristic for the corresponding substance characteristic category
automatically.
Exceptions are the characteristics that end with
_GLP, _PREC und _TEST_SUB. For these characteristics, the phrase sets
SAP_EHS_XXXX_XXX_GLP, SAP_EHS_XXXX_XXX_PREC, and SAP_EHS_XXXX_XXX_TEST_SUB are
generated and allocated. The labels are displayed as characteristic labels
only.
Notes on report template import
You can use this function to import report templates (substance report
templates, cover sheet templates, acknowledgement of receipt templates) into
the R/3 System.
The R/3 System reads the following objects when checking the file:
- The key for the report template
- The label for the report template
Symbols in the transfer file. If the R/3 System
- finds a corresponding symbol in the R/3 System, then the R/3 System uses
the symbol key in the R/3 System.
- does not find a corresponding symbol in the R/3 System, the R/3 system
uses the symbol key in the transfer file. You must replace this symbol
manually by an existing symbol, or delete it directly after import at the
lates. If you do not, an error will occur when you carry out the function
Check template.
The report template is created during import, and the document is loaded to
the document management system.
See example: Import sample templates
Export
Export for substances, phrases, sources, properties trees, and report
templates
Prerequisites
- In Customizing for Environment Data, you must have maintained the
settings in the section Export and Import.
- You must have the authorization to carry out the transport.
- You must have write authorization for the transfer files.
Sequence
1.You choose the objects to be
exported.
- You export substances from the substance hit list under Substance
-> Export . You can export the following objects:
- Substance header
- Substance identifiers
- Substance references
- Substance-material allocations
- Substance characteristic values with
additional information
Note:
You use the Phrase conversion indicator
to determine that when a substance is exported that has been assigned a
characteristic value from a phrase library other than the export library, the
corresponding active phrases in the export library are converted. Prerequisite
for this is that you have defined phrase references between the phrases in the
export library and the phrases in the active library.
- You export phrases from the phrase hit list under Phrase ->
Export. You can export the following objects:
- Phrase library
- Phrase group
- Any phrases
- Phrase references
- Allocations to phrase sets
- In addition, you can restrict the language
selection.
- You export sources from the source management view under Table view
-> Export.
The R/3 System writes the following data to the
transfer file:
- Data origin
- Export date
- Key and label for properties tree
- All corresponding substance characteristic
categories
- All corresponding elements (characteristics,
descriptions, etc.)
- All classes and characteristics in the
protected name range SAP_EHS are exported.
- You export report templates from the report template hit list under
Report template -> Export.
The R/3 System writes the following data to the
transfer file:
- Export date
- Key and label for report template
- Symbol key and label
Apart from the *.DAT file that contains labels
and symbols, the R/3 System creates a *DOC file that contains the layout for
the report template.
Note:
For report template export, you must ensure
that
- the formatting in the target system
corresponds to that in the source system
- that the methods that can be defined for the
symbols are present in the target system
2.You check or enter the export
parameters.
3.
When importing substances, phrases, and
sources, you can enter an exchange profile in which all export parameters have
already been defined in Customizing for Environment Data . This also
includes the exchange directory with the path on your application server. As
standard, the system proposes the exchange directory with the path that you
defined in Customizing for Environment Data in the IMG activity Define file paths and names .
4.You start the export that the R/3 System
carries out in the background.
The R/3 System checks
- if the exchange file can be opened
- if the exchange file already exists
If so, you can overwrite the exchange file or
change the path. You can then restart the export.
Result
1.You can check the export job under
Logistics -> Materials management -> Environment data, and then
Data transfer -> Check export -> <Export
object>.
2.Place the cursor on your job, and choose
Goto -> Job log. If necessary, display the long text for a message
under Goto -> Long text.
3.If the data are exported successfully,
they are entered in exchange format in the exchange directory on the
application server.
The export format for the data corresponds to
the syntax required by the import program.
4.You can download the exchange file to
your PC under Logistics -> Materials management -> Environment
data , and then Data transfer -> Download file.
In the same way, you can copy the file to your
application server again under Data transfer -> Upload file.
Report export
As of EH&S Release 2.2A, you can now export inbound reports as
well.
For information on report export, see
New Function for EHS Release 2.1B .