926: l_api_version := 1.0;
927: l_init_msg_list := fnd_api.g_false;
928: l_commit := fnd_api.g_false;
929:
930: INV_LOT_API_PUB.validate_child_lot (
931: x_return_status => l_return_status
932: , x_msg_count => l_msg_count
933: , x_msg_data => l_msg_data
934: , p_api_version => l_api_version
941: ) ;
942:
943: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
944: FND_MESSAGE.SET_NAME('INV','INV_PROGRAM_ERROR');
945: FND_MESSAGE.SET_TOKEN('PGM_NAME','INV_LOT_API_PUB.VALIDATE_CHILD_LOT');
946: fnd_msg_pub.ADD;
947: RAISE fnd_api.g_exc_unexpected_error;
948: END IF;
949:
1381: l_row_id := NULL;
1382: -- Spr_Debug('2 '|| l_in_lot_rec.lot_number );
1383: -- Spr_Debug('2 .5 '|| l_lot_count ) ;
1384: IF l_lot_count = 0 THEN
1385: INV_LOT_API_PUB.Create_Inv_lot(
1386: x_return_status => l_return_status
1387: , x_msg_count => l_msg_count
1388: , x_msg_data => l_msg_data
1389: , x_lot_rec => x_lot_rec