Some attributes on the
quote/sales order are dependent upon the value of other attributes on the same record.
If an attribute is changed, either by the user or by the system, any other attribute
that is dependent on it will be cleared and then re-defaulted.
The dependencies package - OE_Dependencies (file: $ONT_TOP/patch/115/sql/OEXUDEPB.pls)
provides a list of all the dependent attributes on the Ship To Address.
In order to disable the existing dependencies that we
do not need, we need to add code in a simple API hook - package OE_Dependencies_Extn
(the file name is $ONT_TOP/patch/115/sql/OEXEDEPB.pls).
Following is a sample code to extend OE_Dependencies_Extn custom API hook:-
--------------------------------------------------------------------
CREATE OR REPLACE PACKAGE BODY OE_Dependencies_Extn
AS
/* $Header: OEXEDEPB.pls 120.1 RRRR/MM/DD 11:33:12 $ */
-- Global constant holding the package name
G_PKG_NAME CONSTANT VARCHAR2 (30) := 'OE_Dependencies_Extn';
PROCEDURE Load_Entity_Attributes (
p_entity_code IN VARCHAR2,
x_extn_dep_tbl OUT NOCOPY Dep_Tbl_Type)
IS
l_index NUMBER := 0;
--
l_debug_level CONSTANT NUMBER := oe_debug_pub.g_debug_level;
--
BEGIN
IF p_entity_code = OE_GLOBALS.G_ENTITY_HEADER
THEN
--Code for Disabling dependency of Invoice To on Ship To
x_extn_dep_tbl (l_index).source_attribute :=
OE_HEADER_UTIL.G_ORDER_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_HEADER_UTIL.G_SHIP_FROM_ORG;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute :=
OE_HEADER_UTIL.G_ORDER_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_HEADER_UTIL.G_FOB_POINT;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
ELSIF p_entity_code = OE_GLOBALS.G_ENTITY_LINE
THEN
--Code for Disabling dependency of Invoice To on Ship To
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_SHIP_FROM_ORG;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_FOB_POINT;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_SUBINVENTORY;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
END IF;
oe_debug_pub.add ('Exit OE_Dependencies_Extn.LOAD_ENTITY_ATTRIBUTES',
1);
EXCEPTION
WHEN OTHERS
THEN
IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
THEN
OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME, 'Load_Entity_Attributes');
END IF;
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
END Load_Entity_Attributes;
END OE_Dependencies_Extn;
--------------------------------------------------------------------
AS
/* $Header: OEXEDEPB.pls 120.1 RRRR/MM/DD 11:33:12 $ */
-- Global constant holding the package name
G_PKG_NAME CONSTANT VARCHAR2 (30) := 'OE_Dependencies_Extn';
PROCEDURE Load_Entity_Attributes (
p_entity_code IN VARCHAR2,
x_extn_dep_tbl OUT NOCOPY Dep_Tbl_Type)
IS
l_index NUMBER := 0;
--
l_debug_level CONSTANT NUMBER := oe_debug_pub.g_debug_level;
--
BEGIN
IF p_entity_code = OE_GLOBALS.G_ENTITY_HEADER
THEN
--Code for Disabling dependency of Invoice To on Ship To
x_extn_dep_tbl (l_index).source_attribute :=
OE_HEADER_UTIL.G_ORDER_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_HEADER_UTIL.G_SHIP_FROM_ORG;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute :=
OE_HEADER_UTIL.G_ORDER_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_HEADER_UTIL.G_FOB_POINT;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
ELSIF p_entity_code = OE_GLOBALS.G_ENTITY_LINE
THEN
--Code for Disabling dependency of Invoice To on Ship To
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_SHIP_FROM_ORG;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_FOB_POINT;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
x_extn_dep_tbl (l_index).source_attribute := OE_LINE_UTIL.G_LINE_TYPE;
x_extn_dep_tbl (l_index).dependent_attribute :=
OE_LINE_UTIL.G_SUBINVENTORY;
x_extn_dep_tbl (l_index).enabled_flag := 'N';
l_index := l_index + 1;
END IF;
oe_debug_pub.add ('Exit OE_Dependencies_Extn.LOAD_ENTITY_ATTRIBUTES',
1);
EXCEPTION
WHEN OTHERS
THEN
IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
THEN
OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME, 'Load_Entity_Attributes');
END IF;
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
END Load_Entity_Attributes;
END OE_Dependencies_Extn;
--------------------------------------------------------------------
Oracle Ebs Pro(For Oracle Ebs Professionals): How To Extend Oe_Dependencies_Extn - Oexudepb.Pls Api Hook >>>>> Download Now
ReplyDelete>>>>> Download Full
Oracle Ebs Pro(For Oracle Ebs Professionals): How To Extend Oe_Dependencies_Extn - Oexudepb.Pls Api Hook >>>>> Download LINK
>>>>> Download Now
Oracle Ebs Pro(For Oracle Ebs Professionals): How To Extend Oe_Dependencies_Extn - Oexudepb.Pls Api Hook >>>>> Download Full
>>>>> Download LINK eE