DBA Data[Home] [Help]

APPS.HR_MESSAGE dependencies on FND_MESSAGE

Line 70: -- This is the main procedure, which makes calls to the FND_MESSAGE package

66: end get_separator_string;
67:
68: procedure provide_error is
69:
70: -- This is the main procedure, which makes calls to the FND_MESSAGE package
71: -- to populate the global record structure with the name of the last message
72: -- application, and the last message name. The other data supplied in
73: -- the encoded error message string is token information, and is not used
74: -- until a call to get_token_value is made.

Line 92: l_encoded_error := fnd_message.get_encoded;

88: if ((g_error_rec.sqlcode = -20001) or (g_error_rec.sqlcode = -20002)) then
89:
90: -- An error has been raised by APPS code - populate other global variables
91:
92: l_encoded_error := fnd_message.get_encoded;
93: g_error_rec.encoded_error_text := l_encoded_error;
94:
95: if (l_encoded_error is not null) then
96:

Line 97: -- FND MESSAGE still knows which message we are talking about

93: g_error_rec.encoded_error_text := l_encoded_error;
94:
95: if (l_encoded_error is not null) then
96:
97: -- FND MESSAGE still knows which message we are talking about
98: -- Reset the message, so that the FND_MESSAGE state is not altered by
99: -- this procedure
100:
101: fnd_message.set_encoded(l_encoded_error);

Line 98: -- Reset the message, so that the FND_MESSAGE state is not altered by

94:
95: if (l_encoded_error is not null) then
96:
97: -- FND MESSAGE still knows which message we are talking about
98: -- Reset the message, so that the FND_MESSAGE state is not altered by
99: -- this procedure
100:
101: fnd_message.set_encoded(l_encoded_error);
102:

Line 101: fnd_message.set_encoded(l_encoded_error);

97: -- FND MESSAGE still knows which message we are talking about
98: -- Reset the message, so that the FND_MESSAGE state is not altered by
99: -- this procedure
100:
101: fnd_message.set_encoded(l_encoded_error);
102:
103: -- Now decode the encoded error message into required components
104:
105: fnd_message.parse_encoded(encoded_message => l_encoded_error,

Line 105: fnd_message.parse_encoded(encoded_message => l_encoded_error,

101: fnd_message.set_encoded(l_encoded_error);
102:
103: -- Now decode the encoded error message into required components
104:
105: fnd_message.parse_encoded(encoded_message => l_encoded_error,
106: app_short_name => g_error_rec.last_message_app,
107: message_name => g_error_rec.last_message_name);
108:
109: g_error_rec.last_message_data := '';

Line 113: -- We can't find anything out from FND_MESSAGE. Perhaps the

109: g_error_rec.last_message_data := '';
110:
111: else
112: --
113: -- We can't find anything out from FND_MESSAGE. Perhaps the
114: -- message text has been retrieved, or some other call has
115: -- reset the global state. Treat as non-APP error.
116: --
117: g_error_rec.last_message_name := '';

Line 143: -- format as the encoded string in FND_MESSAGE. I.e. it should

139: -- This procedure assumes that the calling procedure already
140: -- has knowledge of the encoded error message (e.g.
141: -- as in the case of the flexfield server validation
142: -- routines.). The string passed in must be in the same
143: -- format as the encoded string in FND_MESSAGE. I.e. it should
144: -- have been retrieved with a call to FND_MESSAGE.get_encoded.
145:
146: begin
147:

Line 144: -- have been retrieved with a call to FND_MESSAGE.get_encoded.

140: -- has knowledge of the encoded error message (e.g.
141: -- as in the case of the flexfield server validation
142: -- routines.). The string passed in must be in the same
143: -- format as the encoded string in FND_MESSAGE. I.e. it should
144: -- have been retrieved with a call to FND_MESSAGE.get_encoded.
145:
146: begin
147:
148: -- Use the FND routine to parse the encoded error message into

Line 151: -- Do not reset the error message on the FND_MESSAGE stack, since

147:
148: -- Use the FND routine to parse the encoded error message into
149: -- the global variables to make them available to the APIS,
150: -- forms, other packages etc. in a way consistent with provide_error
151: -- Do not reset the error message on the FND_MESSAGE stack, since
152: -- this would alter the state of that package.
153:
154: fnd_message.parse_encoded(encoded_message => p_encoded_error,
155: app_short_name => g_error_rec.last_message_app,

Line 154: fnd_message.parse_encoded(encoded_message => p_encoded_error,

150: -- forms, other packages etc. in a way consistent with provide_error
151: -- Do not reset the error message on the FND_MESSAGE stack, since
152: -- this would alter the state of that package.
153:
154: fnd_message.parse_encoded(encoded_message => p_encoded_error,
155: app_short_name => g_error_rec.last_message_app,
156: message_name => g_error_rec.last_message_name);
157:
158: g_error_rec.encoded_error_text := p_encoded_error;

Line 361: -- This message is not known about inside FND_MESSAGE, either the FND_MESSAGE

357: begin
358:
359: if (g_error_rec.encoded_error_text is null) then
360:
361: -- This message is not known about inside FND_MESSAGE, either the FND_MESSAGE
362: -- globals have been reset - in which case, no message text can be retrieved,
363: -- or this was not an APP error. In either case, return the SQL error message
364: -- as this is the only place we can obtain the error message
365:

Line 371: -- the message text straight from FND_MESSAGE, and reset the FND_MESSAGE

367:
368: else
369:
370: -- The message text has not been asked for by any application yet - we can get
371: -- the message text straight from FND_MESSAGE, and reset the FND_MESSAGE
372: -- package state by reinitiating the message, so that this call does not disturb
373: -- the global environment
374:
375: l_message_text := FND_MESSAGE.get;

Line 375: l_message_text := FND_MESSAGE.get;

371: -- the message text straight from FND_MESSAGE, and reset the FND_MESSAGE
372: -- package state by reinitiating the message, so that this call does not disturb
373: -- the global environment
374:
375: l_message_text := FND_MESSAGE.get;
376:
377: FND_MESSAGE.set_encoded(ENCODED_MESSAGE => g_error_rec.encoded_error_text);
378:
379: return l_message_text;

Line 377: FND_MESSAGE.set_encoded(ENCODED_MESSAGE => g_error_rec.encoded_error_text);

373: -- the global environment
374:
375: l_message_text := FND_MESSAGE.get;
376:
377: FND_MESSAGE.set_encoded(ENCODED_MESSAGE => g_error_rec.encoded_error_text);
378:
379: return l_message_text;
380:
381: end if;