DBA Data[Home] [Help]

APPS.OKL_SUB_PVT dependencies on FND_MSG_PUB

Line 34: last_msg_idx INTEGER := FND_MSG_PUB.COUNT_MSG;

30: px_error_rec IN OUT NOCOPY OKL_API.ERROR_REC_TYPE,
31: px_error_tbl IN OUT NOCOPY OKL_API.ERROR_TBL_TYPE) IS
32:
33: j INTEGER := NVL(px_error_tbl.LAST, 0) + 1;
34: last_msg_idx INTEGER := FND_MSG_PUB.COUNT_MSG;
35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;
36: BEGIN
37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before
38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the

Line 35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;

31: px_error_tbl IN OUT NOCOPY OKL_API.ERROR_TBL_TYPE) IS
32:
33: j INTEGER := NVL(px_error_tbl.LAST, 0) + 1;
34: last_msg_idx INTEGER := FND_MSG_PUB.COUNT_MSG;
35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;
36: BEGIN
37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before
38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the
39: -- message stack gets set to 1. This makes sense until we call FND_MSG_PUB.GET which

Line 37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before

33: j INTEGER := NVL(px_error_tbl.LAST, 0) + 1;
34: last_msg_idx INTEGER := FND_MSG_PUB.COUNT_MSG;
35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;
36: BEGIN
37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before
38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the
39: -- message stack gets set to 1. This makes sense until we call FND_MSG_PUB.GET which
40: -- automatically increments the index by 1, (making it 2), however, when the GET function
41: -- attempts to pull message 2, we get a NO_DATA_FOUND exception because there isn't any

Line 38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the

34: last_msg_idx INTEGER := FND_MSG_PUB.COUNT_MSG;
35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;
36: BEGIN
37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before
38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the
39: -- message stack gets set to 1. This makes sense until we call FND_MSG_PUB.GET which
40: -- automatically increments the index by 1, (making it 2), however, when the GET function
41: -- attempts to pull message 2, we get a NO_DATA_FOUND exception because there isn't any
42: -- message 2. To circumvent this problem, check the amount of messages and compensate.

Line 39: -- message stack gets set to 1. This makes sense until we call FND_MSG_PUB.GET which

35: l_msg_idx INTEGER := FND_MSG_PUB.G_NEXT;
36: BEGIN
37: -- FND_MSG_PUB has a small error in it. If we call FND_MSG_PUB.COUNT_AND_GET before
38: -- we call FND_MSG_PUB.GET, the variable FND_MSG_PUB uses to control the index of the
39: -- message stack gets set to 1. This makes sense until we call FND_MSG_PUB.GET which
40: -- automatically increments the index by 1, (making it 2), however, when the GET function
41: -- attempts to pull message 2, we get a NO_DATA_FOUND exception because there isn't any
42: -- message 2. To circumvent this problem, check the amount of messages and compensate.
43: -- Again, this error only occurs when 1 message is on the stack because COUNT_AND_GET

Line 46: l_msg_idx := FND_MSG_PUB.G_FIRST;

42: -- message 2. To circumvent this problem, check the amount of messages and compensate.
43: -- Again, this error only occurs when 1 message is on the stack because COUNT_AND_GET
44: -- will only update the index variable when 1 and only 1 message is on the stack.
45: IF (last_msg_idx = 1) THEN
46: l_msg_idx := FND_MSG_PUB.G_FIRST;
47: END IF;
48: LOOP
49: fnd_msg_pub.get(
50: p_msg_index => l_msg_idx,

Line 49: fnd_msg_pub.get(

45: IF (last_msg_idx = 1) THEN
46: l_msg_idx := FND_MSG_PUB.G_FIRST;
47: END IF;
48: LOOP
49: fnd_msg_pub.get(
50: p_msg_index => l_msg_idx,
51: p_encoded => fnd_api.g_false,
52: p_data => px_error_rec.msg_data,
53: p_msg_index_out => px_error_rec.msg_count);