intra-mart Accel Platform IM-共通マスタ インポート・エクスポート仕様書 第10版 2019-04-01

6.2. XMLフォーマット

IM-共通マスタ のXMLインポート、エクスポート機能で使用されるフォーマットを示します。
備考欄に特に記述がない項目は、文字列を指定します。
インポート実行時には、入力チェックを行っていないため、正常にデータベースに登録できた値でも、画面から操作できない可能性があります。
最大文字数や利用可能な文字については、『IM-共通マスタ 入力項目定義書』を参考にしてください。
属性名の必須はマークがついているものがすべて必須ですが、その属性が属する要素自体が省略可能な場合は、属性自体の記述はありません。
属する要素が存在するときにのみその属性が必須です。
データファイルのルート要素は<root>です。
次節以降のXML構造定義表では、簡略化のため省略しています。
また、期間コードはエクスポート時に出力可能ですが、インポートでは使用しません。
必ず新しい期間コードが割り当てられます。

6.2.1. 会社グループ

【表:会社グループ】
要素名 属性名 必須 備考
company-group      
  company-group-set      
company-group-set-cd  
sort-key  
  company-group      
company-group-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  company-group-name    
company-group-short-name      
company-group-search-name      
notes      
company-attach      
company-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
inclusion      
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  relation    
parent-company-group-cd  
company-group-cd  

6.2.2. 会社・組織

【表:会社組織】
要素名 属性名 必須 備考
company      
company-cd  
  department-set      
department-set-cd  
  department      
department-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  department-name    
department-short-name      
department-search-name      
country-cd      
zip-code      
address1      
address2      
address3      
telephone-number      
extension-number      
fax-number      
extension-fax-number      
email-address1      
email-address2      
url      
notes      
category-item-attach      
category-cd  
category-item-cd  
delete-flag “true” / “false”
  category      
delete-flag  
“true” / “false”
“true”の場合、組織所属分類を削除。
※要素「category」が省略された場合は、“false”が適用されます。 
user-attach      
user-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
department-main “true” / “false”
  post-attach      
post-cd  
  post      
delete-flag
“true” / “false”
“true”の場合、組織所属役職を削除。
※要素「post」が省略された場合は、“false”が適用されます。 
inclusion      
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  relation      
parent-department-cd  
department-cd  
post      
post-cd  
rank  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  post-name    
notes      
category      
category-cd  
delete-flag “true” / “false”
sort-key  
category-type
“1” / “0”
0:単一分類区分 1:複数分類区分
  locale    
locale-id 言語コード
  category-name    
notes      
category-item      
category-item-cd  
delete-flag “true” / “false”
sort-key  
  locale    
locale-id 言語コード
  category-item-name    
notes      

6.2.3. パブリックグループ

【表:パブリックグループ】
要素名 属性名 必須 備考
public-group      
  public-group-set      
public-group-set-cd  
sort-key  
  public-group      
public-group-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  public-group-name    
public-group-short-name      
public-group-search-name      
notes      
category-item-attach      
category-cd  
category-item-cd  
delete-flag “true” / “false”
  category      
delete-flag  
“true” / “false”
“true”の場合、パブリックグループ所属分類を削除。
※要素「category」が省略された場合は、“false”が適用されます。 
user-attach      
user-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  role-attach      
role-cd  
  role      
delete-flag
“true” / “false”
“true”の場合、パブリックグループ所属役割を削除。
※要素「role」が省略された場合は、“false”が適用されます。  
inclusion      
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  relation      
parent-public-group-cd  
public-group-cd  
role      
role-cd  
rank  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  role-name    
notes      

6.2.4. パブリックグループ分類

【表:パブリックグループ分類】
要素名 属性名 必須 備考
public-group-category      
  category      
category-cd  
delete-flag “true” / “false”
sort-key  
category-type
“1” / “0”
0:単一分類区分 1:複数分類区分
  locale    
locale-id 言語コード
  category-name    
notes      
  category-item-cd  
delete-flag “true” / “false”
sort-key  
  locale    
locale-id 言語コード
  category-item-name    
notes      

6.2.5. プライベートグループ

【表:プライベートグループ】
要素名 属性名 必須 備考
private-group      
private-group-cd  
user-cd  
sort-key  
  private-group-name    
private-group-search-name      
notes      
private-group-attach      
user-cd  
sort-key  

6.2.6. ユーザ

【表:ユーザ】
要素名 属性名 必須 備考
user      
user-cd  
sort-key  
sex   0:男性 1:女性 2:その他 9:回答しない
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
    locale    
locale-id 言語コード
  user-name    
user-search-name      
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-attach      
category-cd  
category-item-cd  
delete-flag “true” / “false”
  category      
delete-flag  
“true” / “false”
“true”の場合、ユーザ所属分類を削除。
※要素「category」が省略された場合は、“false”が適用されます。 

6.2.7. ユーザ分類

【表:ユーザ分類】
要素名 属性名 必須 備考
user-category      
  category      
category-cd  
delete-flag “true” / “false”
sort-key  
category-type
“1” / “0”
0:単一分類区分 1:複数分類区分
  locale    
locale-id 言語コード
  category-name    
notes      
category-item      
category-item-cd  
delete-flag “true” / “false”
sort-key  
  locale    
locale-id 言語コード
  category-item-name    
notes      

6.2.8. 法人グループ

【表:法人グループ】
要素名 属性名 必須 備考
corporation-group      
  company      
company-cd  
  corporation-group-set      
corporation-group-set-cd  
sort-key  
  corporation-group      
corporation-group-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  corporation-group-name    
corporation-group-short-name      
corporation-group-search-name      
notes      
corporation-attach      
corporation-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
inclusion      
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  relation      
parent-corporation-group-cd  
corporation-group-cd  

6.2.9. 法人

【表:法人】
要素名 属性名 必須 備考
corporation      
  company      
company-cd  
  corporation      
corporation-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  corporation-name    
corporation-short-name      
corporation-search-name      
corporate-number      
country-cd      
zip-code      
address1      
address2      
address3      
telephone-number      
extension-number      
fax-number      
extension-fax-number      
email-address1      
email-address2      
url      
notes      
customer-attach      
customer-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”

6.2.10. 取引先

【表:取引先】
要素名 属性名 必須 備考
customer    
company-cd  
customer-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  customer-name    
customer-short-name      
customer-search-name      
corporate-number      
charge-person-name      
country-cd      
zip-code      
address1      
address2      
address3      
telephone-number      
extension-number      
fax-number      
extension-fax-number      
email-address1      
email-address2      
url      
notes      

6.2.11. 品目カテゴリ

【表:品目カテゴリ】
要素名 属性名 必須 備考
item-category      
  company      
company-cd  
  item-category-set      
item-category-set-cd  
sort-key  
  item-category      
item-category-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  item-category-name    
item-category-short-name      
item-category-search-name      
notes      
item-attach      
item-cd  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
inclusion      
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  relation    
parent-item-category-cd  
item-category-cd  

6.2.12. 品目

【表:品目】
要素名 属性名 必須 備考
item      
company-cd  
item-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  locale    
locale-id 言語コード
  item-name    
item-short-name      
item-search-name      
notes      

6.2.13. 通貨

【表:通貨】
要素名 属性名 必須 備考
currency      
  company      
company-cd  
  currency      
currency-cd  
delete-flag “true” / “false”
sort-key  
  currency-iso-cd      
unit-sign    
locale    
locale-id 言語コード
  currency-name    
notes      
currency-rate      
currency-conversion-cd  
base-currency-cd  
sort-key  
  term    
term-cd    
start-date yyyy-MM-dd形式の日付文字列
end-date yyyy-MM-dd形式の日付文字列
delete-flag “true” / “false”
  values      
selling  
buying  
currency-precision      
currency-precision-type  
delete-flag “true” / “false”
sort-key  
currency-precision  
currency-scale  
  locale    
locale-id 言語コード
  currency-prec-type-name      
currency-prec-type-short-name      
currency-prec-type-search-name      
currency-conversion      
currency-conversion-cd  
delete-flag “true” / “false”
sort-key  
  locale    
locale-id 言語コード
  currency-conv-name    
currency-conv-short-name      
currency-conv-search-name