DBA Data[Home] [Help]

APPS.PA_MOAC_UTILS dependencies on MO_GLOBAL

Line 35: RETURN MO_GLOBAL.GET_OU_COUNT;

31: -- This function would return count of Operating Units a user has access to.
32: -- It would return 0 in case there is no access or initialization is not done.
33: --
34: BEGIN
35: RETURN MO_GLOBAL.GET_OU_COUNT;
36: END GET_OU_COUNT;
37:
38: -- ****************************************************************/
39: FUNCTION GET_VALID_OU

Line 46: -- This function uses MO_GLOBAL.GET_VALID_ORG(p_org_id) to get valid org_id.

42: --
43: -- This function is used to determine and get valid operating unit where Projects is implmented.
44: -- Returns ORG_ID if valid and PA is implemneted or retruns NULL if invalid or PA is not implemented.
45:
46: -- This function uses MO_GLOBAL.GET_VALID_ORG(p_org_id) to get valid org_id.
47: -- MO_GLOBAL.GET_VALID_ORG gets org_id in the following order if p_org_id IS NULL
48: -- 1. get_current_org_id
49: -- 2. get_default_org_id
50:

Line 47: -- MO_GLOBAL.GET_VALID_ORG gets org_id in the following order if p_org_id IS NULL

43: -- This function is used to determine and get valid operating unit where Projects is implmented.
44: -- Returns ORG_ID if valid and PA is implemneted or retruns NULL if invalid or PA is not implemented.
45:
46: -- This function uses MO_GLOBAL.GET_VALID_ORG(p_org_id) to get valid org_id.
47: -- MO_GLOBAL.GET_VALID_ORG gets org_id in the following order if p_org_id IS NULL
48: -- 1. get_current_org_id
49: -- 2. get_default_org_id
50:
51: -- MO_GLOBAL.GET_VALID_ORG retruns p_org_id if Valid or returns NULL if invalid .

Line 51: -- MO_GLOBAL.GET_VALID_ORG retruns p_org_id if Valid or returns NULL if invalid .

47: -- MO_GLOBAL.GET_VALID_ORG gets org_id in the following order if p_org_id IS NULL
48: -- 1. get_current_org_id
49: -- 2. get_default_org_id
50:
51: -- MO_GLOBAL.GET_VALID_ORG retruns p_org_id if Valid or returns NULL if invalid .
52: -- If p_org_id does not exist in Global table, then it would throw up error.
53: -- Before calling this function, global temp table should be populated using MO initialization routine.
54:
55: IS

Line 62: -- Replacing this call with mo_global.validate_orgid_pub_api

58:
59: BEGIN
60: l_org_id := p_org_id ;
61:
62: -- Replacing this call with mo_global.validate_orgid_pub_api
63: -- provided by MOAC team
64: -- l_org_id := MO_GLOBAL.GET_VALID_ORG(p_org_id);
65:
66: -- VALIDATE_ORGID_PUB_API will retrun either

Line 64: -- l_org_id := MO_GLOBAL.GET_VALID_ORG(p_org_id);

60: l_org_id := p_org_id ;
61:
62: -- Replacing this call with mo_global.validate_orgid_pub_api
63: -- provided by MOAC team
64: -- l_org_id := MO_GLOBAL.GET_VALID_ORG(p_org_id);
65:
66: -- VALIDATE_ORGID_PUB_API will retrun either
67: -- Success ( 'S','O','C','D') or Failure ( 'F')
68:

Line 69: mo_global.validate_orgid_pub_api( l_org_id, 'Y',l_status );

65:
66: -- VALIDATE_ORGID_PUB_API will retrun either
67: -- Success ( 'S','O','C','D') or Failure ( 'F')
68:
69: mo_global.validate_orgid_pub_api( l_org_id, 'Y',l_status );
70:
71: -- Checking if Projects is implemented or not
72:
73: If l_org_id is not null and l_status IN ( 'S','O','C','D') then

Line 126: If NVL(mo_global.get_ou_count, 0) = 0 then -- Fix for bug : 5037365

122:
123: BEGIN
124: p_return_status := 'S' ;
125: -- Conditionally doing MO intialization
126: If NVL(mo_global.get_ou_count, 0) = 0 then -- Fix for bug : 5037365
127: MO_GLOBAL.INIT(p_product_code);
128: end if ;
129:
130: If p_org_id = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM then

Line 127: MO_GLOBAL.INIT(p_product_code);

123: BEGIN
124: p_return_status := 'S' ;
125: -- Conditionally doing MO intialization
126: If NVL(mo_global.get_ou_count, 0) = 0 then -- Fix for bug : 5037365
127: MO_GLOBAL.INIT(p_product_code);
128: end if ;
129:
130: If p_org_id = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM then
131: p_org_id := FND_API.G_MISS_NUM ;

Line 149: MO_GLOBAL.SET_POLICY_CONTEXT('S',p_org_id);

145: ( p_count => p_msg_count ,
146: p_data => p_msg_data );
147: END IF;
148: else
149: MO_GLOBAL.SET_POLICY_CONTEXT('S',p_org_id);
150: END IF;
151: END MO_INIT_SET_CONTEXT;
152:
153:

Line 158: -- call to MO_GLOBAL.GET_CURRENT_ORG_ID.

154: -- **************************************************************** /
155: -- FUNCTION GET_CURRENT_ORG_ID : This function would return the ORG ID set
156: -- for the current session if the context is set to Single, for Multi-context
157: -- this function would return NULL. This function is a wrapper that makes
158: -- call to MO_GLOBAL.GET_CURRENT_ORG_ID.
159:
160: FUNCTION GET_CURRENT_ORG_ID
161: RETURN NUMBER
162: IS

Line 164: RETURN MO_GLOBAL.GET_CURRENT_ORG_ID;

160: FUNCTION GET_CURRENT_ORG_ID
161: RETURN NUMBER
162: IS
163: BEGIN
164: RETURN MO_GLOBAL.GET_CURRENT_ORG_ID;
165: END GET_CURRENT_ORG_ID;
166:
167: -- ***********************************************************************
168:

Line 178: -- This function is a wrapper that makes call to MO_GLOBAL.GET_OU_NAME

174: IS
175: --
176: -- This function would return OU Name for the ORG_ID passed.
177: -- If the ORG_ID is NULL or invalid, it would return NULL
178: -- This function is a wrapper that makes call to MO_GLOBAL.GET_OU_NAME
179: --
180: BEGIN
181: RETURN MO_GLOBAL.GET_OU_NAME(p_org_id);
182: END GET_OU_NAME;

Line 181: RETURN MO_GLOBAL.GET_OU_NAME(p_org_id);

177: -- If the ORG_ID is NULL or invalid, it would return NULL
178: -- This function is a wrapper that makes call to MO_GLOBAL.GET_OU_NAME
179: --
180: BEGIN
181: RETURN MO_GLOBAL.GET_OU_NAME(p_org_id);
182: END GET_OU_NAME;
183:
184: -- ****************************************************************/
185: PROCEDURE GET_DEFAULT_OU

Line 244: -- This procedure invokes MO Global initialization routine by passing PA as

240:
241: -- ****************************************************************/
242: PROCEDURE INITIALIZE(p_product_code VARCHAR2 DEFAULT 'PA')
243: --
244: -- This procedure invokes MO Global initialization routine by passing PA as
245: -- product short code. This procedure would populate the global temporary table with the
246: -- operating units that a user has access to.
247: --
248: IS

Line 250: MO_GLOBAL.INIT(p_product_code);

246: -- operating units that a user has access to.
247: --
248: IS
249: BEGIN
250: MO_GLOBAL.INIT(p_product_code);
251: END INITIALIZE;
252: -- ****************************************************************/
253: PROCEDURE SET_POLICY_CONTEXT
254: (

Line 266: MO_GLOBAL.SET_POLICY_CONTEXT('S',p_org_id);

262: -- is set to Multiple and then current org_id would be set to NULL.
263: --
264: BEGIN
265: IF p_access_mode ='S' THEN
266: MO_GLOBAL.SET_POLICY_CONTEXT('S',p_org_id);
267: ELSIF p_access_mode = 'M' THEN
268: MO_GLOBAL.SET_POLICY_CONTEXT('M',NULL);
269: END IF;
270: END SET_POLICY_CONTEXT;

Line 268: MO_GLOBAL.SET_POLICY_CONTEXT('M',NULL);

264: BEGIN
265: IF p_access_mode ='S' THEN
266: MO_GLOBAL.SET_POLICY_CONTEXT('S',p_org_id);
267: ELSIF p_access_mode = 'M' THEN
268: MO_GLOBAL.SET_POLICY_CONTEXT('M',NULL);
269: END IF;
270: END SET_POLICY_CONTEXT;
271:
272: -- ****************************************************************/

Line 285: l_access := MO_GLOBAL.CHECK_ACCESS(p_org_id);

281: --
282: IS
283: l_access VARCHAR(1) ;
284: BEGIN
285: l_access := MO_GLOBAL.CHECK_ACCESS(p_org_id);
286: If l_access = 'N' then
287: RETURN l_access ;
288: else
289: if p_product_code = 'PA' then