1 PACKAGE BODY gl_movemerge_hook_pkg AS
2 /* $Header: glummhkb.pls 120.3 2005/05/05 01:40:49 kvora ship $ */
3
4 --
5 -- PUBLIC FUNCTIONS
6 --
7
8 --
9 -- FUNCTION
10 -- pre_validation_hook
11 -- Purpose
12 -- This procedure is called before or after the creation of any
13 -- new code combinations depending on the 'event' that was passed in.
14 -- If you need to use this hook, please add a call to your own
15 -- package before the return statement. Please do NOT commit
16 -- your changes in your package.
17 -- Returns
18 -- TRUE - upon success (allows Move/Merge to continue)
19 -- FALSE - upon failure (causes Move/Merge to abort and display the
20 -- error in errbuf)
21 -- History
22 -- 02-MAY-97 W. Wong Created
23 -- Arguments
24 -- mm_req_id Move/Merge request id
25 -- mm_mode Mode of the Move/Merge program
26 -- event PRE_CC_CREATION or POST_CC_CREATION
27 -- errbuf Buffer to hold error message
28 -- Example
29 -- gl_movemerge_hook_pkg.pre_validation_hook(2, 100, errbuf);
30 -- Notes
31 --
32 FUNCTION pre_validation_hook(mm_req_id IN NUMBER,
33 mm_mode IN VARCHAR2,
34 event IN VARCHAR2,
35 errbuf IN OUT NOCOPY VARCHAR2) RETURN BOOLEAN IS
36 BEGIN
37 -- Please put your function call here. Make it the following format:
38 -- IF (NOT dummy(mm_req_id, mode, event, errbuf)) THEN
39 -- RETURN(FALSE);
40 -- END IF;
41
42 RETURN( TRUE );
43 END pre_validation_hook;
44
45 END gl_movemerge_hook_pkg;