Tóm tắt nội dung hướng dẫn cách import data vào User Defined Table (UDT) với dạng No Object bằng công cụ Data Transfer Workbench (DTW) trong SAP Business One:
-
Lưu ý về cấu trúc bảng: Dù bảng của bạn (ví dụ: UDT_TEST) chỉ có các trường tự tạo như ZIPCODE, ADDRESS, nhưng trong cơ sở dữ liệu sẽ luôn có sẵn 2 trường hệ thống tự động tạo là Code và Name. Do đó, file mẫu (template) import bắt buộc phải chứa cả 2 trường này với các giá trị là duy nhất (unique).
-
Các bước thực hiện trong DTW: Chọn User Defined Tables -> Chọn UDT -> Chọn đúng tên bảng cần import (ví dụ: UDT_TEST) và tiến hành các bước import như bình thường.
-
Hạn chế của DTW: Hiện tại, DTW chỉ hỗ trợ import trực tiếp các UDT thuộc loại ‘No Object’ (Không có đối tượng). Nếu UDT thuộc loại ‘Document’ hoặc ‘Master Data’ và được dùng trong một Đối tượng do người dùng định nghĩa (UDO), bạn phải import thông qua template của UDO đó (Xem thêm SAP Note 2212871).
Symptom
You need to import data into a User Defined Table (No Objects) with the Data Transfer Workbench(DTW).
Solution
For example,you have a User Defined Table(UDT) named “UDT_TEST” with the following fields:
ZIPCODE
ADDRESS
In the database you actually have 4 fields.Code and Name are created automatically when creating a user defined table. The template should contain Code and Name with unique values.
Code
Name
ZIPCODE
ADDRESS
To fill a UDT with information you would need a template like this:
In the DTW import wizard -> Select ‘User Defined Tables’ -> UDT -> Select the table ‘UDT_TEST’.Complete the import process.
NOTE:
Currently DTW only supports importing UDTs of type ‘No Object’.If the UDT type is ‘Document’ or ‘Master Data’ and is used in a User-Defined Object (UDO), then DTW supports importing the UDO by using UDO template.See Note 2212871 for more information on this.