P. 1
Query_Field_Mapping

Query_Field_Mapping

|Views: 23|Likes:
Published by narasimha4u11

More info:

Published by: narasimha4u11 on Feb 17, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

02/17/2011

pdf

text

original

Request: Reid has requested one PSQuery that will give him below details on item expiration that

will give him details about availability of lot controlled items that are going to expire. This query will help warehouses in utilizing the items first that are going to expire and will save cost. Below are the fields requested with record field mapping details. S.NO. 1 2 3 4 5 6 7 8 Field Name Item# Description Min Max Lot id Lot Expiration Date Quantity due to expire Bin Location Database Field INV_ITEM_ID DESCR60 REORDER_POINT QTY_MAXIMUM INV_LOT_ID EXPIRATION_DATE QTY_ONHAND STORAGE_AREA, STOR_LEVEL_1, STOR_LEVEL_2, STOR_LEVEL_3, STOR_LEVEL_4, STD_PACK_UOM DFLT_ACTUAL_COST QTY_ONHAND * DFLT_ACTUAL_COST Record Name LOT_CONTROL_INV MASTER_ITEM_TBL BU_ITEMS_INV BU_ITEMS_INV LOT_CONTROL_INV LOT_CONTROL_INV LOT_CONTROL_INV PHYSICAL_INV

9 10 11 12 13 14

Unit Of Measure Unit Cost Value due to expire Average monthly issue quantity Estimate of quantity that will expire before usage Value of estimated quantity to expire

BU_ITEMS_INV BU_ITEMS_INV LOT_CONTROL_INV, BU_ITEMS_INV

SELECT L.INV_ITEM_ID, M.DESCR60, B.REORDER_POINT, B.QTY_MAXIMUM, L.INV_LOT_ID, L.EXPIRATION_DATE, L.QTY_ONHAND, P.STORAGE_AREA, P.STOR_LEVEL_1, P.STOR_LEVEL_2, P.STOR_LEVEL_3, P.STOR_LEVEL_4, B.STD_PACK_UOM, B.DFLT_ACTUAL_COST, (L.QTY_ONHAND * B.DFLT_ACTUAL_COST) As Value_due_to_expire FROM PS_LOT_CONTROL_INV L, PS_MASTER_ITEM_TBL M, PS_BU_ITEMS_INV B, PS_PHYSICAL_INV P WHERE L.BUSINESS_UNIT = B.BUSINESS_UNIT AND L.INV_ITEM_ID = B.INV_ITEM_ID AND L.INV_ITEM_ID = M.INV_ITEM_ID AND M.SETID = 'SHARE' AND L.BUSINESS_UNIT = P.BUSINESS_UNIT AND L.INV_ITEM_ID = P.INV_ITEM_ID

.INV_ITEM_ID = 'L00000000000000929' AND L.AND L.QTY_ONHAND = P.360 DAYS WITH UR.QTY AND L.QTY_ONHAND <> 0 WITH UR. SELECT (SUM(QTY_BASE)/12) FROM PS_TRANSACTION_INV WHERE BUSINESS_UNIT = '36001' AND INV_ITEM_ID = 'L00000000000000929' AND TRANSACTION_GROUP = '030' AND TRANSACTION_DATE <= CURRENT_DATE AND TRANSACTION_DATE >= CURRENT_DATE .BUSINESS_UNIT = '36001' AND L.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->