DBA Data[Home] [Help]

PACKAGE: APPS.AS_OPP_COPY_PVT

Source


1 PACKAGE AS_OPP_COPY_PVT AUTHID CURRENT_USER as
2 /* $Header: asxvlcps.pls 115.8 2002/12/10 19:33:41 kichan ship $ */
3 -- Start of Comments
4 -- Package name     : AS_OPP_COPY_PVT
5 -- Purpose          :
6 -- History          : 09-OCT-00 	XDING  	Created
7 -- NOTE             :
8 -- End of Comments-- Start of Comments
9 --
10 --    API name:     Copy_Opportunity
11 --
12 --    Function:     To copy an existing opportunity header with/without
13 --		    the salesteam, opportunity lines, sales_credits, contacts
14 --		    and competitors
15 --
16 --    Note:	    1. If the p_sales_credits = FND_API.G_TRUE then
17 --                     the p_opp_lines must be FND_API.G_TRUE.
18 -- 		    2. If the p_copy_salesteam is FALSE the salesteam
19 --                     will be defaulted as in creating a new opportunity.
20 --		    3. If the p_copy_sales_credit is FALSE then the
21 --                     the sales credits will be defaulted 100% to the
22 --                     logon salesforce.
23 --
24 --
25 --    Parameter specifications:
26 --    	p_lead_id 		- which opportunity you want to copy from
27 --      p_description           - name of opportunity
28 --      p_copy_salesteam        - whether to copy the sales team
29 --      p_copy_opp_lines	- whether to copy the opportunity lines
30 --      p_copy_lead_contacts    - whether to copy the opportunity contacts
31 --	p_copy_lead_competitors - whether to copy the opportunity competitors
32 --      p_copy_sales_credits 	- whether to copy the sales credits
33 --
34 -- End of Comments
35 
36 PROCEDURE Copy_Opportunity
37 (   p_api_version_number            IN    NUMBER,
38     p_init_msg_list                 IN    VARCHAR2  	:=FND_API.G_FALSE,
39     p_commit                        IN    VARCHAR2   	:= FND_API.G_FALSE,
40     p_validation_level      	    IN    NUMBER   	:= FND_API.G_VALID_LEVEL_FULL,
41     p_lead_id                       IN    NUMBER,
42     p_description                   IN    VARCHAR2,
43     p_copy_salesteam		    IN    VARCHAR2	:=FND_API.G_FALSE,
44     p_copy_opp_lines		    IN    VARCHAR2	:=FND_API.G_FALSE,
45     p_copy_lead_contacts     	    IN    VARCHAR2	:=FND_API.G_FALSE,
46     p_copy_lead_competitors         IN    VARCHAR2	:=FND_API.G_FALSE,
47     p_copy_sales_credits	    IN    VARCHAR2	:=FND_API.G_FALSE,
48     p_copy_methodology	    	    IN    VARCHAR2     	:=FND_API.G_FALSE,
49     p_new_customer_id		    IN 	  NUMBER,
50     p_new_address_id		    IN    NUMBER,
51     p_check_access_flag     	    IN 	  VARCHAR2,
52     p_admin_flag	    	    IN 	  VARCHAR2,
53     p_admin_group_id	    	    IN	  NUMBER,
54     p_identity_salesforce_id 	    IN	  NUMBER,
55     p_salesgroup_id		    IN    NUMBER        := NULL,
56     p_partner_cont_party_id	    IN    NUMBER,
57     p_profile_tbl	    	    IN	  AS_UTILITY_PUB.Profile_Tbl_Type
58 					  :=AS_UTILITY_PUB.G_MISS_PROFILE_TBL,
59     x_return_status                 OUT NOCOPY   VARCHAR2,
60     x_msg_count                     OUT NOCOPY   NUMBER,
61     x_msg_data                      OUT NOCOPY   VARCHAR2,
62     x_lead_id                       OUT NOCOPY   NUMBER
63 );
64 
65 End AS_OPP_COPY_PVT;