原帖由 dkyo 于 2008-2-18 09:12 发表
上面那段update语句和重新提交效果是一样的。但依照你所说的,应该是仍然有错,处理不过去,不仅仅是costed_flag的问题了。再仔细查查原因
如LZ所说执行那段update语句和重新提交效果是一样的,处理不过去,查看“實際成本工作程式”运行情况出现警告,日志如下:
+---------------------------------------------------------------------------+
物料管理系統: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCACW module: 實際成本工作程式
+---------------------------------------------------------------------------+
目前的系統時間是 18-02-2008 12:00:04
+---------------------------------------------------------------------------+
debug_level = 0
CM_EXTENDED_DEBUG = 2
After select into - parent_txn_id = 140085052
The transfer pricing option = 2
In inliar.lpc, inargtp()
... 建立移轉價格 txnId is 4114338
invOrgId is 120
itemId is 1348446
shipOrgId is 114
sellOrgId is 109
priceListId is 8100
internalOrderFlag is 1
baseItemId is 0
tmpIncrCurr is -1219838113
atoFlag is No
returned from External API...
calling QP API...
returned from QP API...
QP API returnStatus=E
取得移轉價格時發生錯誤
取得移轉價格時發生錯誤
Failing Transaction ID is 4114338
DS - Exit while loop.
+---------------------------------------------------------------------------+
從 FND_FILE 開啟日誌訊息
+---------------------------------------------------------------------------+
******** New Session:6265694****18-02-08:11.59.32 **********
[18-02-08 11:59:32] 9: QP is installed
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: Enabling QP debug option...
******** New Session:6265694****18-02-08:11.59.32 **********
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: QP trace file is /usr/tmp/l5112998.dbg
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: QP Version : /* $Header: QPXGPREB.pls 115.643.11510.16 2005/04/28 08:38:25 nirmkuma ship $ */
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Selecting Line Identifier...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_transaction_id = 4114338
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_order_line_id = -9999
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_inventory_item_id = 1348446
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_uom_code = 個
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_cto_item_flag = N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_Transfer_price: p_organization_id = 120
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Selecting Header Identifier...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Selecting Primary UOM...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Building Global Structure...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: l_base_item_id is 0
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: p_cto_item_flag is N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.G_Hdr_Initialize: Populating G_HDR...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.G_Line_Initialize: Populating IC fields...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.G_Line_Initialize: Populating G_LINE...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.G_Line_Initialize: InventoryItemId=1348446
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: Ship From=120
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: Ship To=1074
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Build Context for line...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Populating Lines temp table...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ORDER
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: -----------------------------------------------
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_index => 49287
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: pricing_effective_date => 25-01-08
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_first =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_first_type =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_second =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_second_type =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_quantity =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_uom_code =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: request_type_code => IC
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICED_QUANTITY =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICED_UOM_CODE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: CURRENCY_CODE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PERCENT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UOM_QUANTITY =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ADJUSTED_UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UPD_ADJUSTED_UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PROCESSED_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: price_flag => Y
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: LINE_ID => 49287
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PROCESSING_ORDER =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: pricing_status_code => X
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICING_STATUS_TEXT =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ROUNDING_FLAG => Y
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ROUNDING_FACTOR =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: QUALIFIERS_EXIST_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICING_ATTRS_EXIST_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICE_LIST_ID =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: VALIDATED_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICE_REQUEST_CODE => IC
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: USAGE_PRICING_TYPE => REGULAR
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: LINE_CATEGORY =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: LINE
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: -----------------------------------------------
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_index => 132855
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: pricing_effective_date => 25-01-08
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_first =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_first_type =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_second =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: active_date_second_type =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_quantity => 2
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: line_uom_code => 個
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: request_type_code => IC
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICED_QUANTITY => 2
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICED_UOM_CODE => 個
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: CURRENCY_CODE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PERCENT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UOM_QUANTITY =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ADJUSTED_UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: UPD_ADJUSTED_UNIT_PRICE =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PROCESSED_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: price_flag => Y
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: LINE_ID => 83568
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PROCESSING_ORDER =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: pricing_status_code => X
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICING_STATUS_TEXT =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ROUNDING_FLAG => Y
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: ROUNDING_FACTOR =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: QUALIFIERS_EXIST_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICING_ATTRS_EXIST_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICE_LIST_ID =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: VALIDATED_FLAG => N
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: PRICE_REQUEST_CODE => IC
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: USAGE_PRICING_TYPE => REGULAR
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: LINE_CATEGORY =>
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.Populate_Temp_Table: Calling QP:Bulk insert routine...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.Populate_Temp_Table: No. of records inserted in QP_PREQ_LINES_TMP=2
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Initializing control record...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: Calling QP:Price Request routine ...
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: QP_PREQ_PUB.PRICE_REQUEST error
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: x_return_status_text=QP_PREQ_PUB.Initialize_Constants Error : Currency can not be null
[18-02-08 11:59:32] INV_INTERCOMPANY_INVOICING: MTL_QP_PRICE.get_transfer_price: EXCEP G_EXC_ERROR
[18-02-08 11:59:32] 9: unitPrice is 0
+---------------------------------------------------------------------------+
從 FND_FILE 關閉日誌訊息
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
未請求任何完成選項.
輸出結果沒有印出, 因為:
此報表的列印選項已停用.
正在刪除輸出檔.
+---------------------------------------------------------------------------+
並行請求已完成
目前的系統時間是 18-02-2008 12:00:05
+---------------------------------------------------------------------------+