DBA Data[Home] [Help]

APPS.GMD_FORMULA_DETAIL_PUB dependencies on GMDFMVAL_PUB

Line 5: pRecord_in GMDFMVAL_PUB.formula_info_in;

1: PACKAGE BODY GMD_FORMULA_DETAIL_PUB AS
2: /* $Header: GMDPFMDB.pls 120.8.12010000.4 2008/10/16 13:14:09 kannavar ship $ */
3:
4: G_PKG_NAME CONSTANT VARCHAR2(30) := 'GMD_FORMULA_DETAIL_PUB' ;
5: pRecord_in GMDFMVAL_PUB.formula_info_in;
6: pTable_out GMDFMVAL_PUB.formula_table_out;
7: lreturn VARCHAR2(1);
8:
9: --Bug 3222090, NSRIVAST 20-FEB-2004, BEGIN

Line 6: pTable_out GMDFMVAL_PUB.formula_table_out;

2: /* $Header: GMDPFMDB.pls 120.8.12010000.4 2008/10/16 13:14:09 kannavar ship $ */
3:
4: G_PKG_NAME CONSTANT VARCHAR2(30) := 'GMD_FORMULA_DETAIL_PUB' ;
5: pRecord_in GMDFMVAL_PUB.formula_info_in;
6: pTable_out GMDFMVAL_PUB.formula_table_out;
7: lreturn VARCHAR2(1);
8:
9: --Bug 3222090, NSRIVAST 20-FEB-2004, BEGIN
10: --Forward declaration.

Line 56: /* of GMDFMVAL_PUB.p_called_from_forms package */

52: /* HISTORY: */
53: /* 10-Apr-2003 P.Raghu Bug#2893682 Modified the code such that */
54: /* p_formula_detail_rec.item_no is correctly set to */
55: /* ITEM_NO TOKEN. Uncommented the assigment statement*/
56: /* of GMDFMVAL_PUB.p_called_from_forms package */
57: /* variable in Insert_FormulaDetail procedure. */
58: /* 18-Apr-2003 J. Baird Bug #2908311 Uncommented initialization of */
59: /* x_return_status */
60: /* 18-Apr-2003 J. Baird Bug #2906124 Was not setting the TO_UOM token. */

Line 126: --Set the formula validation pkg variable GMDFMVAL_PUB

122: IF FND_API.to_Boolean( p_init_msg_list ) THEN
123: FND_MSG_PUB.initialize;
124: END IF;
125:
126: --Set the formula validation pkg variable GMDFMVAL_PUB
127: --variable p_called_from_form same as that passed in.
128: --When API is called from forms the parameter p_called_from_forms is set
129: --to 'YES' and the same parameter is set to 'YES' within the validation pkg.
130: --When API is not called from forms the parameter is 'NO'.

Line 134: --is passed to the GMDFMVAL_PUB API.

130: --When API is not called from forms the parameter is 'NO'.
131:
132: --BEGIN BUG#2893682 P.Raghu
133: --Uncommenting the following statement such that the actual value
134: --is passed to the GMDFMVAL_PUB API.
135: GMDFMVAL_PUB.p_called_from_forms := p_called_from_forms;
136: --END BUG#2893682
137:
138: /* API body */

Line 135: GMDFMVAL_PUB.p_called_from_forms := p_called_from_forms;

131:
132: --BEGIN BUG#2893682 P.Raghu
133: --Uncommenting the following statement such that the actual value
134: --is passed to the GMDFMVAL_PUB API.
135: GMDFMVAL_PUB.p_called_from_forms := p_called_from_forms;
136: --END BUG#2893682
137:
138: /* API body */
139: /* 1. Does validation when not called from forms because from forms all

Line 182: GMDFMVAL_PUB.get_element(pElement_name => 'FORMULA',

178: ||x_return_status);
179: END IF;
180:
181: IF (p_formula_detail_rec.formula_id is NULL) THEN
182: GMDFMVAL_PUB.get_element(pElement_name => 'FORMULA',
183: pRecord_in => pRecord_in,
184: xTable_out => pTable_out,
185: xReturn => x_return_status);
186: IF (x_return_status <> 'S') THEN

Line 216: GMDFMVAL_PUB.get_item_id(pitem_no => p_formula_detail_rec.item_no,

212: IF (p_formula_detail_rec.inventory_item_id is NULL AND p_formula_detail_rec.item_no IS NULL) THEN
213: FND_MESSAGE.SET_NAME('GMI', 'GMI_API_ITEM_NOT_FOUND');
214: FND_MSG_PUB.Add;
215: ELSE
216: GMDFMVAL_PUB.get_item_id(pitem_no => p_formula_detail_rec.item_no,
217: pinventory_item_id => p_formula_detail_rec.inventory_item_id,
218: porganization_id => l_org_id,
219: xitem_id => l_item_id,
220: xitem_um => l_inv_uom,

Line 291: l_return_val := GMDFMVAL_PUB.detail_line_val

287: END IF;
288:
289: /* Bug No.7328802 - End */
290:
291: l_return_val := GMDFMVAL_PUB.detail_line_val
292: (l_formula_id,
293: p_formula_detail_rec.line_no,
294: p_formula_detail_rec.line_type);
295: IF (l_return_val <> 0) THEN

Line 337: GMDFMVAL_PUB.validate_insert_record (P_formula_dtl => P_formula_detail_rec,

333: done, so we can skip the validations below. */
334:
335:
336: IF (NVL(p_called_from_forms,'NO') = 'NO') THEN
337: GMDFMVAL_PUB.validate_insert_record (P_formula_dtl => P_formula_detail_rec,
338: X_formula_dtl => X_formula_detail_rec,
339: xReturn => X_return_status);
340: ELSE
341: X_formula_detail_rec := P_formula_detail_rec;

Line 683: /* Set the formula validation pkg variable GMDFMVAL_PUB */

679: THEN
680: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
681: END IF;
682:
683: /* Set the formula validation pkg variable GMDFMVAL_PUB */
684: /* variable p_called_from_form same as that passed in. */
685: /* When API is called from forms the parameter p_called_from_forms is set
686: to 'YES' and the same parameter is set to 'YES' within the validation pkg.
687: When API is not called from forms the parameter is 'NO'.

Line 690: GMDFMVAL_PUB.p_called_from_forms := p_called_from_forms;

686: to 'YES' and the same parameter is set to 'YES' within the validation pkg.
687: When API is not called from forms the parameter is 'NO'.
688: */
689:
690: GMDFMVAL_PUB.p_called_from_forms := p_called_from_forms;
691:
692: /* Initialize message list if p_init_msg_list is set to TRUE */
693: IF FND_API.to_Boolean( p_init_msg_list ) THEN
694: FND_MSG_PUB.initialize;

Line 733: GMDFMVAL_PUB.get_formula_id(p_formula_detail_rec.formula_no,

729: gmd_debug.put_line(' In Formula Detail Pub - '
730: ||' Before formula validation - '||x_return_status);
731: END IF;
732: IF (p_formula_detail_rec.formula_id is NULL) THEN
733: GMDFMVAL_PUB.get_formula_id(p_formula_detail_rec.formula_no,
734: p_formula_detail_rec.formula_vers,
735: l_formula_id, l_return_val);
736: IF (l_return_val <> 0) THEN
737: IF (p_formula_detail_rec.formula_no IS NULL) THEN

Line 795: GMDFMVAL_PUB.get_formulaline_id(p_formula_detail_rec.formulaline_id,l_return_val);

791: gmd_debug.put_line(' In Formula Detail Pub - '
792: ||' Before formulaline validation - '||x_return_status);
793: END IF;
794: IF (p_formula_detail_rec.formulaline_id IS NOT NULL) THEN /* if invalid formula no */
795: GMDFMVAL_PUB.get_formulaline_id(p_formula_detail_rec.formulaline_id,l_return_val);
796: IF (l_return_val <> 0) THEN
797: FND_MESSAGE.SET_NAME('GMD','FM_INVALID_FMLINE_ID');
798: FND_MSG_PUB.Add;
799: RAISE FND_API.G_EXC_ERROR;

Line 952: GMDFMVAL_PUB.validate_update_record (P_formula_dtl => P_formula_detail_rec,

948:
949: /* Procedure validate_formula_record for all the elements*/
950:
951: IF (NVL(p_called_from_forms,'NO') = 'NO') THEN
952: GMDFMVAL_PUB.validate_update_record (P_formula_dtl => P_formula_detail_rec,
953: X_formula_dtl => X_formula_detail_rec,
954: xReturn => X_return_status);
955: ELSE
956: X_formula_detail_rec := P_formula_detail_rec;

Line 1672: GMDFMVAL_PUB.get_formulaline_id(p_formula_detail_rec.formulaline_id,l_return_val);

1668: /* Must be passed and should exist */
1669: /* ============================ */
1670: IF (p_formula_detail_rec.formulaline_id IS NOT NULL) THEN /* if invalid formulaline no */
1671:
1672: GMDFMVAL_PUB.get_formulaline_id(p_formula_detail_rec.formulaline_id,l_return_val);
1673: IF (l_return_val <> 0) THEN
1674: FND_MESSAGE.SET_NAME('GMD','FM_MISSING_FMLINE_ID');
1675: FND_MSG_PUB.Add;
1676: RAISE FND_API.G_EXC_ERROR;