23: -- security constraints) will be evaluated for the order created by.
24: --
25: -- IMPORTANT: After calling this API and calling respective OM API
26: -- to process this update (e.g. Process_Order), you should re-set to
27: -- your original context using FND_GLOBAL.Apps_Initialize with
28: -- original user, resp,application returned by this function.
29: --
30: -- Parameters Pass p_header_id if the context should be set using
31: -- created by for the order.
80:
81: x_return_status := FND_API.G_RET_STS_SUCCESS;
82:
83: -- Return the original context values
84: x_orig_user_id := FND_GLOBAL.USER_ID;
85: x_orig_resp_id := FND_GLOBAL.RESP_ID;
86: x_orig_resp_appl_id := FND_GLOBAL.RESP_APPL_ID;
87: -- MOAC changes starts
88: IF p_line_id IS NOT NULL THEN
81: x_return_status := FND_API.G_RET_STS_SUCCESS;
82:
83: -- Return the original context values
84: x_orig_user_id := FND_GLOBAL.USER_ID;
85: x_orig_resp_id := FND_GLOBAL.RESP_ID;
86: x_orig_resp_appl_id := FND_GLOBAL.RESP_APPL_ID;
87: -- MOAC changes starts
88: IF p_line_id IS NOT NULL THEN
89: SELECT org_id
82:
83: -- Return the original context values
84: x_orig_user_id := FND_GLOBAL.USER_ID;
85: x_orig_resp_id := FND_GLOBAL.RESP_ID;
86: x_orig_resp_appl_id := FND_GLOBAL.RESP_APPL_ID;
87: -- MOAC changes starts
88: IF p_line_id IS NOT NULL THEN
89: SELECT org_id
90: INTO l_org_id
140: END IF;
141: RAISE NO_DATA_FOUND;
142: END IF;
143:
144: FND_GLOBAL.Apps_Initialize
145: (user_id => l_user_id
146: ,resp_id => l_resp_id
147: ,resp_appl_id => l_resp_appl_id);
148: