# Import-/Export-Facility

## IEF-Import/Export of Attribute Classification Lists

| The ATT-CLS consists of a simple reference between EDB-GROUP and e.g. EDB-ARTICLE. The problem is that the attributes are only set by a Pre mask userexit which is not executed by DataView in the virtual mode (in which IEF works). A new format type "ATT" has been developed in IEF to solve the problem. This is defined in such a way as the format type "REF" as well with the father and son format. Example:
Format | Entity | Ent2 | Mask | View | Father | Son
SML-ATT | EDB-GROUP | EDB-ARTICLE | EDB-GRP-ART-RLI | ATT | SML-TOP | SML-BOT
SML-TOP | EDB-GROUP |  | EDB-GRP-SLI |  |  |
SML-BOT | EDB-ARTICLE |  | EDB-ART-SLI |  |  |
The TOP format contains the classification code. It is not read from the file but from @CONSTANT! The file must only contain data from one group.
    10 # T_GROUP_DAT.CLASS_CODE    # 1 20 @CONSTANT  1 20 TESTCLASS
The son format contain a key field for the item:
    10 # T_MASTER_DAT.PART_ID      # 1 20 01         1 20
    20 # T_MASTER_DAT.PART_VERSION # 1 3  01        21 23
The reference format (Type ATT) contains @PART_ID and the attributes:
    10 # @PART_ID                  . 1 20 @CONSTANT  1 20 TESTCLASS
    110 # C_1                      . 1 10 01        31 40
    120 # C_2                      . 1  5 01        41 45
It is not possible to generate the IEF field definition with Create field def. as the mask is not stored in the database but is generated automatically during runtime. The fields must therefor always be created manually in the IEF field definition. Open the respective classification list interactively and find out the field name of the desired field with CTRL-D.