DBA Data[Home] [Help]

APPS.WMS_EPC_PVT dependencies on STANDARD

Line 135: -- Evaluate whether the LPN is standard

131:
132:
133: --This API needs to move in the rules Engine code
134: --Purpose
135: -- Evaluate whether the LPN is standard
136: ---Standard : Contains single Item
137: ---Non-Standard : Contains multiple Items
138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS
139:

Line 136: ---Standard : Contains single Item

132:
133: --This API needs to move in the rules Engine code
134: --Purpose
135: -- Evaluate whether the LPN is standard
136: ---Standard : Contains single Item
137: ---Non-Standard : Contains multiple Items
138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS
139:
140: l_is_standard NUMBER;

Line 137: ---Non-Standard : Contains multiple Items

133: --This API needs to move in the rules Engine code
134: --Purpose
135: -- Evaluate whether the LPN is standard
136: ---Standard : Contains single Item
137: ---Non-Standard : Contains multiple Items
138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS
139:
140: l_is_standard NUMBER;
141: l_item_cnt NUMBER;

Line 138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS

134: --Purpose
135: -- Evaluate whether the LPN is standard
136: ---Standard : Contains single Item
137: ---Non-Standard : Contains multiple Items
138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS
139:
140: l_is_standard NUMBER;
141: l_item_cnt NUMBER;
142: l_parent_lpn_id NUMBER;

Line 140: l_is_standard NUMBER;

136: ---Standard : Contains single Item
137: ---Non-Standard : Contains multiple Items
138: FUNCTION is_lpn_standard(p_lpn_id NUMBER) RETURN NUMBER IS
139:
140: l_is_standard NUMBER;
141: l_item_cnt NUMBER;
142: l_parent_lpn_id NUMBER;
143: l_outermost_lpn_id NUMBER;
144: l_lpn_item_id NUMBER;

Line 176: INTO l_lpn_item_id,l_uom_code,l_rev,l_is_standard

172:
173: BEGIN
174:
175: SELECT DISTINCT wlc.inventory_item_id,wlc.uom_code,wlc.revision,1
176: INTO l_lpn_item_id,l_uom_code,l_rev,l_is_standard
177: FROM wms_lpn_contents wlc, wms_license_plate_numbers wlpn
178: WHERE wlpn.outermost_lpn_id = p_lpn_id
179: AND wlpn.lpn_id = wlc.parent_lpn_id
180: AND wlc.organization_id = wlpn.organization_id;

Line 182: -- it must be Non-Standard here if there are multiple records for item,

178: WHERE wlpn.outermost_lpn_id = p_lpn_id
179: AND wlpn.lpn_id = wlc.parent_lpn_id
180: AND wlc.organization_id = wlpn.organization_id;
181:
182: -- it must be Non-Standard here if there are multiple records for item,
183: --uom_code,revision combination
184:
185:
186: EXCEPTION

Line 189: --NON-STANDARD

185:
186: EXCEPTION
187: WHEN too_many_rows THEN
188: --MUITPLE ITEMS OR IN DIFFERETN UOMS OR Different Revision
189: --NON-STANDARD
190: l_is_standard := 0;
191:
192: WHEN no_data_found THEN
193: --Error condition

Line 190: l_is_standard := 0;

186: EXCEPTION
187: WHEN too_many_rows THEN
188: --MUITPLE ITEMS OR IN DIFFERETN UOMS OR Different Revision
189: --NON-STANDARD
190: l_is_standard := 0;
191:
192: WHEN no_data_found THEN
193: --Error condition
194: l_is_standard := -1;

Line 194: l_is_standard := -1;

190: l_is_standard := 0;
191:
192: WHEN no_data_found THEN
193: --Error condition
194: l_is_standard := -1;
195:
196: WHEN OTHERS THEN
197: l_is_standard := -1;
198: IF l_debug = 1 then

Line 197: l_is_standard := -1;

193: --Error condition
194: l_is_standard := -1;
195:
196: WHEN OTHERS THEN
197: l_is_standard := -1;
198: IF l_debug = 1 then
199: trace('ERROR CODE = ' || SQLCODE);
200: trace('ERROR MESSAGE = ' || SQLERRM);
201: END IF;

Line 242: INTO l_lpn_item_id,l_uom_code,l_rev,l_is_standard

238: --epc generation AND rfid tagging will be done only AT pallet and
239: --CASE label. so CASE might have nested lpns within it.
240:
241: select wlc.inventory_item_id,wlc.uom_code,wlc.revision,1
242: INTO l_lpn_item_id,l_uom_code,l_rev,l_is_standard
243: from WMS_LPN_CONTENTS WLC
244: where WLC.parent_lpn_id in (
245: select wlpn.lpn_id
246: from wms_license_plate_numbers wlpn

Line 259: --NON-STANDARD

255:
256: EXCEPTION
257: WHEN too_many_rows THEN
258: --MUITPLE ITEMS
259: --NON-STANDARD
260: l_is_standard := 0;
261:
262: WHEN no_data_found THEN
263: --Error condition

Line 260: l_is_standard := 0;

256: EXCEPTION
257: WHEN too_many_rows THEN
258: --MUITPLE ITEMS
259: --NON-STANDARD
260: l_is_standard := 0;
261:
262: WHEN no_data_found THEN
263: --Error condition
264: l_is_standard := -1;

Line 264: l_is_standard := -1;

260: l_is_standard := 0;
261:
262: WHEN no_data_found THEN
263: --Error condition
264: l_is_standard := -1;
265:
266: WHEN OTHERS THEN
267: l_is_standard := -1;
268: IF l_debug = 1 then

Line 267: l_is_standard := -1;

263: --Error condition
264: l_is_standard := -1;
265:
266: WHEN OTHERS THEN
267: l_is_standard := -1;
268: IF l_debug = 1 then
269: trace('ERROR CODE = ' || SQLCODE);
270: trace('ERROR MESSAGE = ' || SQLERRM);
271: END IF;

Line 280: RETURN l_is_standard;

276: RETURN -1;
277:
278: END IF;
279:
280: RETURN l_is_standard;
281:
282:
283: END is_lpn_standard;
284:

Line 283: END is_lpn_standard;

279:
280: RETURN l_is_standard;
281:
282:
283: END is_lpn_standard;
284:
285:
286: -- p_org_id, p_item_id ,p_uom , p_rev_id
287: -- are needed in this function because

Line 1613: --PARTITION value (specified by EPC global standard)

1609:
1610: END uptodate_wms_epc;
1611:
1612: --Given EPC_rule_type and company_prefix, calculates the pre-defined
1613: --PARTITION value (specified by EPC global standard)
1614: FUNCTION get_PARTITION_value(p_epc_rule_type IN VARCHAR2,
1615: P_company_prefix IN VARCHAR2) RETURN NUMBER
1616: IS
1617: l_partition NUMBER;

Line 1653: l_partition := 0; --partition is not needed for this STANDARD EPC TYPE generation

1649: END IF;
1650:
1651: ELSE
1652:
1653: l_partition := 0; --partition is not needed for this STANDARD EPC TYPE generation
1654:
1655: END IF;
1656:
1657: RETURN l_partition;

Line 1720: generation using diferent standard (X means acceptable)

1716:
1717: ----------------------------------------
1718: /*
1719: Following table shows Valid set up in Label Format Form for EPC
1720: generation using diferent standard (X means acceptable)
1721:
1722: Standard\LabelType LPN/LPNContent/LPNSummary Material Serial
1723: SGTIN_96/64 X X X
1724: SSCC_96/64 X - -

Line 1722: Standard\LabelType LPN/LPNContent/LPNSummary Material Serial

1718: /*
1719: Following table shows Valid set up in Label Format Form for EPC
1720: generation using diferent standard (X means acceptable)
1721:
1722: Standard\LabelType LPN/LPNContent/LPNSummary Material Serial
1723: SGTIN_96/64 X X X
1724: SSCC_96/64 X - -
1725: DoD_96/64 - - X
1726: */

Line 2525: --{{ See if the rule is custom or Un-Implemented Standard Rule }}

2521: IF l_debug = 1 THEN
2522: trace('Generating EPC now.............');
2523: END IF;
2524:
2525: --{{ See if the rule is custom or Un-Implemented Standard Rule }}
2526: IF l_epc_category_id <> mgd_idcode_utl.epc_encoding_category_id
2527: OR ( l_epc_category_id = mgd_idcode_utl.epc_encoding_category_id AND
2528: l_epc_rule_type NOT IN ('EPC_SGTIN_96','EPC_SSCC_96','EPC_SGTIN_64','EPC_SSCC_64','EPC_DOD_96','EPC_DOD_64') )
2529: --means in ('EPC_GIAI_96','EPC_GRAI_96','EPC_SGLN_96','EPC_GID_96','EPC_GIAI_64','EPC_GRAI_64','EPC_SGLN_64','EPC_GID_64')

Line 2545: --{{ get standard EPC generated for standard rule}}

2541: x_epc => l_epc);
2542:
2543: ELSIF l_epc_rule_type IN
2544: ('EPC_SGTIN_96','EPC_SSCC_96','EPC_SGTIN_64','EPC_SSCC_64','EPC_DOD_96','EPC_DOD_64') THEN
2545: --{{ get standard EPC generated for standard rule}}
2546:
2547: --{{ Check to see if regenerate flag is ON..only then generate epc }}
2548: IF l_regenerate_flag = 'Y' OR (l_epc is NULL AND
2549: Nvl(l_regenerate_flag,'N') = 'N' ) THEN