DBA Data[Home] [Help]

APPS.GMF_ITEMCOST_PUB dependencies on GMF_VALIDATIONS_PVT

Line 231: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id) THEN

227: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
228: THEN
229: log_msg('Validating Organization Id :' || p_header_rec.Organization_id);
230: END IF;
231: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id) THEN
232: add_header_to_error_stack(p_header_rec);
233: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_ID');
234: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',p_header_rec.organization_id);
235: FND_MSG_PUB.Add;

Line 255: x_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);

251: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
252: THEN
253: log_msg('Validating Organization Code :' || p_header_rec.Organization_code);
254: END IF;
255: x_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);
256: IF x_header_rec.organization_id IS NULL
257: THEN
258: add_header_to_error_stack(p_header_rec);
259: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_CODE');

Line 287: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_type_id(p_header_rec.cost_type_id) THEN

283: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
284: THEN
285: log_msg('Validating Cost type Id : ' || p_header_rec.cost_type_id);
286: END IF;
287: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_type_id(p_header_rec.cost_type_id) THEN
288: add_header_to_error_stack(p_header_rec);
289: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE_ID');
290: FND_MESSAGE.SET_TOKEN('COST_TYPE_ID',p_header_rec.cost_type_id);
291: FND_MSG_PUB.Add;

Line 311: x_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);

307: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
308: THEN
309: log_msg('Validating Cost type code : ' || p_header_rec.cost_mthd_code);
310: END IF;
311: x_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
312: IF x_header_rec.cost_Type_id IS NULL THEN
313: add_header_to_error_stack(p_header_rec);
314: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE');
315: FND_MESSAGE.SET_TOKEN('COST_TYPE',p_header_rec.cost_mthd_code);

Line 342: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)

338: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
339: THEN
340: log_msg('Validating Period Id : ' || p_header_rec.period_id);
341: END IF;
342: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)
343: THEN
344: add_header_to_error_stack(p_header_rec);
345: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_PERIOD_ID');
346: FND_MESSAGE.SET_TOKEN('PERIOD_ID',p_header_rec.period_id);

Line 369: x_header_rec.period_id := GMF_VALIDATIONS_PVT.Validate_Period_code(x_header_rec.organization_id, p_header_rec.calendar_code,p_header_rec.period_code, x_header_rec.cost_Type_id);

365: END IF;
366: IF ((p_header_rec.calendar_code <> FND_API.G_MISS_CHAR) AND (p_header_rec.calendar_code IS NOT NULL))
367: AND ((p_header_rec.period_code <> FND_API.G_MISS_CHAR) AND (p_header_rec.period_code IS NOT NULL))
368: THEN
369: x_header_rec.period_id := GMF_VALIDATIONS_PVT.Validate_Period_code(x_header_rec.organization_id, p_header_rec.calendar_code,p_header_rec.period_code, x_header_rec.cost_Type_id);
370: IF nvl(x_header_rec.period_id, -1) <= 0 THEN
371: add_header_to_error_stack(p_header_rec);
372: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CLDR_PERIOD');
373: FND_MESSAGE.SET_TOKEN('CALENDAR_CODE',p_header_rec.calendar_code);

Line 435: IF NOT GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, x_header_Rec.organization_id)

431: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
432: THEN
433: log_msg('Validating Inventory Item Id : ' || p_header_rec.inventory_item_id);
434: END IF;
435: IF NOT GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, x_header_Rec.organization_id)
436: THEN
437: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_ID');
438: FND_MESSAGE.SET_TOKEN('ITEM_ID', p_header_rec.inventory_item_id);
439: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',x_header_Rec.organization_id);

Line 458: x_header_rec.inventory_item_id := GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number, x_header_Rec.organization_id);

454: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
455: THEN
456: log_msg('Validating Item Number : ' || p_header_rec.item_number);
457: END IF;
458: x_header_rec.inventory_item_id := GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number, x_header_Rec.organization_id);
459: IF x_header_rec.inventory_item_id IS NULL
460: THEN
461: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_NO');
462: FND_MESSAGE.SET_TOKEN('ITEM_NO',p_header_rec.item_number);

Line 605: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_this_level(i).cost_cmpntcls_id,l_cost_cmpntcls_code,l_usage_ind);

601:
602: /***********************
603: * Validate CmpntCls Id *
604: ***********************/
605: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_this_level(i).cost_cmpntcls_id,l_cost_cmpntcls_code,l_usage_ind);
606: IF l_usage_ind IS NULL
607: THEN
608: add_header_to_error_stack(p_header_rec);
609: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CMPNTCLS_ID');

Line 638: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (

634:
635: /*************************
636: * Convert value into ID. *
637: *************************/
638: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (
639: p_this_level(i).cost_cmpntcls_code,
640: l_cost_cmpntcls_id,l_usage_ind
641: ) ;
642: IF l_cost_cmpntcls_id IS NULL

Line 671: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_this_level(i).cost_analysis_code)

667: END IF;
668: IF (p_this_level(i).cost_analysis_code <> FND_API.G_MISS_CHAR)
669: AND (p_this_level(i).cost_analysis_code IS NOT NULL)
670: THEN
671: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_this_level(i).cost_analysis_code)
672: THEN
673: add_header_to_error_stack(p_header_rec);
674: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ANALYSIS_CODE');
675: FND_MESSAGE.SET_TOKEN('ANALYSIS_CODE',p_this_level(i).cost_analysis_code);

Line 959: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_lower_level(i).cost_cmpntcls_id)

955: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
956: THEN
957: log_msg('validating lower level Cmpt Cls ID('||i||') :'|| p_lower_level(i).cost_cmpntcls_id);
958: END IF;
959: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_lower_level(i).cost_cmpntcls_id)
960: THEN
961: add_header_to_error_stack(p_header_rec);
962: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CMPNTCLS_ID');
963: FND_MESSAGE.SET_TOKEN('CMPNTCLS_ID',p_lower_level(i).cost_cmpntcls_id);

Line 990: l_cost_cmpntcls_id := GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (p_lower_level(i).cost_cmpntcls_code);

986: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
987: THEN
988: log_msg('validating lower level Cmpt Cls Code('||i||') : ' ||p_lower_level(i).cost_cmpntcls_code);
989: END IF;
990: l_cost_cmpntcls_id := GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (p_lower_level(i).cost_cmpntcls_code);
991: IF l_cost_cmpntcls_id IS NULL THEN
992: add_header_to_error_stack(p_header_rec);
993: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CMPNTCLS_CODE');
994: FND_MESSAGE.SET_TOKEN('CMPNTCLS_CODE',p_lower_level(i).cost_cmpntcls_code);

Line 1020: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_lower_level(i).cost_analysis_code)

1016:
1017: IF (p_lower_level(i).cost_analysis_code <> FND_API.G_MISS_CHAR)
1018: AND (p_lower_level(i).cost_analysis_code IS NOT NULL)
1019: THEN
1020: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_lower_level(i).cost_analysis_code)
1021: THEN
1022: add_header_to_error_stack(p_header_rec);
1023: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ANALYSIS_CODE');
1024: FND_MESSAGE.SET_TOKEN('ANALYSIS_CODE',p_lower_level(i).cost_analysis_code);

Line 1980: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id) THEN

1976: END IF;
1977: IF (p_header_rec.organization_id <> FND_API.G_MISS_NUM)
1978: AND (p_header_rec.organization_id IS NOT NULL)
1979: THEN
1980: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id) THEN
1981: add_header_to_error_stack(p_header_rec);
1982: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_ID');
1983: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',p_header_rec.organization_id);
1984: FND_MSG_PUB.Add;

Line 2000: l_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);

1996: ELSE
1997: IF (p_header_rec.organization_code <> FND_API.G_MISS_CHAR)
1998: AND (p_header_rec.organization_code IS NOT NULL)
1999: THEN
2000: l_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);
2001: IF l_header_rec.organization_id IS NULL
2002: THEN
2003: add_header_to_error_stack(p_header_rec);
2004: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_CODE');

Line 2027: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_type_id(p_header_rec.cost_type_id) THEN

2023: END IF;
2024: IF (p_header_rec.cost_type_id <> FND_API.G_MISS_NUM)
2025: AND (p_header_rec.cost_type_id IS NOT NULL)
2026: THEN
2027: IF NOT GMF_VALIDATIONS_PVT.Validate_Cost_type_id(p_header_rec.cost_type_id) THEN
2028: add_header_to_error_stack(p_header_rec);
2029: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE_ID');
2030: FND_MESSAGE.SET_TOKEN('COST_TYPE_ID',p_header_rec.cost_type_id);
2031: FND_MSG_PUB.Add;

Line 2047: l_header_rec.cost_type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);

2043: ELSE
2044: IF (p_header_rec.cost_mthd_code <> FND_API.G_MISS_CHAR)
2045: AND (p_header_rec.cost_mthd_code IS NOT NULL)
2046: THEN
2047: l_header_rec.cost_type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
2048: IF l_header_rec.cost_type_id IS NULL THEN
2049: add_header_to_error_stack(p_header_rec);
2050: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE');
2051: FND_MESSAGE.SET_TOKEN('COST_TYPE',p_header_rec.cost_mthd_code);

Line 2074: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)

2070:
2071: IF (p_header_rec.period_id <> FND_API.G_MISS_NUM)
2072: AND (p_header_rec.period_id IS NOT NULL)
2073: THEN
2074: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)
2075: THEN
2076: add_header_to_error_stack(p_header_rec);
2077: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_PERIOD_ID');
2078: FND_MESSAGE.SET_TOKEN('PERIOD_ID',p_header_rec.period_id);

Line 2102: l_header_rec.period_id := GMF_VALIDATIONS_PVT.Validate_Period_code(p_header_rec.organization_id, p_header_rec.calendar_code,p_header_rec.period_code,p_header_rec.cost_type_id);

2098:
2099: IF ((p_header_rec.calendar_code <> FND_API.G_MISS_CHAR) AND (p_header_rec.calendar_code IS NOT NULL))
2100: AND ((p_header_rec.period_code <> FND_API.G_MISS_CHAR) AND (p_header_rec.period_code IS NOT NULL))
2101: THEN
2102: l_header_rec.period_id := GMF_VALIDATIONS_PVT.Validate_Period_code(p_header_rec.organization_id, p_header_rec.calendar_code,p_header_rec.period_code,p_header_rec.cost_type_id);
2103: ELSE
2104: add_header_to_error_stack(p_header_rec);
2105: FND_MESSAGE.SET_NAME('GMF','GMF_API_PERIOD_ID_REQ');
2106: FND_MSG_PUB.Add;

Line 2120: IF NOT GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, p_header_rec.organization_id)

2116: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
2117: THEN
2118: log_msg('Validating Inventory Item Id : ' || p_header_rec.inventory_item_id);
2119: END IF;
2120: IF NOT GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, p_header_rec.organization_id)
2121: THEN
2122: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_ID');
2123: FND_MESSAGE.SET_TOKEN('ITEM_ID', p_header_rec.inventory_item_id);
2124: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',p_header_rec.organization_id);

Line 2144: l_header_rec.inventory_item_id := GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number, p_header_Rec.organization_id);

2140: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
2141: THEN
2142: log_msg('Validating Item Number : ' || p_header_rec.item_number);
2143: END IF;
2144: l_header_rec.inventory_item_id := GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number, p_header_Rec.organization_id);
2145: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
2146: THEN
2147: log_msg('Inventory Item id : ' || p_header_rec.inventory_item_id);
2148: END IF;