DBA Data[Home] [Help]

APPS.AMS_ACTMETRIC_PVT dependencies on GL_CURRENCY_API

Line 1329: WHEN GL_CURRENCY_API.NO_RATE THEN

1325:
1326: END IF; -- IF l_met_det_rec.metric_calculation_type = 'MANUAL'
1327:
1328: /*EXCEPTION
1329: WHEN GL_CURRENCY_API.NO_RATE THEN
1330: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR) THEN
1331: -- No rate exist for for given conversion date and type between
1332: -- transaction currency and functional currency
1333: FND_MESSAGE.Set_Name('AMS', 'AMS_METR_NO_RATE');

Line 1340: WHEN GL_CURRENCY_API.INVALID_CURRENCY THEN

1336: x_return_status := FND_API.G_RET_STS_ERROR;
1337:
1338: -- If any error happens abort API.
1339: RETURN;
1340: WHEN GL_CURRENCY_API.INVALID_CURRENCY THEN
1341: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR) THEN
1342: -- Atleast One of the two Currencies specified is invalid
1343: FND_MESSAGE.Set_Name('AMS', 'AMS_METR_INVALID_CURR');
1344: FND_MSG_PUB.Add;

Line 5627: -- 10-JUL-01 dmvincen Transfered here from GL_CURRENCY_API

5623: -- Also set the x_invalid_currency flag if the given currency is invalid.
5624: --
5625: -- History
5626: -- 15-JUL-97 W Wong Created
5627: -- 10-JUL-01 dmvincen Transfered here from GL_CURRENCY_API
5628: --
5629: -- Arguments
5630: -- x_currency Currency to be checked
5631: -- x_eff_date Effecitve date

Line 5651: RAISE Gl_Currency_Api.INVALID_CURRENCY;

5647: WHERE currency_code = x_currency;
5648:
5649: EXCEPTION
5650: WHEN NO_DATA_FOUND THEN
5651: RAISE Gl_Currency_Api.INVALID_CURRENCY;
5652:
5653: END get_info;
5654:
5655: ---------------------------------------------------------------------

Line 5659: -- This procedure is copied from GL_CURRENCY_API so that rounding can be

5655: ---------------------------------------------------------------------
5656: -- PROCEDURE
5657: -- Convert_Currency
5658: -- DESCRIPTION
5659: -- This procedure is copied from GL_CURRENCY_API so that rounding can be
5660: -- controlled. The functional currency need not be rounded because
5661: -- precision will be lost when converting to other currencies.
5662: -- The displayed currencies must be rounded.
5663: -- NOTE

Line 5697: -- This procedure is copied from GL_CURRENCY_API so that rounding can be

5693: ---------------------------------------------------------------------
5694: -- PROCEDURE
5695: -- Convert_Currency2
5696: -- DESCRIPTION
5697: -- This procedure is copied from GL_CURRENCY_API so that rounding can be
5698: -- controlled. The functional currency need not be rounded because
5699: -- precision will be lost when converting to other currencies.
5700: -- The displayed currencies must be rounded.
5701: -- NOTE

Line 5763: Gl_Currency_Api.get_closest_triangulation_rate(

5759: --
5760: -- Find out the conversion rate using the given conversion type
5761: -- and conversion date.
5762: --
5763: Gl_Currency_Api.get_closest_triangulation_rate(
5764: p_from_currency,
5765: p_to_currency,
5766: p_conv_date,
5767: l_conversion_type,

Line 5784: WHEN Gl_Currency_Api.NO_RATE THEN

5780: x_to_amount2 := ROUND( x_to_amount2 / to_mau ) * to_mau;
5781: END IF;
5782:
5783: EXCEPTION
5784: WHEN Gl_Currency_Api.NO_RATE THEN
5785: IF Fnd_Msg_Pub.Check_Msg_Level (Fnd_Msg_Pub.G_MSG_LVL_ERROR) THEN
5786: Fnd_Message.Set_Name ('AMS', 'AMS_NO_RATE');
5787: Fnd_Message.Set_Token ('CURRENCY_FROM', p_from_currency);
5788: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);

Line 5792: WHEN Gl_Currency_Api.INVALID_CURRENCY THEN

5788: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);
5789: Fnd_Msg_Pub.ADD;
5790: END IF;
5791: x_return_status := Fnd_Api.G_RET_STS_ERROR;
5792: WHEN Gl_Currency_Api.INVALID_CURRENCY THEN
5793: IF Fnd_Msg_Pub.Check_Msg_Level (Fnd_Msg_Pub.G_MSG_LVL_ERROR) THEN
5794: Fnd_Message.Set_Name ('AMS', 'AMS_INVALID_CURR');
5795: Fnd_Message.Set_Token ('CURRENCY_FROM', p_from_currency);
5796: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);

Line 5806: -- This procedure is copied from GL_CURRENCY_API so that rounding can be

5802: ---------------------------------------------------------------------
5803: -- PROCEDURE
5804: -- Convert_Currency_Vector
5805: -- DESCRIPTION
5806: -- This procedure is copied from GL_CURRENCY_API so that rounding can be
5807: -- controlled. The functional currency need not be rounded because
5808: -- precision will be lost when converting to other currencies.
5809: -- The displayed currencies must be rounded.
5810: -- Supports converting a vector of currency amount.

Line 5850: Gl_Currency_Api.get_closest_triangulation_rate(

5846: --
5847: -- Find out the conversion rate using the given conversion type
5848: -- and conversion date.
5849: --
5850: Gl_Currency_Api.get_closest_triangulation_rate(
5851: p_from_currency,
5852: p_to_currency,
5853: p_conv_date,
5854: l_conversion_type,

Line 5876: WHEN Gl_Currency_Api.NO_RATE THEN

5872: l_index := p_amounts.NEXT(l_index);
5873: END LOOP;
5874:
5875: EXCEPTION
5876: WHEN Gl_Currency_Api.NO_RATE THEN
5877: IF Fnd_Msg_Pub.Check_Msg_Level (Fnd_Msg_Pub.G_MSG_LVL_ERROR) THEN
5878: Fnd_Message.Set_Name ('AMS', 'AMS_NO_RATE');
5879: Fnd_Message.Set_Token ('CURRENCY_FROM', p_from_currency);
5880: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);

Line 5884: WHEN Gl_Currency_Api.INVALID_CURRENCY THEN

5880: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);
5881: Fnd_Msg_Pub.ADD;
5882: END IF;
5883: x_return_status := Fnd_Api.G_RET_STS_ERROR;
5884: WHEN Gl_Currency_Api.INVALID_CURRENCY THEN
5885: IF Fnd_Msg_Pub.Check_Msg_Level (Fnd_Msg_Pub.G_MSG_LVL_ERROR) THEN
5886: Fnd_Message.Set_Name ('AMS', 'AMS_INVALID_CURR');
5887: Fnd_Message.Set_Token ('CURRENCY_FROM', p_from_currency);
5888: Fnd_Message.Set_Token ('CURRENCY_TO', p_to_currency);

Line 5898: -- This procedure is copied from GL_CURRENCY_API so that rounding can be

5894: ---------------------------------------------------------------------
5895: -- PROCEDURE
5896: -- Convert_Currency_Object
5897: -- DESCRIPTION
5898: -- This procedure is copied from GL_CURRENCY_API so that rounding can be
5899: -- controlled. The functional currency need not be rounded because
5900: -- precision will be lost when converting to other currencies.
5901: -- The displayed currencies must be rounded.
5902: -- Supports converting amount to transaction currency of object.