48
intra-mart WebPlatform/AppFramework Ver.7.2 IM-Common Master Import/Export Specifications First Edition: 2012/05/07

intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

Embed Size (px)

Citation preview

Page 1: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart WebPlatform/AppFrameworkVer.7.2

IM-Common Master Import/Export Specifications

First Edition: 2012/05/07

Page 2: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When
Page 3: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

<< Revision History >>

Revised Date Revision details

2012/05/07 First Edition

Page 4: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When
Page 5: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

Table of Contents

<< Table of Contents >> 1 Introduction ....................................................................................................................................................................................1

1.1 Purpose ..................................................................................................................................................................................1 1.2 Structure.................................................................................................................................................................................1 1.3 Prerequisites..........................................................................................................................................................................1

2 Data areas .....................................................................................................................................................................................2 2.1 Company-group ....................................................................................................................................................................2 2.2 Company-department ..........................................................................................................................................................2 2.3 Public-group ..........................................................................................................................................................................3 2.4 Private-group .........................................................................................................................................................................3 2.5 User ........................................................................................................................................................................................3 2.6 Corporation ............................................................................................................................................................................4 2.7 Customer................................................................................................................................................................................4 2.8 Item .........................................................................................................................................................................................4 2.9 Item-category ........................................................................................................................................................................4 2.10 Currency-rate.....................................................................................................................................................................5

3 Import .............................................................................................................................................................................................6 3.1 Outline ....................................................................................................................................................................................6

3.1.1 Importing entities having internationalization information .......................................................................................6 3.1.2 Importing entities having terminable information......................................................................................................7 3.1.3 Updating entities having internationalization/terminable information ....................................................................7

3.2 Snapshot import ....................................................................................................................................................................7 3.2.1 Term to be imported/updated by snapshot import ...................................................................................................8

3.3 Full term import .....................................................................................................................................................................9 3.3.1 Content to be notified to a listener by API during import .........................................................................................9

4 Export ...........................................................................................................................................................................................11 4.1 Outline ..................................................................................................................................................................................11 4.2 Snapshot export ..................................................................................................................................................................11 4.3 Full term export ...................................................................................................................................................................11 4.4 Filtering function..................................................................................................................................................................12

5 Data file format............................................................................................................................................................................13 5.1 CSV format ..........................................................................................................................................................................13

5.1.1 Company group...........................................................................................................................................................13 5.1.2 Company-department.................................................................................................................................................14 5.1.3 Public-group.................................................................................................................................................................16 5.1.4 Private-group ...............................................................................................................................................................18 5.1.5 User ..............................................................................................................................................................................18 5.1.6 Corporation ..................................................................................................................................................................20 5.1.7 Customer......................................................................................................................................................................21 5.1.8 Item-category...............................................................................................................................................................21 5.1.9 Item ...............................................................................................................................................................................22 5.1.10 Currency...................................................................................................................................................................22

5.2 XML format ..........................................................................................................................................................................23 5.2.1 Company-group ..........................................................................................................................................................23 5.2.2 Company-department.................................................................................................................................................24 5.2.3 Public-group.................................................................................................................................................................26 5.2.4 Private-group ...............................................................................................................................................................27

Created by: NTT DATA INTRAMART CORP. Page i

Page 6: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page ii Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

5.2.5 User .............................................................................................................................................................................. 28 5.2.6 Corporation.................................................................................................................................................................. 29 5.2.7 Customer ..................................................................................................................................................................... 30 5.2.8 Item-category .............................................................................................................................................................. 30 5.2.9 Item .............................................................................................................................................................................. 31 5.2.10 Currency .................................................................................................................................................................. 31

6 Executing import/export. ........................................................................................................................................................... 33 6.1 Outline of execution program ........................................................................................................................................... 33

6.1.1 Batch program ............................................................................................................................................................ 33 6.1.2 Import/export API ....................................................................................................................................................... 33

6.2 Configuration file ................................................................................................................................................................ 34 6.2.1 Import configuration file ............................................................................................................................................. 34 6.2.2 Export configuration file ............................................................................................................................................. 37 6.2.3 How to specify the data file in CSV format ............................................................................................................. 39

7 (Appendix): Execution from IM-Common Master API ........................................................................................................ 41

Page 7: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

1 Introduction

Created by: NTT DATA INTRAMART CORP. Page 1

1 Introduction

1.1 Purpose This document aims to explain the following subjects concerning the import/export functions of IM-Common

Master:

Scope of import/export;

Data formats for import/export and difference in their processing methods;

How to execute import/export.

1.2 Structure This document is structured as follows:

In [2 Data areas], scope of data to be handled by the import/export functions of IM-Common master is

explained.

In [3 Import] and [4 Export], how to handle each of two types of data format (CSV format and XML

format) is explained.

In [5 Data file format], two types of data format are explained.

In [6 Executing import/export.], how to perform import/export in practice is explained.

1.3 Prerequisites This document assumes various restrictions and operating environments of IM-Common Master that belongs to the

intra-mart WebPlatform/AppFramework as prerequisites. As it does not describe IM-Common Master in detail,

please refer to the separate document “IM-Common Master Specifications” for the in-depth specifications of

IM-Common Master.

Page 8: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

2 Data areas Import/export functions of IM-Common Master cover the data areas as shown in Table 2-1 below. Explanations

about entities included in these data areas will be given in the next section and thereafter.

Table 2-1: Data areas to be handled by import/export functions

Data area name Target entity company-group company-group and its structure, company attachment company-department company and its department, post, inclusion structure

(tree-structure), user attachment public-group public-group and its role, inclusion structure (tree-structure), user

attachment private-group private-group and user attachment user user profile information corporation corporation and its inclusion structure (tree-structure), customer

attachment customer customer information item item information item category item category and its inclusion structure (tree-structure), item

attachment currency rate currency rate information

2.1 Company-group The data area “company-group” consists of three (3) entities as shown below.

Table 2-2: Company-group entities

Entity name Target table company-group imm_company_grp company-group-inclusion imm_company_grp_inc_ath company-group-attach imm_company_grp_ath

When importing company-attach, that company needs to have been already registered.

Company-group-set will be created when the company-group which indicates the company-group-set is

imported. Company-group-set alone cannot be imported/exported. In addition, company-group-set which

has already been created cannot be updated.

2.2 Company-department The data area “company-department” consists of seven (7) entities as shown below.

Table 2-3: Company-department entities

Entity name Target table department imm_department department-inclusion imm_department_inc_ath post imm_company_post department-attach/department-attach-post imm_department_ath / imm_department_post_ath department-category imm_department_ctg department-category-item imm_department_ctg_itm department-category-attach imm_department_ctg_ath

When importing department-attach, target user of the attachment needs to have been already registered.

When importing/exporting department-attach-post, the relevant department-attach will always be the target

of such import/export. In case of no department-attach-post, the relevant department-attach alone will be

Page 2 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

Page 9: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

2 Data areas

Created by: NTT DATA INTRAMART CORP. Page 3

imported/exported.

Company/department-set will be created as may be necessary when importing the department.

Company/department-set alone cannot be imported/exported. In addition, existing company/department-set

cannot be updated.

When importing department-attach, main attachment can be configured. However, in case of overlapping

terms of main attachment, it will be overwritten.

If any main attachment term not being the import target already exists, the import will be executed upon

cancelling the main attachment of the overlapping term.

If any overlapping main attachments exist within a single import data file, which main attachment

should be valid cannot be guaranteed.

2.3 Public-group The data area “public-group” consists of seven (7) entities as shown below.

Table 2-4: Public-group entities

Entity name Target table public-group imm_public_grp public-group-inclusion imm_public_grp_inc_ath role imm_public_grp_role public-group-attach/public-group-attach-role imm_public_grp_ath / imm_public_grp_role_ath public-group-category imm_public_grp_ctg public-group-category-item imm_public_grp_ctg_itm public-group-category-attach imm_public_grp_ctg_ath

When importing public-group-attach, target user of the attachment needs to have been already registered.

When importing/exporting public-group-attach-role, the relevant public-group-attach will be the target of

such import/export. In case of no public-group-attach-role, the relevant public-group-attach alone will be

the target of import/export.

Public-group-set will be created as may be necessary when importing the public-group. Public-group-set

alone cannot be imported/exported. In addition, existing public-group-set cannot be updated.

2.4 Private-group The data area “private-group” consists of two (2) entities as shown below.

Table 2-5: Private-group entities

Entity name Target table private-group imm_private_grp private-group-attach imm_private_grp_ath

When importing private-group-attach, target user of the attachment needs to have been already registered.

2.5 User The data area “user” consists of four (4) entities as shown below.

Table 2-6: User entities

Entity name Target table user imm_user user-category imm_user_ctg user-category-item imm_user_ctg_itm

Page 10: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

user-category-attach imm_uset_ctg_ath

2.6 Corporation The data area “corporation” consists of three (3) entities as shown below.

Table 2-7: Corporation entities

Entity name Target table corporation imm_corporation corporation-inclusion imm_corporation_inc_ath corporation-attach imm_corporation_ath

When importing corporation-attach, the relevant customer needs to have already been present.

Corporation-set will be created as may be necessary when importing the corporation. Corporation-set alone

cannot be imported/exported. In addition, existing corporation-set cannot be updated.

Corporation-category/corpration-category-item/corporation-category-attach are not to be the targets of

import/export.

2.7 Customer The data area “customer” consists of one (1) entity as shown below.

Table 2-8: Customer entity

Entity name Target table customer imm_customer

Customer-category/customer-category-item/customer-category-attach are not to be the targets of

import/export.

2.8 Item The data area “item” consists of one (1) entity as shown below.

Table 2-9: Item entity

Entity name Target table item imm_item

Item-category/item-category-item/item-category-attach are not to be the targets of import/export.

2.9 Item-category The data area “item-category” consists of three (3) entities as shown below.

Table 2-10: Item-category entities

Entity name Target table item category imm_item_category item-category-inclusion imm_item_category_inc_ath item-category-attach imm_item_category_ath

In order to import item-category-attach, the relevant item needs to have already been present.

Item-category-set will be created as may be necessary when importing the item-category. Item-category-set

alone cannot be imported/exported. In addition, existing item-category-set cannot be updated.

Page 4 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

Page 11: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

2 Data areas

Created by: NTT DATA INTRAMART CORP. Page 5

2.10 Currency-rate The data area “currency-rate” consists of one (1) entity as shown below.

Currency-rate handles two records of TTB and TTS as one set. TTB (exchange rate from local

currency-code to foreign currency-code) and TTS (exchange rate from foreign currency-code to local

currency-code) are handled as one set.

Table 2-11: Currency-rate entity

Entity name Target table currency-rate imm_currency_rate

Page 12: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

3 Import

3.1 Outline There are two types of import function of IM-Common Master: one is "snapshot import” with which a single term

is imported, and the other is “full-term import” with which multiple terms are imported between the system start

date and the system end date.

For data files to be used for importing, two types of format, namely XML and CSV can be used. XML files can

handle multiple terms, whereas CSV files do not have term information. Other than term information, there is no

difference in information which can be handled with these formats.

When importing concurrently multiple terms, or data with different terms for each entity, data files should be

created in XML.

In principle, import processing consists of only data registration/update. It should be noted that existing entity and

entity-attach information cannot be deleted. However, exceptionally only in case of inclusion structure, existing

information on the import target term will be deleted. As no information can be added to inclusion structure, all the

structure information surely needs to be imported.

Table 3-1: Function comparison

Snapshot Full-term

valid locale no restriction no restriction

valid term ● only one term

● same start date/end date for

all the terms

● multiple terms can be created

● any term can be configured

individually

how to specify the term specified in the configuration

file

specified within the import data file

data file CSV、XML XML

Notes when executing snapshot import with XML format selected for the data file:

Even if start date/end date are configured in the XML data file, they will be ignored.

If more than one terminable informations have been described, just one of them will be imported. In

this case, the terminable information to be selected cannot be specified, and there is no guarantee that a

particular one should be surely selected.

3.1.1 Importing entities having internationalization information It is possible to describe internationalization information of multiple locales in one import file, and the

internationalization information so described will all be registered. Locale data with no description will remain the

same, and will not be deleted. In such a case, only non-internationalization information will be updated.

Notes when importing in CSV format:

If the data file is in CSV format, data on one locale is described per one line. When importing multiple locales,

there will be multiple lines for one data, whereas all the non-internationalization data need to be described with

identical contents. Neither omitting some data nor describing different data is allowed.

Page 6 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

Page 13: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

3 Import

Created by: NTT DATA INTRAMART CORP. Page 7

List 3-2 shows an example of CSV data on a public-group. The first four portions written in bold (public-group-set

code, public-group code, sort-key, delete-flag) need surely be identical.

public-group,public-group,17,false,ja,サンプルパブリック,サンプル,サンプルパブリック,サンプル public-group,public-group,17,false,en,sample-public,sample,sample public, sample

List 3-2: An example of a public-group having data in Japanese and in English

The first line is information in Japanese, and the second line is information in English. Sort-key and

delete-flag must be identical respectively.

If different data is configured, just one of them will be registered. In this case, there is no guarantee that

particular data is constantly selected.

3.1.2 Importing entities having terminable information In full-term import, the term exactly as described in the data file will be created.

If the term information in the data file is not continuous or is overlapping, an error will occur resulting in aborting

the import.

In snapshot import, basically just one term will be the import target.

However, if import target term does not fill the period between the system start date and the system end date,

multiple terms may be created.

If a new entity has been imported.

If a locale has been added for an entity having internationalization information. (次節で解説)

In these cases, data other than the one term being the import target will be automatically complemented, so

arbitrary data cannot be specified.

3.1.3 Updating entities having internationalization/terminable information If an entity having terminable information also has internationalization information, all the terms for the

internationalization information will also be changed. Internationalization information which has not been

described in the import data file will also be updated.

existing entity

after executing import

import file

enja

zhja

zhenja

term B term Cterm A

term Xterm A term C

Figure3-3: Example of importing term B

The portion in dark gray color after executing import is the term to be updated.

For Japanese (ja), term B will be updated by the imported data.

English (en) is not the target, so its internationalization information will not be updated. Start date, end date

and delete-flag will be updated.

For Chinese (zh), term B being the import target term will be created, and the lacking term A and term C

will be created concurrently.

3.2 Snapshot import Data extracted from the terminable information existing on a particular date is called “snapshot”. In snapshot

Page 14: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 8 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

import, import can be executed based on this snapshot data.

nd date will be created for all the entities having

terminable information.

terminable information to be imported are configured in the configuration file.

ormation,

be imported first will be imported.

3.2.1 The term to be created by snapshot import is just one term specified in the configuration file. If an existing term lies

d by the start date/end date.

3.2.1.1 A

“Term B” being the import target will be created.

alone cannot meet the restriction of “having full-term data”, complementary terms will be

port end date up to the system end date will be created.

Just one term from the import start date up to the e

Entities having no terminable information will be registered/updated regardless of the term.

Start date and end date of

In case of overlapping on the term created by import and the existing term in the master inf

existing term will be shortened or deleted.

There are no restrictions on the sequence of data in the import file.

Within an identical file, data required to

Term to be imported/updated by snapshot import

on the start date/end date which have been configured, the term will be divide

dding a new term

Because this term

added to before and after the term.

“Term A” beginning from the system start date up to the import start date will be created.

“Term C” beginning from the im

term Bterm Aafter executing

import

import target termimport file

term C

Figure 3-4: Creating a new term

3.2.1.2 Updating existing data

If a term is imported to an entity having its whole term divided into four terms.

A” will be changed to import start date.

changed.

End date of “term

Because “term B” is included in the import target term, it will be deleted.

Start date of “term C” will be changed to import end date.

Because “term D” is not included in the import target term, it will remain un

“Term X” will be created, consisting of the imported data.

Figure 3-5: Overwriting the term (1)

If a term is imported to a

End date of “term A” will be changed to import start date.

data.

n entity having just one term.

“Term B” will be created, consisting of the imported

Page 15: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

3 Import

Created by: NTT DATA INTRAMART CORP. Page 9

“Term C” beginning from the import end date up to the system end date, will be created. The data is

same as “term A”, except start date/end date.

Figure 3-6: Overwriting the term (2)

3.3 Full term import erm information beginning from the system start date up to the system end date can be

terminable information can be imported with arbitrary terminable information

of the entities with terminable information has different term information:

A consecutive term beginning from the system start date up to the system end date needs to be

information cannot be

scribed in the import data file:

t be

g term remains, it will be defined with the same content. However, its term-code will be

s on the sequence of data in the import file.

3.3.1 ntent to be notified to a listener by API during import In import processing, IM-Common Master API is used for updating data. This section describes the sequence of

ssed as “???” in the method

ted several times in order to assign new term-codes.

For an entity, more than one t

imported collectively. All the

configured.

If each

configured. There are no multiple terms on one particular date, and the term

missing.

Entities having no terminable information will be registered/updated regardless of the term.

If the term is de

Even if start date and end date of existing data are not to be changed, term description canno

omitted.

If all the terms are newly created within the term of the import file:

If an existin

newly assigned.

Partial definition of the term will cause an error.

There are no restriction

Co

notifying the updated content to a listener during executing import. The portion expre

name differs depending on the entity of each Manager.

In full-term import, change of terms will be execu

Page 16: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 10 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

Figure 3-7: Import target

In order to create a term with new term-code at the forefront, previous forefront term is moved backward. (Figure

3-8)

Term of “term A” beginning from the system start date will be changed as follows:

01: update???Term (term A) // term A: from today’s date up to the system end date 02: remove???Term (term B) 03: create???Term (term X) te up to today’s date // term X: from the system start da

Fi re 3-8: Creating a new term gu

X. (Figure 3-9) The newly created term will be changed to the full-term, which will be filled with term

04: update???Term (term X) // term X: from the system start date up to the system end date 05: remove???Term (term A)

Figure 3-9: Changing to full-term

“Te st end date of the imported data. (Figure 3-10)

erminable information of “term X” will be updated.

rm X” will be divided on the fir

T

06: createTerm (term Y) // term Y: from the start date of term 2 up to the system end date 07: updateTerm (term X) // term X: from the system start date up to the end date of term 1 08: update??? (term X)

Figure 3-10: Dividing term X

“Te e second end date of the imported data.(Figure 3-11)

erminable information of “term Y” will be updated.

rm Y” will be divided on th

T

09: createTerm (term Z) // term Z: from the start date of term 3 up to the system end date 10: updateTerm (term Y) // term Y: from the start date of term 2 up to the end date of term 2 11: update??? (term Y)

The last term will not be divided. T rm Z” will be updated. erminable information of “te

12: updateTerm (term Z) 13: update??? (term Z)

Figure 3-11: Creating term Y

Page 17: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

4 Export

Created by: NTT DATA INTRAMART CORP. Page 11

4 Export

4.1 Outline IM-Common Master provides functions of exporting master information. There are two types of exporting

methods: one is “snapshot export” with which a snapshot of a specified date is exported, and the other is “full-term

export” with which full-term beginning from the system start date up to the system end date is exported.

For data files to be used for exporting, two types of format, namely CSV and XML can be used.

In XML format all the term information will be exported, whereas in CSV format term information will not be

exported, only valid data for a particular date will be exported. There is no difference in the exported data of these

formats, except term information. Regardless of which format is used, data files once exported can be imported

again.

Table 4-1: Function comparison

Snapshot Full-term

valid locale no restriction no restriction

valid term just one term over the specified date all the term being present

data file CSV XML XML

term information to be exported

(start date/end date)

none export target term all exported

unit of file per entity per data area

4.2 Snapshot export In snapshot export, a snapshot of a particular date specified is exported.

For entities with terminable information, term information present on the specified date will be the export

target.

For entities not terminalized, information will be exported regardless of the date.

All the internationalization information will be exported.

Export base date will be specified in the configuration file.

All the data will be exported to one file.

Format used for exporting can be chosen either CSV or XML.

When exporting in CSV format, start date/end date of the term will not be exported.

When exporting in XML format, start date/end date of the export target term will be exported.

4.3 Full term export In full-term export, data on the whole term from the system start date up to the system end date will be exported.

Terminable information and non-terminable information will all be exported.

All the internationalization information will be exported.

All the data will be exported to one file.

Only XML format can be used for exporting the file.

Page 18: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 12 Copyright 2000-20102 NTT DATA INTRAMART CORP. All rights Reserved.

4.4 Filtering functionFiltering function is

targets, such entities as

the one by which export target data is restricted when being exported. In restricting export

defined in each data area can be specified.

An entity specified as filtering target and its associated data will be the export target.

es not associated with the one specified as filtering target will all be the export targets.

his corresponds to the categories and category-items of each data area.

consistency

Entiti

T

More than one target cannot be specified.

For how to configure, refer to section 6.2.2.7.

Locale to be exported cannot be specified.

This is because if only a part of locales is extracted, it becomes impossible to maintain

between entities.

Page 19: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 13

5 Data file format This chapter explains about data file formats for import/export.

5.1 ort functions of IM-Common Master.

, any character string may be specified. For the upper limit on

V definition table means it can be registered with null characters, not meaning that

o description is necessary in the data file. When specifying notes without any abbreviation and/or search name,

null characters should be specified for the abbreviation/search name.

For items of “internationalization” column marked with a circle, arbitrary data can be specified when registering

more than on internationalization information. Those not marked are not internationalized, so identical one should

be specified.

Entity of the target file

In CSV format, data file needs to be divided for each entity. When executing import/export, entities will be

specified with type attribute of the targeted configuration file. For details on configuration file, refer to Chapter 6

together.

Example of specifying a department for the target data file.

CSV format This section shows CSV format used for the import/exp

Unless specifically described in the “Notes” column

the number of characters, refer to the separate document “IM-Common Master Database Definitions”.

The word “required” in the CS

n

05: <file type=”department”>im_master/import/data.csv</file>

5.1.1 Company group

5.1.1.1 Company group

Table 5-1: Company-group

Item name Header Required Internationalization

Notes

1 company-group-set-code company_group_set_cd ○

2 company-group-code company_group_cd ○

3 sort-key sort_key ○ numerical value:

0 - 99999

4 delete-flag delete_flag ○ “true” / “false”

5 locale-ID locale_id ○ ○ language code

6 company-group-name company_group_name ○ ○

7 company-group-short-name company_group_short_name ○

8 company-group-search-name company_group_search_name ○

9 notes notes ○

5.1.1.2 Company-group-inclusion

Table 5-2: Company-group-inclusion

Item name Header Required Internationalization Notes

Page 20: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 14 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

1 company-group-set-code company_group_set_cd ○

2 company-group-code company_group_cd ○

3 parent-company-group-code parent_company_group_cd ○

4 delete- “true” / “false”flag delete_flag ○

5.1.1.3 Company-group-attach

Table 5-3: Company-group-attach

Item name Header Required Internationalization Notes

1 company-group-set-code company_group_set_cd ○

2 company-group-code company_group_cd ○

3 company-code company_cd ○

4 delete-flag delete_flag ○ “true” / “false”

5.1.2 C

5.1.2.1 Department

Table 5-4: Department

Ite

ompany-department

m name Header Required Internationalization Notes

1 company-code company_cd ○

2 department-set-code department_set_cd ○

3 department-code department_cd ○

4 sort-k numerical value:

0 - 99999

ey sort_key ○

5 delete-fl “true” / “false” ag delete_flag ○

6 locale-ID locale_id ○ ○ language code

7 department-name department_name ○ ○

8 department-short-name department_short_name ○

9 department-search-name department_search_name ○

10 country-code country_cd ○

11 zip zip-code _code ○

12 address-1 address1 ○

13 ad ○ address-2 dress2

14 ad ○ address-3 dress3

15 ne-number tel mber ○ telepho ephone_nu

16 extension-number extension_number ○

17 er fax_number ○ fax-numb

18 n-fax-number ex _number ○ extensio tension_fax

19 em ○ email-address-1 ail_address1

20 email-address-2 email_addr ○ ess2

21 rl ○ URL u

22 s no ○ note tes

5.1

Header Requir

.2.2 Department-inclusion

Table 5-5: Department-inclusion

ed Internationaliz Item name ation Notes

Page 21: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 15

1 company-code company_cd ○

2 department-set-code ○ department_set_cd

3 department-code department_cd ○

4 parent-department-code tment_cd ○ parent_depar

5 delete-flag delete_flag ○ “true” / “false”

5.1.2.3 Post

Table 5-6

quired ation Notes: Post

Item name Header Re Internationaliz

1 company-code company_cd ○

2 department-set-code department_set_cd ○

3 post-code ○ post_cd

4 sort key sort_key ○ numerical value:

0 - 99999

5 delete-flag delete_flag ○ “true” / “false”

6 rank rank ○ numerical value:

0 - 99999

7 locale-ID id ○ alocale_ ○ langu ge code

8 post-name ○ ○ post_name

9 notes notes ○

5.1. rtment-attach ment-attach-post

Table 5-7: Department-attach/department-attach-post

name Required Internationaliz Notes

2.4 Depa /depart

Item Header ation

1 company-code ny_cd ○ compa

2 department-set-cod _cd ○ e department_set

3 department-code ○ department_cd

4 user-code user_cd ○

5 main-attach-flag nt_main “true / “false” departme ”

6 delete-flag flag ○ “true / “false” delete_ ”

7 post-code d post_c

5.1. rtment-categ

8: Department-category

Required ation Notes

2.5 Depa ory

Table 5-

Header Item name Internationaliz

1 category-code category_cd ○

2 delete-flag delete_flag ○ “true” “false” /

3 category-type ○ “1” / “0” category_type

4 sort-key sort_key ○ numerical value:

0 - 99999

5 locale-ID e_id ○ ○ language code local

6 category-name y_name ○ ○ categor

7 notes notes ○

Page 22: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 16 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

5.1.2.6 -catego

epartmen egory

He Required ation Notes

Department ry-item

Table 5-9: D t-cat -item

Item name ader Internationaliz

1 category-code ca tegory_cd ○

2 category-item-code cat cd ○ egory_item_

3 delete-flag delete_flag ○ “true” / “false”

4 sort-key sort_key ○ numerical value:

0 - 99999

5 lo lo n de cale-ID cale_id ○ ○ la guage co

6 cat e cat ○ ○ egory-item-nam egory_item_cd

7 o o ○ n tes n tes

5.1.2.7 nt-catego

Table 5-10: Department-category-attach

Re ed Internationalization

Departme ry-attach

Item name Header quir Notes

1 company-code any_cd comp ○

2 department-set-code department_set_cd ○

3 department-code department_cd ○

4 category-code category_cd ○

5 category-item-code ry_item_cd catego ○

6 delete-flag delete_flag ○ “true” / “false”

5.1.3 Public-group

5.1.3.1 Pu

Public-group

I na Re uired Internationalization Notes

blic-group

Table 5-11:

tem me Header q

1 public-group-set-code roup_set_cd public_g ○

2 p lic-g ub roup-code public_group_cd ○

3 sort-key cal

value:

0 - 99999

sort_key ○ numeri

4 delete-flag delete_flag ○ “true” /

“false”

5 locale- d language

code

ID locale_i ○ ○

6 p lic- p_name ○ ○ ub group-name public_grou

7 p lic- e short_name ○ ub group-short-nam public_group_

8 public-group-search-name roup_search_ e ○ public_g nam

9 notes notes ○

5.1.3.2 Pu clus

Table 5-12: Public roup-inclusion

Item name Header Required Internationalization Notes

blic-group-in ion

-g

1 public-group-set-code public_group_set_cd ○

Page 23: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 17

2 _group_cd ○ public-group-code public

3 parent-public-group-code pa rent_public_group_cd ○

4 d te elete_flag “true” / “false” ele -flag d ○

5.1.3.3

Tab

I eader Required Internatio s

Role

le 5-13: Role

tem name H nalization Note

1 public-group-set-code public_group_set_cd ○

2 r -c e_cd ○ ole ode rol

3 s -k ○ numerical value:

0 - 99999

ort ey sort_key

4 delete-flag delete_flag ○ “true” / “false”

5 ○ numerical value:

0 - 99999

rank rank

6 local -ID e_id language code e local ○ ○

7 role m e ○ -na e role_nam ○

8 note ○ s notes

5.1.3.4 u ttach up-attach-role

attach/public- oup-attach-role

Ite r Re uired Internationaliz

P blic-group-a /public-gro

Table 5-14: Public-group- gr

m name Heade q ation Notes

1 public-group-set-code public_group_set_cd ○

2 public-group-code public_group_cd ○

3 user-code user_cd ○

4 delete-flag delete_flag ○ “true” / “false”

5 role-code role_c d ○

5.1.3 ategor

Public-group-categ

Header quired Internationalization Notes

.5 Public-group-c y

Table 5-15:

Reory

Item name

1 category-code category_cd ○

2 delete-flag delete_flag ○ “true” / “false”

3 category-type cate ○ “ ” / “0” gory_type 1

4 sort-key sort_key ○ numerical valu

9999

e:

0 - 9

5 locale-ID locale_id ○ ○ language code

6 category-name cate ○ gory_name ○

7 notes not ○ es

5.1.3.6 Public-group-categor

Table 5-16: Public-group-category-item

r Required Internationalization Notes

y-item

Item name Heade

1 category-code category_ cd ○

2 category-item-code cate _cd ○ gory_item

3 delete-flag dele ○ “true” / “fa e” te_flag ls

Page 24: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 18 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

4 sort-key sort_ ○ numerical lue:

0 - 99999

key va

5 locale-ID local ○ ○ language ce_id ode

6 category-item-name category_item_cd ○ ○

7 notes notes ○

5.1.3.7 Public-group-category-

p-categ

e Re red Internationalization Notes

attach

Table 5-17: Public-grou ory-attach

Item nam Header qui

1 oup-set-code roup_set_cd public-gr public_g ○

2 public-group-code public_group_cd ○

3 de d category-co category_c ○

4 ory-item-code category_item_cd categ ○

5 delete-flag delete_flag ○ false” “true” / “

5.1.4 Private-group

5.1.4.1 Private-group

p

Item name nationalization Notes Table 5-18: Private-grou

Header Required Inter

1 user-code user_cd ○

2 priv priva ate-group-code te_group_cd ○

3 private-group-name priva te_group_name ○

4 private-group-search-name priva search_name te_group_ ○

5 not notes es ○

6 sor sort_ numerical value:

0 - 99999

t-key key

5.1.4.2 Private-group-attach

Table 5-19: Pr oup-

It na r Required I ernational Notes ivate-gr attach

em me Heade nt ization

1 ow r-c r_cd ○ ne ode owne

2 pr te-g roup_cd ○ iva roup-code private_g

3 us cod r_cd ○ er- e use

4 sort-key sort_key ○ numerical value:

99 0 - 999

5.1.5 se

5.1

Ite re io tes

U r

.5.1 User

Table 5-20: User

m name Header Requi d Internationalizat n No

1 us ○ er-code user_cd

2 so ○ numerical value: rt-key sort_key

0 - 99999

Page 25: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 19

3 delete-flag ○ ” delete_flag “true” / “false

4 locale-ID locale_id ○ ○ ge code langua

5 us ○ ○ er-name user_name

6 us ○ er-search-name user_search_name

7 sex sex

8 country-code country_cd ○

9 zip-code zip_code ○

10 address-1 address1 ○

11 address-2 address2 ○

12 addres ○ address-3 s3

13 er telepho ○ telephone-numb ne_number

14 extension-number extension_number ○

15 fax-number fax_nu ○ mber

16 extension-fax-number extens ber ○ ion_fax_num

17 mobile-number mobile_number ○

18 email-address-1 email_address1 ○

19 email-address-2 email_address2 ○

20 mobile-email-address mobile_email_address ○

21 URL url ○

22 notes notes ○

5.1.5 gory

: User-category

H Inter onal Notes

.2 User-cate

Table 5-21

Item name eader Required nati ization

1 category-code ca _cd ○ tegory

2 delete-flag delete_flag ○ “true” / “false”

3 category-type category_type ○ “1” / “0”

4 sort-key sort_key ○ numerical value:

0 - 99999

5 locale-ID locale e_id ○ ○ languag code

6 category-name category_name ○ ○

7 notes notes ○

5.1.5 ategory-item

e 5-22: User-categ

Item name Header Required Internationalization Note

.3 User-c

Tabl ory-item

s

1 category-code category_cd ○

2 category-item-code category_item_cd ○

3 delete-flag delete_flag ○ “true” / “false”

4 sort-key sort_key ○ numerical value:

0 - 99999

5 local e e-ID locale_id ○ ○ language cod

6 em-name em_cd ○ ○ category-it category_it

7 notes ○ notes

Page 26: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 20 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

5.1.5. egory-atta

Table 5-23: User-category-attach

me Requir Internationa Notes

4 User-cat ch

Item na Header ed lization

1 user-code ○ user_cd

2 category-code egory_cd ○ cat

3 ○ category-item-code category_item_cd

4 delete-flag ag ○ “true” / “false” delete_fl

5.1.6 Corporation

5.1.6.

e 5-24: Corpor ion

Ite Required Internationalization Notes

1 Corporation

Tabl at

m name Header

1 co ○ rporation-set-code corporation_set_cd

2 co ○ rporation-code corporation_cd

3 so ○ numerical value:

0 - 99999

rt-key sort_key

4 de ○ “true” / “false” lete-flag delete_flag

5 loc le_id ○ language code ale-ID loca ○

6 corporation-name ation_name ○ corpor ○

7 corporation-short-name corporation_short_name ○

8 corporation-search-name corporation_search_name ○

9 country-code country_cd ○

10 zip-code zip_code ○

11 ad ss-1 ○ dre address1

12 ad ss-2 ○ dre address2

13 ad ss-3 ○ dre address3

14 telephone-number ○ telephone_number

15 extension-number extension_number ○

16 fax mb er ○ -nu er fax_numb

17 ex sion umber ○ ten -fax-number extension_fax_n

18 em -ad address1 ○ ail dress-1 email_

19 email-address-2 email_address2 ○

20 URL url ○

21 notes notes ○

5.1.6.2 C nclus

5: Corpo n-inclusion

Ite equired Internationalizat

orporation-i ion

Table 5-2 ratio

m name Header R ion Notes

1 corporation-set-code on_set_cd ○ corporati

2 corporation-code corporation_cd ○

3 pa ation-code ○ rent-corpor parent_corporation_cd

4 de ○ “true” / “false” lete-flag delete_flag

Page 27: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 21

5.1

I

.6.3 Corporation-attach

Table 5-26: Corporation-attach

tem name Header Required Internationalization Notes

1 corporation-set-code on_set_cd corporati ○

2 c d orporation-code corporation_c ○

3 c ompany-code company_cd ○

4 customer-code customer_cd ○

5 delete-flag delete_flag ○ “true” / “false”

5.1.7 Customer

5.1.7.1 Customer

Table 5-27: Cu

Requ Internationalization Notes stomer

Item name Header ired

1 ○ company-code company_cd

2 customer-code customer_cd ○

3 sort-key sort_key ○ nu ue:

0

merical val

- 99999

4 delete-flag delete_flag ○ “t rue” / “false”

5 ○ ○ language code locale-ID locale_id

6 ○ ○ customer-name customer_name

7 ○ customer-short-name customer_short_name

8 -name arch_name ○ customer-search customer_se

9 -code d ○ country country_c

10 ○ zip-code zip_code

11 1 ○ address- address1

12 2 ○ address- address2

13 ○ address-3 address3

14 r ○ telephone-numbe telephone_number

15 number mber ○ extension- extension_nu

16 ○ fax-number fax_number

17 umber ○ extension-fax-n extension_fax_number

18 1 ○ email-address- email_address1

19 il-address-2 il_address2 ○ ema ema

20 ○ URL url

21 notes notes ○

5.1.8 Item-category

5.1.8.1

28: Item-cat

Item uire Internationalization Notes

Item-category

Table 5- egory

name Header Req d

1 m- code ite set_cd ite category-set- m_category_ ○

2 item-category-code item_category_cd ○

3 sort-key sort_key ○ numerical value:

Page 28: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 22 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

0 - 99999

4 delete-flag delete_flag “true” / “false” ○

5 locale-ID lo ○ e code cale_id ○ languag

6 ite cate te ○ ○ m- gory-name i m_category_name

7 ite cate ite rt_name ○ m- gory-short-name m_category_sho

8 ite cate e ite earch_name ○ m- gory-search-nam m_category_s

9 no no ○ tes tes

5.1.8.2 Item-category-inclusion

Table 5-29: Item-category-inclusion

Header Required Internationalization Notes Item name

1 item-category-set-code item_category_set_cd ○

2 item-category-code item_category _cd ○

3 pa egory-code item_category_cd rent-item-cat parent_ ○

4 de ○ “true” / “false” lete-flag delete_flag

5.1.8 gory-atta

Table 5-30: Item-category-attach

Re ed Internationalization

.3 Item-cate ch

Item name Header quir Notes

1 i ry-set-code ategory_set_cd tem-catego item_c ○

2 i e y_cd tem-category-cod item_categor ○

3 c ompany-code company_cd ○

4 i tem-code item_cd ○

5 d ag “true” / “false” elete-flag delete_fl ○

5.1.9

5.1.9

able 5-31: Item

Ite Header Required Internationalization Notes

Item

.1 Item

T

m name

1 -code ○ company company_cd

2 ○ item-code item_cd

3 ○ num value:

0 - 99999

sort-key sort_key erical

4 delete-flag e_flag ○ “true / “false” delet ”

5 locale-ID id ○ ○ language code locale_

6 item-name item_name ○ ○

7 item-short-name item_short_name ○

8 item-search-name item_search_name ○

9 notes ○ notes

5.1.10 Currency

5 10. ate

Table 5-32: Currency-ra

.1. 1 Currency-r

te

Page 29: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 23

Item name Header Required Internationalization Notes

1 currency-code cd ○ currency_

2 base-currency-code rrency_cd ○ base_cu

3 delete-flag delete_flag ○ “true” / false” “

4 TTB ttb ○

5 TTS tts ○

5.2 XML format at used for the import/export functions of IM-Common Master.

specifically desc er d er limit on

the number of characters, refer to the separate document “IM-Common Master Database Definitions”.

s marked “required” co n are all required; however, element per se to

lo ould b description of that attribute per se. Only when the

nt to which the att s exists, that attribute quire .

<root>. In the XML structure definition tables shown in the next section and thereafter,

for simplificat

m-code (term-cd described for term element (term). Ter t is not

ew t e assig ore, description on term-code is omitted in the

on tables

5.2.1 Company-group ble 5-33: Company-

Element name Attribute name Required Notes

This section shows XML form

Unless ribed in the “Notes” column, any charact string may be specifie . For the upp

Attribute name with a circle in the lum if the

which the attribute be ngs can be omitted, there w e no

eleme ribute belong is re d

Root element of data file is

it is omitted

In addition, ter

ion.

) is not m-code can be exported, bu

used for import. A n erm-code will always b ned. Theref

structure definiti .

Ta group

company-group-set

company-group-set-cd ○

comp -cany-group d ○

company-group

sort-key ○ numerical value: 0 - 99999

start-date ○ ype character string in

at

date-t

yyyy-MM-dd form

end-date ○ character string in

rmat

date-type

yyyy-MM-dd fo

t

delete-fl ○

erm

ag “true” / “false”

○ locale

locale-id ○ e code languag

company-group-name ○

company-group name -short-

company-group-search-name

notes

company-attach

company-cd ○

term ○

Page 30: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 24 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

start-d d acter string in

yyyy-MM-dd format

ate ○ ate-type char

end-date ○ date-type character string in

y at yyy-MM-dd form

delete-flag ○ “ ue” / “false” tr

inclusion

start-date ○ date-type character string in

rmat yyyy-MM-dd fo

end-date ○ date-type character string in

yyyy-MM-dd format

term

delete-flag ○ “true” / “false”

parent-company-group-cd ○

relation

company-group-cd

5.2.2 CTable 5-34: Company-department

Element

ompany-department

name Attribute name Requir

ed

Notes

compan

company-cd ○

y

department-set

department-set-cd ○

department-cd ○

department

s ○ eri l value: 0 - 99999 ort-key num ca

s ○ e-ty character string in

y-M

tart-date dat pe

yyy M-dd format

end-date ○ ate-ty character string in

y-M

d pe

yyy M-dd format

term

delete-flag ○ “true” / “false”

locale

locale-id ○ language code

department-name ○

department-short-name

department-search-name

notes

category-cd ○

category-item-cd ○

delete-flag ○ ” / ”

category-attach

“true “false

user-attach

user-cd ○

Page 31: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 25

start-date ○ date-typ g in

yy-M

e character strin

yy M-dd format

end-date ○ date-typ g in

yy-M

e character strin

yy M-dd format

term

delete-flag ○ ” / ” “true “false

post-attach

p ○ ost-cd

inclusion

start-date ○ date-typ g in

yy-M

e character strin

yy M-dd format

end-date ○ e-typ character string in

yy-MM-dd format

dat e

yy

term

d ○ ue” / ” elete-flag “tr “false

parent-department-cd ○

relation

○ department-cd

post-cd ○

rank ○

post

sort-key ○ numerical value: 0 - 99999

start-date ○ date-type character string in

yyy-MM-dd format y

end-date ○ date-type character string in

yyyy-MM-dd format

term

delete-flag ○ ” / “false” “true

○ locale

locale-id ○ language code

post-name ○

notes

category-cd ○

delete-flag ○ “true” / “false”

sort-key umerical value: 0 - 99999 ○ n

category

ategory-type ○ ” / “0” c “1

locale

cale-id ○ nguage code lo la

category-name ○

notes

category-item-cd ○

delete-flag ○ ” / “false” “true

category-item

umerical value: 0 - 99999 sort-key ○ n

Page 32: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 26 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

○ locale

locale-id ○ language code

category-item-name ○

notes

5.2.3 Public-group ble 5-35: Public-group

Element name A ame Required Notes

Ta

ttribute n

public-group-set

public-group-set-cd ○

public-group-cd ○

public-group

sort-key ○ numerical value: 0 - 99999

start-date ○ aracter string in

yyyy-MM-dd format

date-type ch

end-date ○ date-type character string in

yyyy-MM-dd format

term

delete-flag “true” / “false” ○

locale

local e-id ○ language code

public-group-name ○

public-group-short-name

public-group-search-name

notes

cat ○ egory-cd

cat -cd ○ egory-item

category-attach

delete-flag ○ ” “true” / “false

user-attach

user-cd ○

start-date date-type character string in

rmat

yyyy-MM-dd fo

end-date ○ tring in date-type character s

yyyy-MM-dd format

term

delete-flag false” ○ “true” / “

role-attach

role-cd ○

inclusion

start-date date-type character string in

yyyy-MM-dd format

end-date aracter string in

term

○ date-type ch

yyyy-MM-dd format

Page 33: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 27

delete-flag “true” / “false” ○

parent-public-group-cd ○

relation

public-group-cd ○

role-cd ○

rank ○

role

cal value: 0 - 99999 sort-key ○ numeri

start-date ○ date-type character string in

-MM-dd format yyyy

end-date ○ ype character string in date-t

yyyy-MM-dd format

term

delete-flag ○ “true” / “false”

○ locale

○locale-id language code

role-name ○

notes

category-cd ○

delete-flag ○ “true” / “false”

sort-key ○ numerical value: 0 - 99999

category

y-type ○ 1” / “0” categor “

locale

e-id ○ e code local languag

category-name ○

notes

category-item-cd ○

delete-flag ○ “true” / “false”

category-item

○ e: 0 - 99999 sort-key numerical valu

○ locale

locale-id ○ language code

category-item-name ○

notes

5.2.4 Private-group able 5-36: Private-group

Element name Attribut Required Note

T

e name s

private-group-cd ○

user-cd ○

private-group

sort-key ○ numerical value: 0 - 99999

private-group-name ○

private-group-search-name

Page 34: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 28 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

notes

use ar- ttach

user-cd ○

sort-key ○ nume l val 99999 rica ue: 0 -

5.2.5 User

able 5-37: User

Element name Attribut Required Notes

T

e name

user-cd ○

user

sort-key ○ numerical value: 0 - 99999

start-date ○ date-type

yyyy-MM-dd fo

character string

rmat

in

end-date ○ date-t e character string in

yyyy -dd

yp

-MM format

term

delete-flag ○ “true false” / “ ”

locale

locale-id ○ language code

user-name ○

user-search-name

sex

country-cd

zip-code

address1

address2

address3

telephone-number

extension-number

fax-number

extension-fax-number

mobile-number

email-address1

email-address2

mobile-email-address

url

notes

category-item-cd ○

category-attach

true” / “false” delete-flag ○ “

category-cd ○

delete-flag ○ “true” / “false”

sort-key e: 0 - 99999 ○ numerical valu

category

y-type 1” / “0” categor ○ “

Page 35: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 29

locale

locale-id e code ○ languag

category-name ○

notes

category-item-cd ○

delete-flag “true” / “false” ○

category-item

cal value: 0 - 99999 sort-key ○ numeri

○ locale

nguage code locale-id ○ la

category-item-name ○

notes

5.2.6 Corporation

able 5-38: Corpor

Element name Attribute name R

T ation

equired Notes

corporation-set

corporation-set-cd ○

corporation-cd ○

corporation

sort-key ○ numerical value: 0 - 99999

start-date ○ date-type character string in

yyyy-MM-dd format

end-date ○ date-type character string in

yyyy-MM-dd format

ter

delete-flag ○ “true” / “false”

m

locale

locale-id ○ language code

corporation-name ○

corporation-short-name

corporation-search-name

notes

cus

customer-cd ○

tomer-attach

start-date ○ date-type character string in

yyyy-MM-dd format

end-date ○ date-type character string in

-MM-dd format yyyy

term

delete-flag ○ “true” / “false”

inclusion

term

t-date er string in

yyyy-MM-dd format

star ○ date-type charact

Page 36: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 30 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

end-date ○ date-type character string in

-MM-dd format yyyy

delete-flag ○ “true” / “false”

parent-corporation-cd ○

relation

cd ○ corporation-

5.2.7 Customer

Table 5-39: Custo

Element name Requir Not

mer

Attribute

name

ed es

customer

customer-cd ○

start-da ype character string in

yy

te ○ date-t

yy-MM-dd format

end-date ○ date-ty ch acter string in

yyyy- -dd rmat

pe ar

MM fo

term

delete-flag ○ “true” / false”“

locale

local ○ langu odee-id age c

customer-name ○

customer-short-name

customer-search-name

notes

5.2.8 Item-category

Table 5-40: Item-category

Element name e name quirAttribut Re ed Notes

item-categor

item-category-set-cd ○

y-set

item-category-cd ○

item-cate

sort-key ○ numerical value: 0 - 99999

gory

start-date ○ date-type character string in

yyyy-MM-dd format

end-date ○ er string in date-type charact

yyyy-MM-dd format

term

delete-flag ○ “true” / “false”

○ locale

locale-id ○ language code

item-category-name ○

item-category-short-name

item-category-search-name

Page 37: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

5 Data file format

Created by: NTT DATA INTRAMART CORP. Page 31

notes

item-attach

cd ○ customer-

start-date ○ date-type character string in

yyyy-MM-dd format

end-date ○ date-type character string in

yyyy-MM-dd format

term

d ○ “true” / “false” elete-flag

inclusion

start-date ○ date-type character string in

yyyy-MM-dd format

end-date ○ date-type character string in

yyyy-MM-dd format

term

delete-flag ue / false ○ “tr ” “ ”

parent-item-category-cd ○

relation

-categor item y-cd ○

5.2.9 Item

Table 5-41

Element n Attribute Required Notes

: Item

ame

name

item-cd ○

item

sort-key ○ numerical value: 0 - 99999

start-date ype c in

yyyy-MM-dd format

○ date-t haracter string

end-date ype char r s ring in

rmat

○ date-t

yyyy-MM-dd fo

acte t

term

delete-flag “ ” / “false” ○ true

locale

locale-id language code ○

item-name ○

item-short-name

item-search-name

notes

5.2.10 Currency

Currency-rate

Element n m Required Notes

Table 5-42:

a e Attribute name

○ currency-rate

currency-cd

Page 38: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 32 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

base-currency-cd ○

start-date ○ e character in

yyyy-MM-dd format

date-typ string

end-date ○ e-type character

yyyy-MM-dd format

dat string in

ter

delete-flag ○ ue” / “false”

m

“tr

buying ○

values

selling ○

Page 39: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

6 Executing import/export.

Created by: NTT DATA INTRAMART CORP. Page 33

6 Executing import/export. Import/export functions of IM-Common Ma s parts of APIs. Standard import/export can be

executed f s.

6.1 Outline of execution programImport/exp ions of IM-Common Master consist of the following two programs:

Ba p program

It collects necessary information and starts up import/export API.

Import/export API

It reads configuration file and executes import/export.

6.1.1 Batch program Batch program handles getting necessary information for starting up API, getting import/export configuration files

and transactions.

Through initial data import carried out after installing intra-mart WebPlatform/AppFramework, each of

import/export batches shown in Table 6-1 will be registered. For details on how to execute these batches, refer to

the separate document “Group Administrator Operation Guide”.

Table 6-1: Batch ID list

Batch ID Batch name Batch program class

ster are implemented a

rom batche

ort funct

tch startu

IMMCompanyGrpImport Company Group Import StandardCompanyGroupBatchImporter IMMCompanyGrpExport Company Group Export StandardCompanyGroupBatchExporter IMMCompanyImport Company-department Import StandardCompanyBatchImporter IMMCompanyExport Company-department Export StandardCompanyBatchExporter IMMPublicGrpImport Public-group Import StandardPublicGroupBatchImporter IMMPublicGrpExport Public-group Export StandardPublicGroupBatchExporter IMMPrivateGrpImport Private-group Import StandardPrivateGroupBatchImporter IMMPrivateGrpExport Private-group Export StandardPrivateGroupBatchExporter IMMUserImport User Import StandardUserBatchImporter IMMUserExport User Export StandardUserBatchExporter IMMCorporationImport Corporation Import StandardCorporationBatchImporter IMMCorporationExport Corporation Export StandardCorporationBatchExporter IMMCustomerImport Customer Import StandardCustomerBatchImporter IMMCustomerExport Customer Export StandardCustomerBatchExporter IMMItemCtgImport Item-category Import StandardItemCategoryBatchImporter IMMItemCtgExport Item-category Export StandardItemCategoryBatchExporter IMMItemImport Item Import StandardItemBatchImporter IMMItemExport Item Export StandardItemBatchExporter IMMRateImport Currency-rate Import StandardCurrencyRateBatchImporter IMMRateExport Currency-rate Export StandardCurrencyRateBatchExporter

Batch program packages are created with JAVA, and all of them are “jp.co.intra_mart.system.master.batch”.

6.1.2 Import/export API Import/export programs are implemented as parts of IM-Common Master API. When starting up import/export,

API for the data area is used respectively.

6.1.2.1 Import/export API processing: Outline 1. Analyzing the configuration file

Page 40: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 34 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

2. Creating the concurrent execution control file.

6. Deleting the copied import target file.

6.1.2.2 S ort from the API Manager

Import/export can also be executed by di c y the method of API Manager.

ndix A.

6.1.2.3 rrent execution of import/export.

rt concurrently. Processings having

in import/export configuration file and having the same target data area cannot be

Upon starting import/export, a concurrent execution control file will be created in the Storage Service.

if no control file exist. If the control file already exists, import/export will not be executed

3. Copying the import target file to Application Runtime 4. Analyzing the import target file. 5. Executing import.

7. Deleting the concurrent execution control file.

tarting up import/exp

re tl calling

For details on how to execute from API, refer to Appe

Function to prevent concu

Import/export functions have locking functions so as not to execute import/expo

the same name specified

executed concurrently.

Import/export will start

and be finished.

Path of the control file that will be created:

%StorageService%/master/%<login-group-code>%/batch/%<data-area>%/%<processing-name>%

Control file will be deleted after import/export being finished, regardless of success/failure. However, in case of

h (e.g. server d without be trol file still remains

rup e re-executed.

sho

6.2 C file nfigu port and for exp

rough ommon configu s:

on file: %Sto /system/im_master/config

%Sto /im_master/config

s are de port batches.

ot chang uration files. If ld be

y to crea execute import/

6.2.1 Im uration This is file used Configuration items of

nctions, but they need to be described for each manager that executes the import.

xample of import configuration file (company-group)

unforeseen finis own), control file may remain ing deleted. If such con

without being deleted, inter ted import/export cannot b

In such a case, relevant file uld be deleted manually.

onfiguration There are two types of co ration file format: for im ort.

The batches registered th initial data import use c ration files for every data area as follow

Import configurati rageService% /import_config.xml

Export configuration file: rageService%/system /export_config.xml

These configuration file fined by import/ex

Standard batches cann e the locations of config the location of a configuration file shou

changed, it is necessar te a batch program or to export directly from API.

port config file a configuration for executing import. import are common to the import

fu

E01: <app-master-import> 02: <company-group-import> 03: <name>sample_import</name> 04: <format>XML</format> 05: <file>im_master/import/data.xml</file> 06: <directory>im_master/import/data.</directory> 07: <start-date>2000-01-01</start-date> 08: <end-date>2010-01-01</end-date> 0 ng > 9: <encoding >UTF-8</encodi

Page 41: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

6 Executing import/export.

Created by: NTT DATA INTRAMART CORP. Page 35

10: <extension-param name=”replace-pattern” >true</extension-param > 11: <extension-param name=”sub-dirs” >false</extension-param > 12: </company-group-import> 13: </ app-master-import >

6.2.1.1

Immediately under the root there are data area

.

Table 6-2: Target batch identifying elements

g element

Specifying the data area

Root of import configuration file is <app-master-import>.

identifying elements, in which configuration information should be described.

Data areas which can be specified are shown in Table 6-3 below

Batch name Name of data area identifyinCompany-group company-group-import Company-department company-import Public-group public-group-import Private-group private-group-import User user-import Corporation corporation-import Customer customer-import Item-category item-category-import Item item-import Currency-rate currency-rate-import

6.2.1.2 Proce

onfigure the import processing name as follows:

ssing name

C

03: <name>sample_import </name>

The name configured as a processing name is unique to the import to be executed. Import processings

having same name cannot be executed concurrently.

specified, but characters not allowed to be used for file names cannot be used.

to be used depend on the OS on which the Storage Service is operated. It is

do not depend on the environment.

6.2.1.3 Im

Any character string can be

Characters not allowed

recommended to use alphanumeric characters and symbols which

port file format

Configure the file format as follows:

04: <format>XML</format>

Specify either CSV or XML.

This cannot be omitted.

6.2.1.4 Import target file/directory

Specify the import target data file as follows:

05: <file>im_master/import/data.xml</file>

Sp mport target data file is located as follows: ecify the directory where the i

06: <directory>im_master/import/data.</directory>

here is any file the format of which cannot be imported, it is All files in the directory will be the target. If t

considered an error.

Page 42: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 36 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

be specified. Omitting both is not allowed.

ctory by a file element nor specifying a file by a directory element is allowed.

ectory is specified, import sequence is indeterminate.

V format, it is necessary to specify the entity of the data file. For how to specify,

6.2.1.5 Im

Specify the target term for im

More than one file or directory can be specified.

Either a file or a directory must

Neither specifying a dire

If more than one file/dir

When importing in CS

refer to section 6.2.3.

port start date/import end date

porting the data as follows:

07 2000-01-01</start-date: <start-date> > 08 01-01</end-date>: <end-date>2010-

be specified in “yyyy-

be specified as “+ 1 d e of data acquisition < entity end date”, the data

ered needs to be “entity e

omitted, import start date such.

If end date is omitted, the system end date will be configured as such.

te and end date are omitted, operation will vary depending on the format of the import data

XML: full-term import covering from the system start date up to the system end date will be executed.

uted for the default date as mentioned above.

6.2.1.6

The date should MM-dd” format.

atEnd date should ay”.Since “base d

actually regist nd date plus one day”.

If start date is will be configured as

If both start da

file:

CSV: snapshot import will be exec

Character encoding

Specify the character encoding of the file as follows:

09: <encoding >UTF-8</encoding >

This is required when importing in CSV format. When importing in XML format, it is determined according to the XML file header. This parameter will be

of the file to be imported. It does not have to be the character encoding of the

Storage Service.

6.2.1.7 Exten

extension parameters.

ignored.

This is the character encoding

sion parameter

Several parameters can be configured as

10: <extension-param name=”replace-pattern” >true</extension-param > 11: <extension-param name=”sub-dirs” >false</extension-param >

vailable in standard import

Exte Outline Configurable values and default values

Table 6-3: Extension parameters a

nsion parameter name replace-pattern Should pattern character string replacement of

the import target be set as valid? true or false default: true

s ecified in the directory be the import target?

true or false default: false

ub-dirs Should subfolder of the folder sp

with-header Should the first line as a header be ignored true or false when the import file is in CSV format? default: false

Pattern character string allowed to be used:

Page 43: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

6 Executing import/export.

Created by: NTT DATA INTRAMART CORP. Page 37

%group%

login-group-code

%date%

the date on which import execution started (in yyyy-MM-dd format)

If a subdirectory is configured as the target, the file located in the lower directory than as specified should be

specified, followed by executing import. As mentioned above, it should be noted that if any file not for import

d an error.

6.2.2 Export configuration fileTh export. Configuration items of import are common to the export

ey need to be described for each manager that executes the export.

exists in the target directory, it is considere

is is a configuration file used for executing

functions, but th

Example of export configuration file

01: <app-master-export> 02: <company-group-export> 03: <name>sample_export</name> 04: <format>XML</format> 05: <file>im_master/export/data.xml</file> 06: <date>2099-12-31</date> 07: <encoding >UTF-8</encoding > 08: <filter name=”company-group”>company_group_cd_01</filter > 09 : <extension-param name=”replace-pattern” >true</extension-param > 10: <extension-param name=”format-xml” >br|indent</extension-param > 11: </company-group-export> 12: </ app-master-export >

6.2.2.1 rea

rt>. Immediately under the root there are data area identifying

elements, in should be described.

The example of export configuration file shown in the previous section is the one for a company-group.

elow.

Specifying the data a

Root of export configuration file is <app-master-expo

which configuration information

Data areas which can be specified are shown in Table 6-4 b

Table 6-4: Export target identifying elements

Batch name Name of data area identifying element Company-group company-group-export Company-department company- export Public-group public-group- export Private-group private-group- export User user- export Corporation corporation- export Customer customer- export Item-category item-category- export Item item- export Currency-rate currency-rate- export

6.2.2.2 Pro name

C proc

cessing

ort onfigure the exp essing name as follows:

03: <name>sample_export</name>

Export processing

Any character str lowed to b names cannot be used.

Characters not allowed to be used depend on the OS on which the Storage Service is operated. It is

s having same name cannot be executed concurren

ing can be specified, but characters not al

tly.

e used for file

Page 44: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 38 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

recommended to use alphanumeric characters and symbols which do not depend on the environment.

6.2.2.3

Configure

Export file format

the file format as follows:

04: <format>XML</format>

Specify either CSV or XML.

This cannot be omitted.

6.2.2.4 Export target file

Specify the export target file as follows:

05: <file>im_master/export/data.xml</file>

g its extension.

pecified.

, same contents will be exported for all of them.

to specify the entity of the data file. For how to specify,

6.2.2.5 Exp

Ex

Specify the file name includin

Directory cannot be s

This cannot be omitted.

Although more than one file can be specified

When exporting in CSV format, it is necessary

refer to section 6.2.3.

ort base date

port snapshot of the base date as follows:

06: <date>2099-12-31</date>

If this is omitted, operation will vary depending on the format of the export data file:

CSV: snapshot export will be executed for the date on which the export started.

6.2.2.6 Character encoding

This means the character cod

XML: full-term export will be executed.

ing to be exported.

07: <encoding >UTF-8</encoding >

This cannot be omitted.

Any character encoding may be specified. ve to be the character encoding of the server.

xporting in XML format, this spec ng is exported also for the XML header.

6.2.2.7 Ou

I the data to be exported.

It does not ha

When e ified character encodi

tput filter

t is possible to filter

08: <filter name=”company-group”>company_group_cd_01</filter >

From the table shown below, select one data to be filtered. Only the data related to the selected data will be the

export target.

Table 6-5: Filtering target

e

Data area Filtering target Name attribut

company-group company-group-set company-group-set company-department company company

public-group public-group-set public-group-set

Page 45: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

6 Executing import/export.

Created by: NTT DATA INTRAMART CORP. Page 39

private-group owner-user user

user user user

corporation corporation-set corporation-set

customer company company

item-category item-category-set item-category-set

item company company

currency-rate none none

6.2.2.8 Exten

Several parameters can be configured as extension parameters.

sion parameter

09: <extension-param name=”replace-pattern” >true</extension-param > 10: <extension-param name=”format-xml” >br|indent</extension-param >

able in standard export

Configurable values and default values

Table 6-6: Extension parameters avail

Extension parameter name

Outline

replace-pattern Should pattern character string true or false replacement of the export target be default: true set as valid?

format-xml Specify the shaping method for export

br: insert line feed. ing in XML.

indent: insert indent. trim: remove spaces before and after. Multiple specification can be combined with "|".

default: "br" with-header Should the first line as a header be

n exporting in CSV format?

true or false default: false exported whe

export-term-cd Should term-code be exported true or false when exporting in XML format? default: false

Pattern character string allowed to be used:

%date%

yyyy-MM-dd format)

6.2.3 How to specify the data file in CSV format e executed for each data area, but collective import/export of several entities included in a CSV file

h entity the data file of import/export belongs. This section explains

how to pecify the rule of an entity according to which the CSV has been created.

ve been assigned to each entity. These will be ignored when not specified or when having specified

a character string not yet defined.

If a data irectory eleme ied, import w suming that all the files in that

directory f the ent t entit the same directory.

%group%

login-group-code

the date on which import execution started (in

Although term-code can be exported, it is not used for import. It is only for reference.

Import/export ar

is not allowed. It is necessary to specify to whic

s

A “type” can be configured to the attribute of the file element or directory element within the configuration file.

Unique types ha

file being a d nt has been specif ill be executed as

are the data files o ity. Data files of differen ies cannot be located within

05: department”> data.csv</file <file type=” im_master/import/ >

Page 46: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

intra-mart IM-Common Master Import/Export Specifications

Page 40 Copyright 2000-2010 NTT DATA INTRAMART CORP. All rights Reserved.

Table 6-7: E be specified as

Data a Entity aracter string ied

lements which can “type”

rea Chto be specif

compa -group ny-group companycompa ny-group-inclusion inclusion

compan

compa up-attach attach-company

y-group

ny-grodepartment department department-inclusion inclusion post post department-attach/department-attach-post attach-user department-category category department-category-item item

company-department

h-item department-category-attach attacpublic-group public-group public-group-inclusion inclusion role role public-group-attach/public-group-attach-role attach-user public-group-category category public-group-category-item item

public-group

attach-item public-group-category-attach private-group private-group private-group

er private-group-attach attach-ususer user user-category category user-category-item item

user

user-category-attach attach-item corporation corporation corporation-inclusion inclusion

corporation

ch-customer corporation-attach attacustomer mer customer custoitem item item

item-category item-category item-category-inclusion inclusion

item-category

item-category-attach attach-item currency-rate currency-rate currency-rate

Page 47: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

7 (Appendix):

Created by: NTT DATA INTRAMART CORP. Page 41

7 (Appendix): Execution from IM-Common Master API

Import/export functions are p

E thr ta import executes this API.

This section explains how to from API.

Want to import/expo ;

Want to make approp

execute imp hich the category of plugin.xml i other than standard.

These cases can be achieved to execute the API.

When executing import from mplement transaction p

If import has been executed will be execut ommit mode. In this case,

u ruption of im tion of consis aster data. Please make

sure that transaction is imple he status in case of interr

ple program

rovided as API methods.

ach batch file registered ough initial da

execute import/export

rt as parts of a program

riate use of configuration files;

Want to ort/export in w s configured as

by creating some program

API, it is necessary to i rocessing.

without starting transaction, it ed in auto-c

nforeseen inter port may possibly cause corrup tency in the m

mented, and roll back t uption.

List 7-1: Sam 01: String categoryName = "standard"; 02: String updateUserCd = "system"; 03: String loginGrou ("group"); pCd = arg0.getProperty04: String networkF master/config/import_confiilePath = "system/im_ g.xml"; 05: Locale defaultLocale;= AccessSecurityManager.getInstance().ge o().getLocale(); tSessionInf06: 07: NetworkFile net orkFile(networkFilePath); File = new Netw08: ByteArrayInputS rrayInputStream(netFitream stream = new ByteA le.load()); 09: 10: ompanyManage panyManager(updateUse cale, loginGroupCd); r manager = new Com rCd, defaultLo11: manager.import ame, stream); Data(categoryN

(exception: transaction processing is omitted)

Line 07: Configuration file is obtained from the Storage Service. It should be noted that this is not an import data

file.

Line 08: InputStream is created with the byte array that has been read in. This will become one of the argument of

the manager to be imported.

Line 11: Import is executed. The first argument “categoryName” is the category name configured in plugin.xml.

InputStream that has already been created is passed together to the execution method.

Executing this processing will make import start.

Page 48: intra-mart WebPlatform/AppFramework Ver.7 Data file format], two types of data format are explained. ... imm_department_ctg_itm department-category-attach imm_department_ctg_ath When

First Edition: 2012/05/07

Copyright 2000-2012 NTT DATA INTRAMART CORP.

All rights Reserved.

TEL: 03-5549-2821

FAX: 03-5549-2816

E-MAIL: [email protected]

URL: http://www.intra-mart.jp/

intra-mart WebPlatform/AppFramework Ver.7.2

IM-Common Master Import/Export Specifications