Costed_flaG in MMT table is 'E'
Hi experts,
Current we have a record in MTL_MATERIAL_TRANSACTIONS table which has 'E' in COSTED_FLAG. In the ERROR_CODE and ERROR_EXPLANATION column show "cmlwmx-2:". I would like to know why did issue happen and how to solve this issue?
Do you have any idea, please share with me.
Thanks in advance.
Hieu
By the way,
Our system is RDBMS : 9.2.0.7.0 and Oracle Applications : 11.5.8
Similar Messages
-
Hi all,
I got a item which is created under FIFO organization when I perform purchase order received I have noticed that this transaction in MTL_MATERIAL_TRANSACTIONS ->costed_flag = N, why this happened ? I have invoked my cost manager running background but still the line is not picking up from process.
By the way, there is a cost_group_id in MMT table what does it mean actually ?
Please advise . SUPER URGENT!!!
Rgds
LimHi
what message you are getting in MIGo if item not displaying ?
check following Point
1) If you have release strategy then check Pi is release or not In ME29N t-code
2) check you are giving correct Po number in MIGO
3) check it may be service PO with account Item category D
Regards
Kailas Ugale -
ESYU: Cost Manager(CMCTCM)을 cancel 하고 다시 실행하는 방법
Purpose
Oracle Cost Management - Version: 11.5.9 to 11.5.10
Information in this document applies to any platform.
MTL_MATERIAL_TRANSACTIONS(MMT) table에 costed_flag = E 인 error transaction이
존재하는 경우 debug를 위해 cost manager를 다시 실행해야 될 경우가 있다.
보통 Cost Manager는 일정 주기로 running 되고 있기 때문에 이를 cancel 하는
작업이 필요하다.
여기서는 실행중인 Cost Manager를 cancel 하는 방법을 알아본다.
아래 사항을 방지하면서 Cost Manager를 cancel 하는 방법:
- 동시에 여러개의 Cost Manager가 launch 되는 것
- CMCTCM log에서 아래와 같은 warning message가 발생 되는것
" A Cost Manager is already launched.
Action: If you want to launch a new manager, cancel earlier manager first."
Solution
1. Cost Manager를 cancel: 아래 방법 중 하나를 선택한다.
a) Use Sysadmin responsability
Navigate to /Request/view
Set : specific Request=on
Name=Cost Manager.
Find request 화면의 아래쪽에 있는 "Select the Number of Days to view"
field에 9999를 입력한다.
조회된 Request 중 Pending Scheduled 상태의 Cost Manager request를
찾아 request를 cancel 한다.
b) Run
SELECT request_id RequestId,
request_date RequestDt,
concurrent_program_name,
phase_code Phase,
status_code Status
FROM fnd_concurrent_requests fcr,
fnd_concurrent_programs fcp
WHERE fcp.application_id = 702
AND fcp.concurrent_program_name in ('CMCTCM', 'CMCMCW', 'CMCACW')
AND fcr.concurrent_program_id = fcp.concurrent_program_id
AND fcr.program_application_id = 702 AND fcr.phase_code <> 'C';
위 script 결과로 나오는 모든 requests를 /Sysadmin / Concurrent / Request
화면에서 query 하고 모든 request를 cancel 한다.
이 request id를 query 시에도 역시 "Select the Number of Days to view" 값은
'9999'로 입력한다.
2. cmclean.sql script를 실행한다.(Note 134007.1 참조)
3. Cost Manager를 restart 한다.
Inventory / Setup / Transactions / Interface Managers
on line 'cost manager' - do Tools > Launch
Reference
Note 373207.1 -
HKONG: Material Transaction Interface 의 data를 처리 Process들에 대한 정의
PURPOSE
Material Transaction Interface 의 data를 처리 Process들에 대해 정의하고자 함.
Explanation
관련된 정보는 다음과 같습니다.
Material Transaction Interface 의 data를 처리하기 위해서는 다음의 2개의 Process가 수행됩니다.
- INCTCM (Process transaction Interface)
- INCTCW (Inventory transactions worker)
(1)
Records are processed into this table by the INCTCM - Process Transactions Interface from the Interface tables :
MTL_TRANSACTIONS_INTERFACE to MTL_MATERIAL_TRANSACTIONS_TEMP
MTL_TRANSACTION_LOTS_INTERFACE to MTL_TRANSACTION_LOTS_TEMP (Lot 사용시)
MTL_SERIAL_NUMBERS_INTERFACE to MTL_SERIAL_NUMBERS_TEMP (serial 사용시)
==> INCTCM 에 의해 interface table의 data가 validation후, temp table로 옮겨집니다.
(2)
After the records are processed from the MTL_TRANSACTIONS_INTERFACE into the MTL_MATERIAL_TRANSACTIONS_TEMP
by the INCTCM - Process Transactions Interface,
a worker will be launched to process the record from MTL_MATERIAL_TRANSACTIONS_TEMP into MTL_MATERIAL_TRANSACTIONS.
The worker is called INCTCW - Inventory Transaction Worker.
The INCTCM - Process Transactions Interface will launch a single INCTCW - Inventory Transaction Worker for all rows
that meet the criteria in MTL_MATERIAL_TRANSACTIONS_TEMP :
TRANSACTION_MODE = 3
LOCK_FLAG = N
PROCESS_FLAG = Y
Once the process is complete the records will be moved into the corresponding
transaction table :
MTL_MATERIAL_TRANSACTIONS_TEMP to MTL_MATERIAL_TRANSACTIONS
MTL_TRANSACTION_LOTS_TEMP to MTL_TRANSACTION_LOT_NUMBERS
MTL_SERIAL_NUMBERS_TEMP to MTL_UNIT_TRANSACTIONS
==> INCTCM은 INCTCW를 call하게 되고, 이 Process에 의해 TEMP table로부터 MMT table과 Inventory table에
DATA가 Insert됩니다.
The rows in mtl_transactions_interface are processed in 5 phases.
1. Derives dependant columns, eg:acct_period_id, primary_quantity etc..
2. Detailed validation performed on the records
3. On hand qty check for negative qty's etc..
4. Reservations Relieved if demand was created in order entry
5. Rows are moved to mtl_material_transactions_temp where the
transaction processor is called to process these rows and update the inventory levels etc..
Reference Documents
------------------- -
Hi,
I have the following query/report that takes hours to complete. Application version is 11.5.9 and database is on 9.2.0.6
{code}
SELECT c.inventory_location_id,
c.segment1
|| '.'
|| c.segment2
|| '.'
|| c.segment3
|| '.'
|| c.segment4 loc,
b.lot_number lot, -1 * b.primary_quantity lot_qty
FROM mtl_material_transactions a,
mtl_transaction_lot_numbers b,
mtl_item_locations c
WHERE a.transaction_id = b.transaction_id
AND a.locator_id = c.inventory_location_id
AND a.trx_source_line_id = :b1
ORDER BY 1
{code}
Explain Plan shows the following
{code}
SELECT STATEMENT CHOOSECost: 694
9 SORT ORDER BY Cost: 694 Bytes: 96 Cardinality: 2
8 TABLE ACCESS BY INDEX ROWID INV.MTL_TRANSACTION_LOT_NUMBERS Cost: 4 Bytes: 17 Cardinality: 1
7 NESTED LOOPS Cost: 693 Bytes: 96 Cardinality: 2
5 NESTED LOOPS Cost: 687 Bytes: 62 Cardinality: 2
2 TABLE ACCESS BY INDEX ROWID INV.MTL_MATERIAL_TRANSACTIONS Cost: 683 Bytes: 26 Cardinality: 2
1 INDEX FULL SCAN INV.NFPC_LOCATOR_ID_N1 Cost: 27 Cardinality: 2,579,440
4 TABLE ACCESS BY INDEX ROWID INV.MTL_ITEM_LOCATIONS Cost: 3 Bytes: 18 Cardinality: 1
3 INDEX RANGE SCAN INV.MTL_ITEM_LOCATIONS_U1 Cost: 2 Cardinality: 1
6 INDEX RANGE SCAN INV.MTL_TRANSACTION_LOT_NUMBERS_N1 Cost: 3 Cardinality: 1
{code}
Please let me know what other information I need to upload for any help.
Thanks
AJHi,
How many rows you have in MMT table?
Have you gathered the stats of the INV schema recently?
Did you test with some optimizer hints such as /*+ ordered */ or even /*+ rule */ ?
Regards,
Bashar -
Costed flag in mtl_material_transaction
Hello All
I am new to Oracle EBS.
For for report testing purpose I want to genererate records with costed_flag in mtl_material_transaction table with value 'N' or 'E'
Can somebody help me out in telling me the process How is this possible to get these values and navigations. It is really very urgent.
Secondly can any body also tell me How to see the average cost of component and Assembly in Oracle apps.
Many thanks in advanceDear Hassan,
My problem is resolved now. I have apply update on mtl_material_transactions with period_id.
So thanks for cordial co-operations & positive approach.
Thanks
Omar
Edited by: user13140975 on Mar 10, 2012 11:59 AM -
INVENTORY ORGANIZATION PARAMETER항목중 CUTOFF DATE의 기능
제품 : MFG_CST
작성날짜 : 2004-05-21
INVENTORY ORGANIZATION PARAMETER항목중 CUTOFF DATE의 기능
===================================================
PURPOSE
Inventory Organization Parameter항목중 Cutoff Date의 기능에
대해 기술하고자 한다.
Explanation
Cutoff date로 설정된 날짜 이전에 발생한 transaction에 대해서만 cost manager가 수행하면서 costed된다.
만약, transaction date이 cutoff date보다 이후이면 cost manager가 수행되어도 uncosted된 상태로 남아있게 된다.
적용방법>
위의 이 기능을 Business적으로 적용하려면, Standard Cost를 사용하는 site에서 일정한 기간별로 Standard Cost Update를 수행하는 경우에 유용하다.
즉, 일괄적으로 새로운 Standard Cost를 적용하고자 하는 future date를 입력해두면, 그 날짜 이후에 발생한 Transaction들에 대해서는 cost manager가 수행하지 않고 Pending된 상태로 있게 된다.
다음 작업으로 standard cost를 변경하고, cutoff date를 new future date로 수정하면, Pending 상태에 있었던 transaction들이 cost manager에 의해 새로운 cost로 부과된다.
Example
Cutoff date : 2004-05-01
Item : A , Unit cost : 100
In MMT table,
Item tranaction date quantity Unit cost
A 2004-04-30 1 100 <== costed
A 2004-05-01 1 NULL <== uncosted
step 1) Unit cost was changed by standard cost update : 100 --> 200
step 2) change Cutoff date to New future date : 2004-09-01
step 3) run cost manager
In MMT table
Item tranaction date quantity Unit cost
A 2004-04-30 1 100 <== costed
A 2004-05-01 1 200 <== costed
Reference Documents
------------------- -
DFF on Material Transaction form ...
On Material Transaction form I want to display receiving_transaction_id on DFF segment1 using "fetch value from column", but system display empty column even receiving_transaction_id place in MMT tables / Form.
Pl help me in this regard.
Regards,Ok now I get it.
You have a couple of options.
1) Write a before-insert d/b trigger on mtl_material_transactions. This trigger fires if rcv_transaction_id is not
null and gets the RCV DFF values and populates :new.attrbutex values in mtl_material_transaction.
2) Write a conc. program that runs every x minutes/hours and finds the latest mtl_material_transaction records and
updates the mmt DFF values by reading the corresponding rcv record.
3) Write a personalization on the mmt screen. The personalization adds a menu option that says "Additional receipt
details". This option is enabled only if the rcv_transaction_id is not null.
When the user clicks on the menu option, the personalization fires and displays the following message
=Select 'Additional Receipt Details' || chr(10) || 'Dept=' || rt.attribute1 from rcv_transactions where
transaction_id = :results.rcv_transaction_id
In my opinion, option 1 is worst, 2 is bad and 3 is best.
Hope this helps,
Sandeep Gandhi -
Table joins from Expediture Items to Po distribution
Hi,
I have a requirement to add the column PO.PO_DISTRIBUTIONS_ALL.DELIVER_TO_PERSON_ID to an existing report that is built using the following tables:
pa_expend_items_adjust2_v
pa_cost_distribution_lines_all
po_vendors
ap_invoices_v
gl_code_combinations
gl_periods
The view pa_expend_items_adjust2_v is based on the following tables:
pa_projects_all
pa_tasks
pa_expenditure_items_all
pa_expenditures_all
pa_project_types_all
pa_transaction_sources
hr_all_organization_units_tl
per_jobs
I am unable to find the table linkage between the tables already used in the report to the column in the table I need to add. I can easily get the PO_NUMBER in the report but can't get down to the LINE_ID and/or PO_DISTRIBUTION_ID level.
Does anyone have a query for doing this?
Thank you very much!
SuzanneThis is overkill, but try this...
(Make sure to set the item master org on the 9th line from the end)
SELECT
mmx.project_num,
mmx.project_name,
mmx.task_num,
mmx.task_name,
mmx.system_linkage_function slf,
mmx.po_num po,
mmx.po_line,
NVL(mmx.po_vendor_name,mmx.vendor_name) vendor,
mmx.exp_cat,
mmx.expenditure_type exp_type,
mmx.job_name,
mmx.item_number,
mmx.item_description,
mmx.exp_comment,
mmx.item_cat,
mmx.incurred_by_org,
mmx.incurred_by_person,
mmx.quantity,
mmx.raw_cost cost,
mmx.gl_period,
TO_CHAR(mmx.expenditure_item_date,'YYYY-MM-DD') item_date
FROM
(SELECT
FROM
(SELECT
DECODE(peia.transaction_source, 'PJM_CSTBP_INV_NO_ACCOUNTS', rt.po_distribution_id, 'PO RECEIPT', exp.orig_exp_txn_reference1, NULL ) AS po_distribution_id,
org.name AS incurred_by_org,
et.expenditure_category AS exp_cat,
pv.vendor_name,
job.name AS job_name,
com.expenditure_comment AS exp_comment,
cdl.recvr_gl_period_name AS gl_period,
peo.full_name AS incurred_by_person,
pa.segment1 AS project_num,
pa.name AS project_name,
pt.task_number AS task_num,
pt.task_name AS task_name,
peia.*
FROM
pa_expenditure_items_all peia,
pa_expenditures_all exp,
pa_expenditure_types et,
rcv_transactions rt,
mtl_material_transactions mmt,
pa_projects_all pp,
hr_all_organization_units org,
po_vendors pv,
per_jobs_tl job,
pa_expenditure_comments com,
pa_cost_distribution_lines_all cdl,
per_all_people_f peo,
pa_projects_all pa,
pa_tasks pt
WHERE 1=1
AND DECODE(peia.transaction_source,'PJM_CSTBP_INV_NO_ACCOUNTS',peia.orig_transaction_reference,NULL) = mmt.transaction_id (+)
AND mmt.rcv_transaction_id = rt.transaction_id (+)
AND pp.project_id = peia.project_id
AND org.organization_id (+) = exp.incurred_by_organization_id
AND exp.vendor_id = pv.vendor_id (+)
AND peia.expenditure_id = exp.expenditure_id
AND peia.expenditure_type = et.expenditure_type
AND job.job_id (+) = peia.job_id
AND com.expenditure_item_id (+) = peia.expenditure_item_id
AND cdl.expenditure_item_id = peia.expenditure_item_id
AND exp.incurred_by_person_id = peo.person_id (+)
AND NVL(peo.effective_end_date,TO_DATE('01-01-2200','dd-mm-yyyy')) > SYSDATE
AND pa.project_id = peia.project_id
AND pa.project_id = pt.project_id
AND pt.task_id = peia.task_id
) expenditure,
(SELECT
ph.segment1 AS po_num,
pl.line_num AS po_line,
mc.segment1 AS item_cat,
pd.po_distribution_id AS po_dist_id,
pv.vendor_name AS po_vendor_name,
msi.segment1 AS item_number,
pl.item_description
FROM
po_headers_all ph,
po_lines_all pl,
mtl_categories mc,
po_distributions_all pd,
po_vendors pv,
mtl_system_items_b msi
WHERE 1=1
AND ph.po_header_id = pl.po_header_id
AND pl.category_id = mc.category_id
AND pl.po_line_id = pd.po_line_id
AND ph.vendor_id = pv.vendor_id
AND pl.item_id = msi.inventory_item_id (+)
AND msi.organization_id (+) = 103 --set this to your Item Master Org Id
) po
WHERE 1=1
AND expenditure.po_distribution_id = po.po_dist_id (+)
) mmx
WHERE 1=1
AND mmx.project_num LIKE ?
ORDER BY
1,3,5,6,7 -
Costed_Flag = N in mtl_material_transactions
Hello,
In the Inventory module in oracle applications 11.5.10, a user complained that the customized report does not bring out the recently issued transactions. I have found that these records have the fields:
costed_flag = 'N' and request_id = 0
in mtl_material_transactions table.
I have launched the cost manager and the records were processed successfully. But again the problem occured and I don't know why; I have found that there are uncosted records in the above table.
What can I do to assure the problem does not raise again? what are the alternative to launching the cost manager;is it the on-line processing option? and how can i implement it?
Kindly note that we have only the following modules:
Inventory,Purchasing,General Ledger,Payables,Receivables,Cash Management,Fixed Assets, HRMS/payroll.
Thank you...Hi
In the Interface Manager screen you can specify the frequency at which the Cost manager should get launched. Once you set this up and launch the manager Cost Manager would get active at that frequency automatically. Don't cancel the Cost Manager. Cost Manager should be always active if you want transactions to be costed on perpetual basis.
thanks
Anup -
How to remove precision value in oracle table
Hi,
I have created one table ,that table contains 40 million records and some of the columns containing precision values and the columns are of datatype is NUMBER...
I need to remove precision values of those columns for 40 millions records which ever contains ,If I use update truncate scripts it's taking so long time to update ( for .eg. more than 2 weak to update --- update table_name set transaction_id=trunc(transaction_id) ).Is there any other way...
so can you please suggest ....
Thanks,
vidhyahi marcopb,
Below I have mentioned some columns in bold, which i am updating . yes it's taking to update more than 2 weak not yet finished...
My update script is Update Inv.Mtl_Material_Transactions Set Transaction_Id=Trunc(Transaction_Id),Transaction_Action_Id=Trunc(Transaction_Action_Id),
Transaction_Source_Id=Trunc(Transaction_Source_Id),Rcv_Transaction_Id =Trunc(Rcv_Transaction_Id );
describe mtl_material_transactions;
Name Null Type
TRANSACTION_ID NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
CREATED_BY NOT NULL NUMBER
LAST_UPDATE_LOGIN NUMBER
REQUEST_ID NUMBER
PROGRAM_APPLICATION_ID NUMBER
PROGRAM_ID NUMBER
PROGRAM_UPDATE_DATE DATE
INVENTORY_ITEM_ID NOT NULL NUMBER
REVISION VARCHAR2(3)
ORGANIZATION_ID NOT NULL NUMBER
SUBINVENTORY_CODE VARCHAR2(10)
LOCATOR_ID NUMBER
TRANSACTION_TYPE_ID NOT NULL NUMBER
TRANSACTION_ACTION_ID NOT NULL NUMBER
TRANSACTION_SOURCE_TYPE_ID NOT NULL NUMBER
TRANSACTION_SOURCE_ID NUMBER
TRANSACTION_SOURCE_NAME VARCHAR2(30)
TRANSACTION_QUANTITY NOT NULL NUMBER
TRANSACTION_UOM NOT NULL VARCHAR2(3)
PRIMARY_QUANTITY NOT NULL NUMBER
TRANSACTION_DATE NOT NULL DATE
VARIANCE_AMOUNT NUMBER
ACCT_PERIOD_ID NUMBER
TRANSACTION_REFERENCE VARCHAR2(240)
REASON_ID NUMBER
DISTRIBUTION_ACCOUNT_ID NUMBER
ENCUMBRANCE_ACCOUNT NUMBER
ENCUMBRANCE_AMOUNT NUMBER
COST_UPDATE_ID NUMBER
COSTED_FLAG VARCHAR2(1)
INVOICED_FLAG VARCHAR2(1)
ACTUAL_COST NUMBER
TRANSACTION_COST NUMBER
PRIOR_COST NUMBER
NEW_COST NUMBER
CURRENCY_CODE VARCHAR2(10)
CURRENCY_CONVERSION_RATE NUMBER
CURRENCY_CONVERSION_TYPE VARCHAR2(30)
CURRENCY_CONVERSION_DATE DATE
USSGL_TRANSACTION_CODE VARCHAR2(30)
QUANTITY_ADJUSTED NUMBER
EMPLOYEE_CODE VARCHAR2(10)
DEPARTMENT_ID NUMBER
OPERATION_SEQ_NUM NUMBER
MASTER_SCHEDULE_UPDATE_CODE VARCHAR2(10)
RECEIVING_DOCUMENT VARCHAR2(10)
PICKING_LINE_ID NUMBER
TRX_SOURCE_LINE_ID NUMBER
TRX_SOURCE_DELIVERY_ID NUMBER
REPETITIVE_LINE_ID NUMBER
PHYSICAL_ADJUSTMENT_ID NUMBER
CYCLE_COUNT_ID NUMBER
RMA_LINE_ID NUMBER
TRANSFER_TRANSACTION_ID NUMBER
TRANSACTION_SET_ID NUMBER
RCV_TRANSACTION_ID NUMBER
MOVE_TRANSACTION_ID NUMBER
COMPLETION_TRANSACTION_ID NUMBER
SOURCE_CODE VARCHAR2(30)
SOURCE_LINE_ID NUMBER
VENDOR_LOT_NUMBER VARCHAR2(30)
TRANSFER_ORGANIZATION_ID NUMBER
TRANSFER_SUBINVENTORY VARCHAR2(10)
TRANSFER_LOCATOR_ID NUMBER
SHIPMENT_NUMBER VARCHAR2(30)
TRANSFER_COST NUMBER
TRANSPORTATION_DIST_ACCOUNT NUMBER
TRANSPORTATION_COST NUMBER
TRANSFER_COST_DIST_ACCOUNT NUMBER
WAYBILL_AIRBILL VARCHAR2(20)
FREIGHT_CODE VARCHAR2(30)
NUMBER_OF_CONTAINERS NUMBER
VALUE_CHANGE NUMBER
PERCENTAGE_CHANGE NUMBER
ATTRIBUTE_CATEGORY VARCHAR2(30)
ATTRIBUTE1 VARCHAR2(150)
ATTRIBUTE2 VARCHAR2(150)
ATTRIBUTE3 VARCHAR2(150)
ATTRIBUTE4 VARCHAR2(150)
ATTRIBUTE5 VARCHAR2(150)
ATTRIBUTE6 VARCHAR2(150)
ATTRIBUTE7 VARCHAR2(150)
ATTRIBUTE8 VARCHAR2(150)
ATTRIBUTE9 VARCHAR2(150)
ATTRIBUTE10 VARCHAR2(150)
ATTRIBUTE11 VARCHAR2(150)
ATTRIBUTE12 VARCHAR2(150)
ATTRIBUTE13 VARCHAR2(150)
ATTRIBUTE14 VARCHAR2(150)
ATTRIBUTE15 VARCHAR2(150)
MOVEMENT_ID NUMBER
TRANSACTION_GROUP_ID NUMBER
TASK_ID NUMBER(15)
TO_TASK_ID NUMBER(15)
Thanks,
vidhya -
Hi,
Im not expert in Oracle Database especially in querying of data's
My problem is about to be honest i have no idea how to make table format.
We have a problem in our production instance we raised it in Oracle Support but one of the technical support there is asking about this
"I want table data of the corresponding batch. Please take help of you DBA and ensure that you are connected to the correct instance, where you have this issue."
I am only one DBA here in our company and Im still Newbie.
here is the scripts the he want me to run it
select batch_id from gme_batch_header bh, mtl_parameters mp
where batch_no = '115982'
and organization_code = '101'
and bh.organization_id = mp.organization_id;
select *
FROM gme_batch_header
WHERE batch_id in (XXXXXX);
select batch_id, line_type, material_detail_id, inventory_item_id, plan_qty, actual_qty, wip_plan_qty, dtl_um, release_type, phantom_id,
locator_id, material_requirement_date, move_order_line_id, original_primary_qty, subinventory
FROM gme_material_details
WHERE batch_id IN (XXXXXX)
ORDER BY batch_id, line_type, material_detail_id;
SELECT 'MMT' as table_name, t.transaction_id as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id,
t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code,
to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, NULL as lock_flag, NULL as process_flag
FROM mtl_material_transactions t, gme_material_details d, gme_batch_header h, mtl_transaction_lot_numbers lt,
mtl_lot_numbers lot, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND t.transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = t.trx_source_line_id
AND lt.transaction_id(+) = t.transaction_id -- This join allows us to get the lot number
AND lot.lot_number(+) = lt.lot_number -- This join allows us to get lot specific info if needed.
AND lot.organization_id(+) = lt.organization_id
AND lot.inventory_item_id(+) = lt.inventory_item_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
UNION ALL
SELECT 'RSRV' as table_name, reservation_id as trans_or_rsrv_id , NULL, h.batch_status, d.batch_id as batch_id,
demand_source_header_id as trans_or_rsrv_source_id, d.line_type, demand_source_line_id as material_detail_id,
r.organization_id, pa.organization_code, r.inventory_item_id, i.segment1 as item_number, r.subinventory_code, r.locator_id, r.lot_number,primary_reservation_quantity, reservation_quantity as trans_or_rsrv_qty, NULL,reservation_uom_code as trans_or_rsrv_uom, secondary_reservation_quantity as sec_qty, r.secondary_uom_code,
to_char(requirement_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, LPN_ID, NULL, NULL, NULL, NULL
FROM mtl_reservations r, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
WHERE demand_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND demand_source_header_id = h.batch_id
AND r.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = demand_source_line_id
AND r.organization_id = i.organization_id
AND r.inventory_item_id = i.inventory_item_id
And r.organization_id = pa.organization_id
UNION ALL
SELECT 'PPL' as table_name, pending_product_lot_id as trans_or_rsrv_id, NULL, h.batch_status, d.batch_id as batch_id, NULL, d.line_type, d.material_detail_id, h.organization_id, pa.organization_code, d.inventory_item_id, i.segment1 as item_number, NULL, NULL, lot_number, NULL, quantity as trans_or_rsrv_qty, NULL, NULL, secondary_quantity as sec_qty, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM gme_pending_product_lots p, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
WHERE h.batch_id in (XXXXXX)
AND p.batch_id = h.batch_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = p.material_detail_id
AND h.organization_id = i.organization_id
AND d.inventory_item_id = i.inventory_item_id
And h.organization_id = pa.organization_id
UNION ALL
-- Note that there should not be any transactions in MMTT. If there are, they are usually "stuck" there and
-- need to be processed or deleted
SELECT 'MMTT' as table_name, t.TRANSACTION_TEMP_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date,t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, t.lock_flag, t.process_flag
FROM mtl_material_transactions_temp t, gme_material_details d, gme_batch_header h,
mtl_transaction_lots_temp lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = trx_source_line_id
AND lt.TRANSACTION_TEMP_ID (+) = t.TRANSACTION_TEMP_ID -- This join allows us to get the lot number
--AND lot.lot_number(+) = lt.lot_number
--AND t.organization_id = lot.organization_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
UNION ALL
SELECT 'MTI' as table_name, t.TRANSACTION_INTERFACE_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, to_char(t.lock_flag), to_char(t.process_flag)
FROM mtl_transactions_interface t, gme_material_details d, gme_batch_header h,
mtl_transaction_lots_interface lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = trx_source_line_id
AND lt.TRANSACTION_INTERFACE_ID (+) = t.TRANSACTION_INTERFACE_ID -- This join allows us to get the lot number
--AND lot.lot_number(+) = lt.lot_number
--AND t.organization_id = lot.organization_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
ORDER BY batch_id, table_name, line_type, material_detail_id;
SELECT *
FROM gme_transaction_pairs
WHERE batch_id in (XXXXXX);
I used SQL Developer and connected in our Production instance where the problem is there
so i run it please see attached file:
please help how to make table format outpur what are the steps that i need to produce correctly.Hi,
From your post, it seems that you need to upload the results of the query to Oracle Support.
You can spool the output to a file and upload it.
Something like...
SQL>spool output.txt
SQL>set lines 200
SQL>set pages 200
--execute the queries
SQL>spool off
I don't know about SQL Developer but tools such as PL/SQL Developer and Toad will allow you to export the query results directly to MS Excel.
Regards,
Sujoy -
Information about MTI,MMTT,MMT,MTA
Hi,
Can some one explaing when data will be inserted into MTI,MMTT,MMT,MTA in p2p flow.
Also what information these tables will contain.
Regards,Your question is quite broad. The best way to get the answer is to execute the steps in the P2P flow.
See http://oracle.anilpassi.com/procure-to-pay-order-to-cash-end-to-end-cycle-functional-documents-2.html
For each of the step, as you create data/transaction (such as PO, Receipt, Invoice etc.), you can simply use Help > About this record to identify the table being impacted. Then you can query the table to find all data that was inserted/updated.
In general, the main tables are
PO tables (such as Purchase order header, lines, shipments and distributions)
Inventory tables (such as rcv_transactions, mmt, mta)
AP tables (such as invoices and invoice distributions)
see http://freshers-oracleapplications.blogspot.com/2008/09/procure-to-pay-base-tables.html
and see http://www.oracleappshub.com/account-payable/procure-to-pay-p2p-accounting-entries/
Hope this helps
Sandeep Gandhi
Independent Consultant -
MB5B Report table for Open and Closing stock on date wise
Hi Frds,
I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
Thanks
Mohan MHi,
Please check the below links...
Query for Opening And Closing Stock
Inventory Opening and Closing Stock
open stock and closing stock
Kuber -
Hi All,
i got an error while dropping a table which is
ORA-00600: internal error code, arguments: [kghstack_free1], [kntgmvm: collst], [], [], [], [], [], [], [], [], [], []
i know learnt that -600 error is related to dba. now how to proceed.
thanks and regards,
sri ram.00600 errors should be raised as service request with Oracle as it implies some internal bug.
You can search oracle support first to see if anyone has had the same class of 00600 error, and then if not (and therefore no patch) raise your issue with Oracle.
http://support.oracle.com
Maybe you are looking for
-
[AS CS3] Another MathType Baseline Shift Question
Hi Guys, I am using the below script to place MathType Equations into an InDesign File Basically it searches for tags <<Filename.eps>> and replaces it with a inline graphic. My question is: Is there anyway I can get it to read the height of the InLin
-
My apps quit on lunch. plz help me.
i just update OS to 7.0.4. after that i can't use my apps. they quit on loading. plz help
-
I want to invite 12 people to a birthday party. I have created a group called "Centerville Gang" I want to send just one message to all of these people. I would think there would be a way to select this group as the recipients once instead of doin
-
SAP CRM 5.0 Internet Sales 5.0 : XCM Guide
Hi all Could anybody help in providing the XCM Guide for ISA 5.0 ?? Email Id: [email protected] Thanks
-
My Secure Empty Transh does not work, How can I fix it?
When I open Trash, it displays all the files that are there to be deleted. However, when I select from Actions the Secure Empty Transh, the computer launches the application to empty trash, it asks me if I want to delete unlocked items or all items.