DBA Data[Home] [Help]

PACKAGE: APPS.EAM_REBUILDS_PVT

Source


1 PACKAGE EAM_REBUILDS_PVT AUTHID CURRENT_USER AS
2   /* $Header: EAMWERBS.pls 115.0 2002/11/28 02:49:33 dgupta noship $*/
3 
4   VALIDATE_GENERAL  CONSTANT NUMBER  := 1;
5   VALIDATE_ISSUE    CONSTANT NUMBER  := 2;
6   VALIDATE_REMOVE   CONSTANT NUMBER  := 3;
7 
8 /* Author: dgupta
9 Used for validating rebuildables. Can operate in different validation modes. VALIDATE_REMOVE: rebuild being replaced/taken out of the hierarchy
10 VALIDATE_ISSUE: rebuild being issued to eam work order
11 VALIDATE_GENERAL: rebuild being used in a rebuildable work order.
12 
13 Note that wip_entity_id is mandatory if the mode is VALIDATE_REMOVE. This API
14 outputs meaningful messages when validation fails explicitly telling what is
15 wrong. Primarily used by self service "Enter Rebuilds" page but can be used at
16 other places as well. The behavior the rebuild item and rebuild activity
17 parameters is such that either the "id" or the "name" can be given.
18 We look first into the id fields, then the name field if the id field is null.
19 If the name is supplied, the id is returned back as a out parameter.
20 Self service currently uses the id out parameter and only
21 supplies the name component.
22 */
23 
24 PROCEDURE validate_rebuild(
25   p_init_msg_list         IN            VARCHAR2 := FND_API.G_FALSE,
26   p_validate_mode         IN            NUMBER,
27   p_organization_id       IN            NUMBER,
28   p_wip_entity_id         IN            NUMBER := null,
29   p_rebuild_item_id       IN OUT NOCOPY NUMBER,
30   p_rebuild_item_name     IN            VARCHAR2,
31   p_rebuild_serial_number IN            VARCHAR2,
32   p_rebuild_activity_id   IN OUT NOCOPY NUMBER,
33   p_rebuild_activity_name IN            VARCHAR2,
34   x_return_status         OUT NOCOPY    VARCHAR2,
35   x_msg_count             OUT NOCOPY    NUMBER,
36   x_msg_data              OUT NOCOPY    VARCHAR2
37 );
38 
39 END EAM_REBUILDS_PVT;