若有需要大量新增Locator 則其有二種方式 :
1. Data Load
2. 呼叫 INV_LOC_WMS_PUB.CREATE_LOCATOR 該API
用法 :
FND_GLOBAL.APPS_INITIALIZE(1114,
51007,
401);
FND_MSG_PUB.Initialize;
INV_LOC_WMS_PUB.CREATE_LOCATOR(X_RETURN_STATUS => :X_RETURN_STATUS,
X_MSG_COUNT => :X_MSG_COUNT,
X_MSG_DATA => :X_MSG_DATA,
X_INVENTORY_LOCATION_ID => :X_INVENTORY_LOCATION_ID,
X_LOCATOR_EXISTS => :X_LOCATOR_EXISTS,
P_ORGANIZATION_ID => :P_ORGANIZATION_ID,
P_ORGANIZATION_CODE => :P_ORGANIZATION_CODE,
P_CONCATENATED_SEGMENTS => 儲位,
P_DESCRIPTION => 儲位描述,
P_INVENTORY_LOCATION_TYPE => 3,
P_PICKING_ORDER => :P_PICKING_ORDER,
P_LOCATION_MAXIMUM_UNITS => :P_LOCATION_MAXIMUM_UNITS,
P_SUBINVENTORY_CODE => 倉別,
P_LOCATION_WEIGHT_UOM_CODE => :P_LOCATION_WEIGHT_UOM_CODE,
P_MAX_WEIGHT => :P_MAX_WEIGHT,
P_VOLUME_UOM_CODE => :P_VOLUME_UOM_CODE,
P_MAX_CUBIC_AREA => :P_MAX_CUBIC_AREA,
P_X_COORDINATE => :P_X_COORDINATE,
P_Y_COORDINATE => :P_Y_COORDINATE,
P_Z_COORDINATE => :P_Z_COORDINATE,
P_PHYSICAL_LOCATION_ID => :P_PHYSICAL_LOCATION_ID,
P_PICK_UOM_CODE => :P_PICK_UOM_CODE,
P_DIMENSION_UOM_CODE => :P_DIMENSION_UOM_CODE,
P_LENGTH => :P_LENGTH,
P_WIDTH => :P_WIDTH,
P_HEIGHT => :P_HEIGHT,
P_STATUS_ID =>1,
P_DROPPING_ORDER => :P_DROPPING_ORDER,
P_ATTRIBUTE_CATEGORY => :P_ATTRIBUTE_CATEGORY,
P_ATTRIBUTE1 => :P_ATTRIBUTE1,
P_ATTRIBUTE2 => :P_ATTRIBUTE2,
P_ATTRIBUTE3 => :P_ATTRIBUTE3,
P_ATTRIBUTE4 => :P_ATTRIBUTE4,
P_ATTRIBUTE5 => :P_ATTRIBUTE5,
P_ATTRIBUTE6 => :P_ATTRIBUTE6,
P_ATTRIBUTE7 => :P_ATTRIBUTE7,
P_ATTRIBUTE8 => :P_ATTRIBUTE8,
P_ATTRIBUTE9 => :P_ATTRIBUTE9,
P_ATTRIBUTE10 => :P_ATTRIBUTE10,
P_ATTRIBUTE11 => :P_ATTRIBUTE11,
P_ATTRIBUTE12 => :P_ATTRIBUTE12,
P_ATTRIBUTE13 => :P_ATTRIBUTE13,
P_ATTRIBUTE14 => :P_ATTRIBUTE14,
P_ATTRIBUTE15 => :P_ATTRIBUTE15,
P_ALIAS => :P_ALIAS);
沒有留言:
張貼留言