DBA Data[Home] [Help]

APPS.GMF_BURDENDETAILS_PUB dependencies on GMF_VALIDATIONS_PVT

Line 870: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id)

866: (p_header_rec.organization_id IS NOT NULL) THEN
867: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN -- Bug 2659435
868: log_msg('validating organization_id : ' || p_header_rec.organization_id);
869: END IF;
870: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id)
871: THEN
872: add_header_to_error_stack(p_header_rec); -- Bug 2659435
873: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_ID');
874: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',p_header_rec.organization_id);

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

891: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN -- Bug 2659435
892: log_msg('validating organization_code : ' || p_header_rec.organization_code);
893: END IF;
894:
895: l_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);
896: IF l_header_rec.organization_id IS NULL THEN
897: add_header_to_error_stack(p_header_rec); -- Bug 2659435
898: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_CODE');
899: FND_MESSAGE.SET_TOKEN('ORGANIZATION_CODE',p_header_rec.organization_code);

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

925: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN
926: log_msg('validating inventory_item_id : ' || p_header_rec.inventory_item_id);
927: END IF;
928:
929: IF NOT (GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, p_header_rec.organization_id))
930: THEN
931: add_header_to_error_stack(p_header_rec); -- Bug 2659435
932: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_ID');
933: FND_MESSAGE.SET_TOKEN('ITEM_ID',p_header_rec.inventory_item_id);

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

951: log_msg('validating item_number : ' || p_header_rec.item_number);
952: END IF;
953: -- If Organization id is passed as null then assign the derived organization id
954: l_header_rec.organization_id := nvl(p_header_rec.organization_id,l_header_rec.organization_id) ;
955: l_header_rec.inventory_item_id := GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number,l_header_rec.organization_id);
956:
957: IF l_header_rec.inventory_item_id IS NULL THEN -- item_Id fetch was not successful
958: -- Conversion failed.
959: add_header_to_error_stack(p_header_rec); -- Bug 2659435

Line 992: IF GMF_VALIDATIONS_PVT.Validate_Lot_Cost_type_id(p_header_rec.cost_type_id) THEN

988: END IF;
989: -- cost type id should be standard or actual cost type because this API is for Standard and actual cost
990: -- overheads only. So Call Validate_Lot_Cost_type_id to verify the cost type is lot cost type or not.
991: -- If it is lot cost type id then log error message as invalid cost type
992: IF GMF_VALIDATIONS_PVT.Validate_Lot_Cost_type_id(p_header_rec.cost_type_id) THEN
993: add_header_to_error_stack(p_header_rec);
994: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE_ID');
995: FND_MESSAGE.SET_TOKEN('COST_TYPE_ID',p_header_rec.cost_type_id);
996: FND_MSG_PUB.Add;

Line 1016: l_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);

1012: IF (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level) THEN
1013: log_msg('Validating Cost type : ' || p_header_rec.cost_mthd_code);
1014: END IF;
1015: -- call validate lot cost type
1016: l_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
1017: -- Call validate lot cost type to check lot cost type, if it is lot cost type then log error
1018: -- because overheads will be created for actual and standard costs
1019: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);
1020: --If cost type id is null or cost type is lot cost type then log invalid cost type message

Line 1019: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);

1015: -- call validate lot cost type
1016: l_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
1017: -- Call validate lot cost type to check lot cost type, if it is lot cost type then log error
1018: -- because overheads will be created for actual and standard costs
1019: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);
1020: --If cost type id is null or cost type is lot cost type then log invalid cost type message
1021: IF (l_header_rec.cost_Type_id IS NULL)
1022: OR (l_lc_cost_type_id IS NOT NULL ) THEN
1023: add_header_to_error_stack(p_header_rec);

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

1047: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level
1048: THEN
1049: log_msg('validating Period Id : ' || p_header_rec.period_id);
1050: END IF;
1051: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)
1052: THEN
1053: add_header_to_error_stack(p_header_rec);
1054: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_PERIOD_ID');
1055: FND_MESSAGE.SET_TOKEN('PERIOD_ID',p_header_rec.period_id);

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

1079: -- and pass the derived cost type id for derving to period id
1080: l_header_rec.cost_type_id := nvl(p_header_rec.cost_type_id,l_header_rec.cost_type_id) ;
1081: l_header_rec.organization_id := nvl(p_header_rec.organization_id,l_header_rec.organization_id) ;
1082: -- get the period id value
1083: l_header_rec.period_id := GMF_VALIDATIONS_PVT.Validate_period_code(l_header_rec.organization_id, p_header_rec.calendar_code,p_header_rec.period_code,l_header_rec.cost_type_id );
1084: -- if derived period id is null then log a message
1085: IF l_header_rec.period_id IS NULL THEN
1086: add_header_to_error_stack(p_header_rec);
1087: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CLDR_PERIOD');

Line 1335: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id)

1331: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN -- Bug 2659435
1332: log_msg('validating organization_id : ' || p_header_rec.organization_id);
1333: END IF;
1334:
1335: IF NOT GMF_VALIDATIONS_PVT.Validate_organization_id(p_header_rec.organization_id)
1336: THEN
1337: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1338: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_ID');
1339: FND_MESSAGE.SET_TOKEN('ORGANIZATION_ID',p_header_rec.organization_id);

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

1357:
1358: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN -- Bug 2659435
1359: log_msg('validating organization_code : ' || p_header_rec.organization_code);
1360: END IF;
1361: x_header_rec.organization_id := GMF_VALIDATIONS_PVT.Validate_organization_Code(p_header_rec.organization_code);
1362: IF x_header_rec.organization_id IS NULL THEN
1363: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1364: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ORGN_CODE');
1365: FND_MESSAGE.SET_TOKEN('ORG_CODE',p_header_rec.organization_code);

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

1390: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN
1391: log_msg('validating inventory_item_id : ' || p_header_rec.inventory_item_id);
1392: END IF;
1393: x_header_rec.organization_id := nvl(p_header_rec.organization_id,x_header_rec.organization_id) ;
1394: IF NOT GMF_VALIDATIONS_PVT.Validate_inventory_item_Id(p_header_rec.inventory_item_id, x_header_rec.organization_id)
1395: THEN
1396: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1397: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_ID');
1398: FND_MESSAGE.SET_TOKEN('ITEM_ID',p_header_rec.inventory_item_id);

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

1416: log_msg('validating item_number : ' || p_header_rec.item_number);
1417: END IF;
1418: -- If Organization id is passed as null then assign the derived organization id
1419: x_header_rec.organization_id := nvl(p_header_rec.organization_id,x_header_rec.organization_id) ;
1420: x_header_rec.inventory_item_id :=GMF_VALIDATIONS_PVT.Validate_Item_Number(p_header_rec.item_number, x_header_rec.organization_id);
1421: IF x_header_rec.inventory_item_id IS NULL THEN -- item_Id fetch was not successful
1422: -- Conversion failed.
1423: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1424: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_NO');

Line 1463: IF GMF_VALIDATIONS_PVT.Validate_Lot_Cost_type_id(p_header_rec.cost_type_id) THEN

1459: --validate cost type id
1460: -- cost type id should be standard or actual cost type because this API is for Standard and actual cost
1461: -- overheads only. So Call Validate_Lot_Cost_type_id to verify the cost type is lot cost type or not.
1462: -- If it is lot cost type id then log error message as invalid cost type
1463: IF GMF_VALIDATIONS_PVT.Validate_Lot_Cost_type_id(p_header_rec.cost_type_id) THEN
1464: add_header_to_error_stack(p_header_rec);
1465: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_COST_TYPE_ID');
1466: FND_MESSAGE.SET_TOKEN('COST_TYPE_ID',p_header_rec.cost_type_id);
1467: FND_MSG_PUB.Add;

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

1483: IF (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level) THEN
1484: log_msg('Validating Cost type code : ' || p_header_rec.cost_mthd_code);
1485: END IF;
1486: -- Call validate cost type
1487: x_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
1488: -- call validate lot cost type.. if it is lot cost type then log an error
1489: -- because overheads will be created for actual and standard costs
1490: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);
1491: --If cost type id is null or cost type is lot cost type then log invalid cost type message

Line 1490: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);

1486: -- Call validate cost type
1487: x_header_rec.cost_Type_id := GMF_VALIDATIONS_PVT.Validate_Cost_type_Code(p_header_rec.cost_mthd_code);
1488: -- call validate lot cost type.. if it is lot cost type then log an error
1489: -- because overheads will be created for actual and standard costs
1490: l_lc_cost_type_id := GMF_VALIDATIONS_PVT.Validate_Lot_Cost_Type(p_header_rec.cost_mthd_code);
1491: --If cost type id is null or cost type is lot cost type then log invalid cost type message
1492: IF (x_header_rec.cost_Type_id IS NULL)
1493: OR (l_lc_cost_type_id IS NOT NULL ) THEN
1494: add_header_to_error_stack(p_header_rec);

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

1518: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN
1519: log_msg('validating Period Id : ' || p_header_rec.period_id);
1520: END IF;
1521: -- validate period id
1522: IF NOT GMF_VALIDATIONS_PVT.Validate_period_id(p_header_rec.period_id)
1523: THEN
1524: add_header_to_error_stack(p_header_rec);
1525: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_PERIOD_ID');
1526: FND_MESSAGE.SET_TOKEN('PERIOD_ID',p_header_rec.period_id);

Line 1554: 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);

1550:
1551: x_header_rec.cost_type_id := nvl(p_header_rec.cost_type_id,x_header_rec.cost_type_id) ;
1552: x_header_rec.organization_id := nvl(p_header_rec.organization_id,x_header_rec.organization_id) ;
1553:
1554: 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);
1555: IF x_header_rec.period_id IS NULL THEN
1556: add_header_to_error_stack(p_header_rec);
1557: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CLDR_PERIOD');
1558: FND_MESSAGE.SET_TOKEN('CALENDAR_CODE',p_header_rec.calendar_code);

Line 1717: GMF_VALIDATIONS_PVT.Validate_Resource(l_resources, l_resource_uom, l_resource_uom_class) ;

1713: FND_MSG_PUB.Add;
1714: RAISE e_brdn_dtl;
1715: END;
1716:
1717: GMF_VALIDATIONS_PVT.Validate_Resource(l_resources, l_resource_uom, l_resource_uom_class) ;
1718:
1719: IF (l_resource_uom IS NULL) OR (l_resource_uom_class IS NULL) THEN
1720: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1721: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_RESOURCES');

Line 1742: GMF_VALIDATIONS_PVT.Validate_Resource(l_resources, l_resource_uom, l_resource_uom_class) ;

1738: END IF;
1739:
1740: l_resources := p_dtl_tbl(i).resources;
1741:
1742: GMF_VALIDATIONS_PVT.Validate_Resource(l_resources, l_resource_uom, l_resource_uom_class) ;
1743: IF (l_resource_uom IS NULL) OR (l_resource_uom_class IS NULL) THEN
1744: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1745: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_RESOURCES');
1746: FND_MESSAGE.SET_TOKEN('RESOURCES',p_dtl_tbl(i).resources);

Line 1772: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_dtl_tbl(i).cost_cmpntcls_id,l_cost_cmpntcls_code,l_usage_ind);

1768: p_dtl_tbl(i).cost_cmpntcls_id);
1769: END IF;
1770:
1771: -- validate CmpntCls Id
1772: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Id (p_dtl_tbl(i).cost_cmpntcls_id,l_cost_cmpntcls_code,l_usage_ind);
1773: IF l_usage_ind IS NULL THEN
1774: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1775: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_CMPNTCLS_ID');
1776: FND_MESSAGE.SET_TOKEN('CMPNTCLS_ID',p_dtl_tbl(i).cost_cmpntcls_id);

Line 1809: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (

1805: p_dtl_tbl(i).cost_cmpntcls_code);
1806:
1807: END IF;
1808: -- Convert value into ID.
1809: GMF_VALIDATIONS_PVT.Validate_Cost_Cmpntcls_Code (
1810: p_dtl_tbl(i).cost_cmpntcls_code,
1811: l_cost_cmpntcls_id,
1812: l_usage_ind
1813: ) ;

Line 1849: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_dtl_tbl(i).cost_analysis_code)

1845:
1846: IF FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW >= G_Debug_Level THEN -- Bug 2659435
1847: log_msg('validating analysis_code('||i||') : ' || p_dtl_tbl(i).cost_analysis_code);
1848: END IF;
1849: IF NOT GMF_VALIDATIONS_PVT.Validate_Analysis_Code(p_dtl_tbl(i).cost_analysis_code)
1850: THEN
1851: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1852: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ANALYSIS_CODE');
1853: FND_MESSAGE.SET_TOKEN('ANALYSIS_CODE',p_dtl_tbl(i).cost_analysis_code);

Line 1991: IF NOT GMF_VALIDATIONS_PVT.Validate_Usage_Uom(p_dtl_tbl(i).item_uom) THEN

1987: IF (p_dtl_tbl(i).item_uom <> FND_API.G_MISS_CHAR) AND
1988: (p_dtl_tbl(i).item_uom IS NOT NULL) THEN
1989:
1990: l_item_uom := p_dtl_tbl(i).item_uom; -- Bug 2681243
1991: IF NOT GMF_VALIDATIONS_PVT.Validate_Usage_Uom(p_dtl_tbl(i).item_uom) THEN
1992: add_header_to_error_stack(p_header_rec); -- Bug 2659435
1993: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_ITEM_UM');
1994: FND_MESSAGE.SET_TOKEN('ITEM_UOM',p_dtl_tbl(i).item_uom);
1995: FND_MSG_PUB.Add;

Line 2105: GMF_VALIDATIONS_PVT.Validate_Usage_Uom(p_dtl_tbl(i).burden_uom, l_burden_uom_class) ;

2101: IF (p_dtl_tbl(i).burden_uom <> FND_API.G_MISS_CHAR) AND
2102: (p_dtl_tbl(i).burden_uom IS NOT NULL) THEN
2103:
2104: l_burden_uom := p_dtl_tbl(i).burden_uom; -- Bug 2681243
2105: GMF_VALIDATIONS_PVT.Validate_Usage_Uom(p_dtl_tbl(i).burden_uom, l_burden_uom_class) ;
2106: IF l_burden_uom_class IS NULL THEN
2107: add_header_to_error_stack(p_header_rec); -- Bug 2659435
2108: FND_MESSAGE.SET_NAME('GMF','GMF_API_INVALID_BURDEN_UM');
2109: FND_MESSAGE.SET_TOKEN('OVERHEAD_UM',p_dtl_tbl(i).burden_uom);