DBA Data[Home] [Help]

APPS.OE_SET_UTIL SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 70

select 1
into lcount
from dual
where exists (select 1
              from oe_line_sets
              where set_id = p_set_id
              and line_id = p_line_id);
Line: 127

        SELECT Enforce_Ship_Set_And_Smc
          INTO l_shipset_enforce
          FROM Wsh_Shipping_Parameters
          WHERE Organization_Id = p_line_rec.ship_from_org_Id;
Line: 144

       SELECT  count(*)
         INTO  l_ship_set
         FROM  Wsh_Delivery_Details
        WHERE  Ship_Set_Id = p_line_rec.ship_set_id
          AND  Source_Code = 'OE'
          AND  Source_Header_Id = p_line_rec.header_id
          AND  Released_Status In ('S','Y','C')
          AND  ROWNUM = 1;  -- 3229707 Removed 'B' from Released_Status check
Line: 154

        SELECT count(*)
        INTO   l_ship_set
        FROM   wsh_delivery_details wdd
        WHERE  wdd.ship_set_id = p_line_rec.ship_set_id
        AND    wdd.source_code = 'OE'
        AND    wdd.source_header_id = p_line_rec.header_id
        AND   ((wdd.released_status = 'C')
        OR EXISTS (select wda.delivery_detail_id
        FROM   wsh_delivery_assignments wda, wsh_new_deliveries wnd
        WHERE  wda.delivery_detail_id = wdd.delivery_detail_id
        AND    wda.delivery_id = wnd.delivery_id
        AND    wnd.status_code in ('CO', 'IT', 'CL', 'SA')))
        AND rownum = 1;
Line: 171

                SELECT SET_NAME
                INTO l_set_name
                FROM OE_SETS
                WHERE set_id = p_line_rec.ship_set_id;
Line: 233

        Select header_id
        Into   l_header_id
        From   oe_order_lines_all
        Where  line_id = p_line_rec.service_reference_line_id;
Line: 268

Select line_id from
oe_order_lines_all where
top_model_line_id = p_line_id and
--item_type_code = 'INCLUDED' and
nvl(cancelled_flag,'N') <> 'Y' and
nvl(model_remnant_flag,'N') <> 'Y' and
line_id not in
(select line_id from oe_line_sets where
set_id = p_set_id );
Line: 298

Insert into oe_line_sets(
Line_id,
Set_id,
SYSTEM_REQUIRED_FLAG )
Values
(p_line_id,
p_set_id,
'Y');
Line: 312

      Insert into oe_line_sets(Line_id,
                               Set_id,
                               SYSTEM_REQUIRED_FLAG )
      Values (c1rec.line_id,
              p_set_id,
              'Y');
Line: 400

Procedure Delete_Fulfillment_Set(p_line_id NUMBER,
				 p_set_id  NUMBER) IS
l_return_status varchar2(30);
Line: 413

        oe_debug_pub.add(  'DELETE FULLFILLMENT SET' ) ;
Line: 416

    /* The next check is redundant and harmful if a child line is being deleted from
       set. The check has already been done in process_sets(). Commented for 2525203.
    -- See if this is already fulfilled .  if fulfilled raise error
    oe_line_util.query_row(p_line_id => p_line_id,
			   x_line_rec => l_line_rec);
Line: 428

    /*Delete oe_line_sets
      Where line_id = p_line_id
      and set_id = p_set_id;*/
Line: 452

    Delete oe_line_sets
    Where line_id = p_line_id
    and set_id = p_set_id;
Line: 458

      oe_debug_pub.add(  'EXIT - DELETE FULLFILLMENT SET' ) ;
Line: 472

             'Delete Fulfillment Set'
         );
Line: 478

End Delete_Fulfillment_Set;
Line: 514

l_api_name         CONSTANT VARCHAR2(30) := 'Insert_Into_Set';
Line: 524

Select Ordered_quantity,
       header_id,
       Line_id
       from
       oe_order_lines_all where
       top_model_line_id = l_line_id and
       --and line_id <> l_line_id and
      nvl(cancelled_flag,'N') <> 'Y' and
       nvl(model_remnant_flag,'N') <> 'Y'
       ORDER BY arrival_set_id,ship_set_id,line_number,shipment_number,nvl(option_number,-1);
Line: 557

		l_line_tbl(l_count).operation := oe_globals.g_opr_update;
Line: 588

            l_old_line_tbl.delete;
Line: 604

			g_old_line_tbl.delete;
Line: 683

		l_line_tbl.delete;
Line: 718

Select Ordered_quantity,
       header_id,
       Line_id
       from
       oe_order_lines_all where
       top_model_line_id = l_line_id
       and line_id <> l_line_id and
       nvl(cancelled_flag,'N') <> 'Y' and
       nvl(model_remnant_flag,'N') <> 'Y'
       order by line_id;
Line: 807

		p_x_line_tbl(l_count).operation := oe_globals.g_opr_update;
Line: 843

Procedure Insert_Into_arrival_Set
        (p_Set_request_tbl             oe_order_pub.Request_Tbl_Type,
         p_Push_Set_Date                IN VARCHAR2 := FND_API.G_FALSE,
X_Return_Status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2

)IS
l_line_rec		  OE_ORDER_PUB.line_rec_type;
Line: 865

l_api_name         CONSTANT VARCHAR2(30) := 'Insert_Into_Set';
Line: 895

Select set_id from
oe_sets where
set_type = 'SHIP_SET'
and header_id = l_header_id
and ship_from_org_id = l_ship_from_org_id
and ship_to_org_id = l_ship_to_org_id
and trunc(schedule_ship_date) = trunc(l_Schedule_Ship_Date)
and nvl(set_status,'X') <> 'C'
;
Line: 906

Select set_id from
oe_sets where
set_type = 'ARRIVAL_SET' and
header_id = l_header_id
and ship_to_org_id = l_ship_to_org_id
and trunc(schedule_arrival_date) = trunc(l_Schedule_arrival_Date)
and nvl(set_status,'X') <> 'C';
Line: 915

select Max(to_number(set_name)) from
oe_sets
where
set_status = 'T'
and header_id = l_header_id and
set_type = l_set_type;
Line: 923

Select Schedule_ship_date,
Ship_from_org_id,
ship_to_org_id,
schedule_arrival_date,
ship_set_id,
arrival_set_id
from
oe_order_lines_all
where
line_id = l_top_model_line_id ;
Line: 940

select Max(to_number(set_name)) from
oe_sets
where
header_id = l_header_id and
set_type = l_set_type and
set_name = lsettempname;
Line: 960

         oe_debug_pub.add(  'INSERT_INTO ARRIVAL SETSS' , 1 ) ;
Line: 985

	l_temp_line_tbl.delete;
Line: 986

	g_old_line_tbl.delete;
Line: 1129

			l_sch_line_tbl.delete(l_sch_count) ;
Line: 1195

         g_old_line_tbl.delete;
Line: 1208

        l_sch_line_tbl.delete;
Line: 1219

		l_temp_line_tbl.delete;
Line: 1222

		l_sch_line_tbl.delete;
Line: 1320

	l_temp_line_tbl(K).operation := oe_globals.g_opr_update;
Line: 1456

	l_line_tbl.delete;
Line: 1472

		g_auto_set_tbl.delete;
Line: 1474

         oe_debug_pub.add(  ' EXIT INSERT INTO SETS' , 1 ) ;
Line: 1479

	g_auto_set_tbl.delete;
Line: 1520

            ,   'Insert_Into_Set'
            );
Line: 1531

End Insert_Into_arrival_Set;
Line: 1535

(   p_selected_line_tbl    IN OE_GLOBALS.Selected_Record_Tbl, --(R12.MOAC)
    p_record_count         IN NUMBER,
    p_set_name             IN VARCHAR2,
    p_set_type             IN VARCHAR2 := FND_API.G_MISS_CHAR,
    p_operation            IN VARCHAR2,
    p_header_id            IN VARCHAR2 := FND_API.G_MISS_CHAR,
x_Set_Id OUT NOCOPY NUMBER,

x_return_status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2

) IS

l_num_of_records NUMBER := p_record_count;
Line: 1653

 FOR I IN 1..p_selected_line_tbl.COUNT LOOP
  l_line_id := p_selected_line_tbl(I).id1;
Line: 1790

  l_line_tbl(I).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 1911

  SELECT set_id
  INTO x_set_id
  FROM OE_SETS
  where set_name = p_set_name
  and set_type = p_set_type and
  header_id = p_header_id ;
Line: 1948

  SELECT 'Y'
  INTO row_exists
  FROM OE_SETS
  WHERE set_id = p_set_id
  and header_id = nvl(l_header_id,header_id);
Line: 2049

      SELECT OE_SETS_S.NEXTVAL
      INTO   l_set_id
      FROM   DUAL;
Line: 2065

INSERT INTO OE_SETS(
  SET_ID
, SET_NAME
, SET_TYPE
, Header_Id
, Ship_from_org_id
, Ship_to_org_id
, Schedule_Ship_Date
, Schedule_Arrival_Date
, Freight_Carrier_Code
, Shipping_Method_Code
, Shipment_priority_code
, Set_Status
, CREATED_BY
,CREATION_DATE
,UPDATE_DATE
,UPDAtED_BY
)
 VALUES(
  l_set_id
, p_set_name
, p_Set_type
, p_Header_Id
, p_Ship_from_org_id
, p_Ship_to_org_id
, p_Schedule_Ship_Date
, p_Schedule_Arrival_Date
, p_Freight_Carrier_Code
, p_Shipping_Method_Code
,p_shipment_priority_code
, lcustpref
,1
,sysdate
,sysdate
,1001
    );
Line: 2104

         oe_debug_pub.add(  'AFTERINSERT ' , 1 ) ;
Line: 2157

Procedure Insert_Into_Set
        (p_Set_request_tbl             oe_order_pub.Request_Tbl_Type,
         p_Push_Set_Date                IN VARCHAR2 := FND_API.G_FALSE,
X_Return_Status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2

)IS
l_line_rec		  OE_ORDER_PUB.line_rec_type;
Line: 2180

l_api_name         CONSTANT VARCHAR2(30) := 'Insert_Into_Set';
Line: 2208

Select set_id from
oe_sets where
set_type = 'SHIP_SET'
and header_id = l_header_id
and ship_from_org_id = l_ship_from_org_id
and ship_to_org_id = l_ship_to_org_id
and trunc(schedule_ship_date) = trunc(l_Schedule_Ship_Date)
and nvl(set_status,'X') <> 'C'
;
Line: 2219

Select set_id from
oe_sets where
set_type = 'ARRIVAL_SET' and
header_id = l_header_id
and ship_to_org_id = l_ship_to_org_id
and trunc(schedule_arrival_date) = trunc(l_Schedule_arrival_Date)
and nvl(set_status,'X') <> 'C';
Line: 2228

select Max(to_number(set_name)) from
oe_sets
where
set_status = 'T'
and header_id = l_header_id and
set_type = l_set_type;
Line: 2236

Select Schedule_ship_date,
Ship_from_org_id,
ship_to_org_id,
schedule_arrival_date
from
oe_order_lines_all
where
line_id = l_top_model_line_id ;
Line: 2251

select Max(to_number(set_name)) from
oe_sets
where
header_id = l_header_id and
set_type = l_set_type and
set_name = lsettempname;
Line: 2259

select set_id,
Schedule_ship_date,
Ship_from_org_id,
ship_to_org_id
from
oe_sets
where
header_id = l_header_id and
set_type = 'SHIP_SET' and
set_status = 'T';
Line: 2283

         oe_debug_pub.add(  'INSERT_INTO SETSS' , 1 ) ;
Line: 2307

	 Insert_Into_arrival_Set
        (p_Set_request_tbl    => p_Set_request_tbl  ,
         X_Return_Status      => l_return_status ,
         x_msg_count          => x_msg_count,
         x_msg_data           => x_msg_data);
Line: 2333

	l_temp_line_tbl.delete;
Line: 2334

	g_old_line_tbl.delete;
Line: 2471

			l_sch_line_tbl.delete(l_sch_count) ;
Line: 2495

			g_old_line_tbl.delete;
Line: 2516

		l_temp_line_tbl.delete;
Line: 2601

	l_temp_line_tbl(K).operation := oe_globals.g_opr_update;
Line: 2708

	l_line_tbl.delete;
Line: 2723

		g_auto_set_tbl.delete;
Line: 2725

         oe_debug_pub.add(  ' EXIT INSERT INTO SETS' , 1 ) ;
Line: 2730

	g_auto_set_tbl.delete;
Line: 2770

            ,   'Insert_Into_Set'
            );
Line: 2781

End Insert_Into_Set;
Line: 2785

Procedure Update_Set
        (p_Set_Id                       IN NUMBER,
         p_Ship_From_Org_Id             IN NUMBER := FND_API.G_MISS_NUM,
         p_Ship_To_Org_Id               IN NUMBER := FND_API.G_MISS_NUM,
         p_Schedule_Ship_Date           IN DATE := FND_API.G_MISS_DATE,
         p_Schedule_Arrival_Date        IN DATE := FND_API.G_MISS_DATE,
         p_Freight_Carrier_Code         IN VARCHAR2 := FND_API.G_MISS_CHAR,
         p_Shipping_Method_Code IN VARCHAR2 := FND_API.G_MISS_CHAR,
         p_shipment_priority_code       IN VARCHAR2 := FND_API.G_MISS_CHAR,
X_Return_Status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2

)IS
l_set_rec 	OE_ORDER_CACHE.set_rec_type;
Line: 2866

	UPDATE OE_SETS SET
	ship_from_org_id = l_ship_from_org_id,
	ship_to_org_id   = l_ship_to_org_id,
	Schedule_Arrival_Date = l_Schedule_Arrival_Date,
   	Schedule_Ship_Date = l_Schedule_Ship_Date,
        Freight_Carrier_Code = l_Freight_Carrier_Code ,
        Shipping_Method_Code  =  l_Shipping_Method_Code,
        shipment_priority_code  = l_shipment_priority_code
	WHERE SET_ID = P_SET_ID;
Line: 2912

            ,   'Update_set'
            );
Line: 2922

End Update_Set;
Line: 3034

(   p_selected_line_tbl    IN OE_GLOBALS.Selected_Record_Tbl, -- R12.MOAC
    p_record_count	   IN NUMBER,
    p_set_name             IN VARCHAR2,
    p_set_type             IN VARCHAR2 := FND_API.G_MISS_CHAR,
    p_operation            IN VARCHAR2,
    p_header_id            IN VARCHAR2 := FND_API.G_MISS_CHAR,
x_Set_Id OUT NOCOPY NUMBER,

x_return_status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2

) IS
l_num_of_records            NUMBER := p_record_count;
Line: 3094

   (p_selected_line_tbl => p_selected_line_tbl,
    p_record_count     => p_record_count,
    p_set_name         => p_set_name,
    p_set_type         => p_set_type,
    p_operation        => p_operation,
    p_header_id        => p_header_id ,
    x_Set_Id           => x_set_id ,
    x_return_status    => x_return_status,
    x_msg_count        => x_msg_count,
    x_msg_data         => x_msg_data );
Line: 3197

 FOR K IN 1..p_selected_line_tbl.count LOOP

    l_line_id := p_selected_line_tbl(K).id1;
Line: 3397

					l_line_opt_tbl.delete;
Line: 3440

            l_line_opt_tbl.delete;
Line: 3468

	  	    Delete_Fulfillment_Set
               (p_line_id => l_line_opt_tbl(optrec).line_id,
                p_set_id => l_Set_id);
Line: 3473

         l_line_opt_tbl.delete;
Line: 3479

         Delete_Fulfillment_Set
              (p_line_id => l_line_id,
               p_set_id => l_Set_id);
Line: 3506

  l_line_tbl(I).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 3540

  l_line_opt_temp_tbl.delete;
Line: 3559

		g_old_line_tbl.delete;
Line: 3691

			g_old_line_tbl.delete;
Line: 3813

                  l_line_opt_tbl.delete;
Line: 4038

SELECT arrival_set_id INTO
       x_arrival_set_id
FROM OE_ORDER_LINES_ALL WHERE
header_id = p_header_id AND
ship_set_id = p_ship_set_id AND
arrival_set_id IS NOT NULL AND
rownum = 1;
Line: 4058

Procedure Update_Options(p_ato_line_id IN NUMBER := FND_API.G_MISS_NUM,
	       p_config_line_id IN NUMBER := FND_API.G_MISS_NUM,
	       p_set_id IN NUMBER,
	       p_set_type IN VARCHAR2 )IS
stmt_str varchar2(2000);
Line: 4087

stmt_str := 'UPDATE OE_ORDER_LINES_ALL ' ||
	    'SET '  || column1 || ' =  ' ||  to_char(p_set_id) ||
	    'WHERE ' || column2 || ' =  ' ||to_char(parent_line_id);
Line: 4099

END Update_Options;
Line: 4442

		ELSIF p_x_line_rec.operation = oe_globals.g_opr_update THEN
			g_set_tbl(I).line_id := p_x_line_rec.line_id;
Line: 4700

		ELSIF p_x_line_rec.operation = oe_globals.g_opr_update THEN
		g_set_tbl(I).line_id := p_x_line_rec.line_id;
Line: 4856

		ELSIF p_x_line_rec.operation = oe_globals.g_opr_update THEN
		g_set_tbl(I).line_id := p_x_line_rec.line_id;
Line: 4922

		ELSIF p_x_line_rec.operation = oe_globals.g_opr_update THEN
		g_set_tbl(I).line_id := p_x_line_rec.line_id;
Line: 5101

SELECT   line_id
FROM     oe_order_lines
WHERE    header_id = l_header_id
AND      (ship_set_id = p_set_id
OR       arrival_set_id = p_set_id)
ORDER BY line_number,shipment_number,nvl(option_number,-1);
Line: 5130

   Select header_id
   Into   l_header_id
   From   Oe_sets
   Where  set_id = p_set_id;
Line: 5197

     SELECT OE_SETS_S.NEXTVAL
      INTO   l_set_id
      FROM   DUAL;
Line: 5203

INSERT INTO OE_SETS(
  SET_ID
, SET_NAME
, SET_TYPE
, Header_Id
, inventory_item_id
, ordered_quantity_uom
, line_type_id
, Ship_tolerance_above
, ship_tolerance_below
, CREATED_BY
,CREATION_DATE
,UPDATE_DATE
,UPDATED_BY
)
 VALUES(
  l_set_id
, to_char(p_x_line_rec.line_id)
, 'SPLIT'
, p_x_line_rec.Header_Id
, p_x_line_rec.inventory_item_id
, p_x_line_rec.order_quantity_uom
, p_x_line_rec.line_type_id
, p_x_line_rec.Ship_tolerance_above
, p_x_line_rec.ship_tolerance_below
,1
,sysdate
,sysdate
,1001
    );
Line: 5236

         oe_debug_pub.add(  'AFTERINSERT'||TO_CHAR ( L_SET_ID ) , 1 ) ;
Line: 5239

         oe_debug_pub.add(  'AFTERINSERT ' , 1 ) ;
Line: 5269

l_api_name         CONSTANT VARCHAR2(30) := 'Insert_Into_Set';
Line: 5763

			--g_old_line_tbl.delete;
Line: 5861

					Update oe_order_lines_all
					set ship_set_id = l_set_id where
					top_model_line_id = l_line_tbl(K).line_id and
					item_type_code = 'INCLUDED';
Line: 5869

					Update oe_order_lines_all
					set arrival_set_id = l_set_id where
					top_model_line_id = l_line_tbl(K).line_id and
					item_type_code = 'INCLUDED';
Line: 5879

l_line_tbl(K).operation := oe_globals.g_opr_update;
Line: 5986

			l_line_tbl.delete;
Line: 5987

			g_old_line_tbl.delete;
Line: 5999

	 g_set_tbl.delete;
Line: 6015

	 		g_set_opt_tbl.delete;
Line: 6051

Select os.set_name from
oe_sets os,
oe_line_sets ls
where
ls.line_id = p_line_id and
os.set_id = ls.set_id;
Line: 6086

Delete oe_line_sets
where line_id = p_line_id;
Line: 6128

select Max(to_number(set_name))
from oe_sets
where set_status = 'T'
and   header_id = p_x_line_rec.header_id and
set_type = l_set_pref_type;
Line: 6135

select Max(to_number(set_name))
from   oe_sets
where  header_id = p_x_line_rec.header_id
and set_type = l_set_pref_type
and set_name = lsettempname;
Line: 6142

select set_id
from oe_sets
where header_id = p_x_line_rec.header_id
and set_type = l_set_pref_type
and set_status = 'T';
Line: 6149

Select line_id, shipping_interfaced_flag
 from oe_order_lines_all
where top_model_line_id = p_x_line_rec.line_id
and open_flag = 'Y';
Line: 6155

select set_name
from oe_sets
where header_id = p_x_line_rec.header_id
and set_type =  'FULFILLMENT_SET'
and set_status = 'T';
Line: 6162

select set_name
from   oe_sets
where  header_id = p_x_line_rec.header_id
and set_type = l_set_pref_type;
Line: 6169

select set_id
from oe_sets
where header_id = p_x_line_rec.header_id
and set_type = l_set_pref_type
and set_status = 'T'
and set_name = nvl(p_x_line_rec.arrival_set,p_x_line_rec.ship_set);
Line: 6177

select line_id,ship_set_id,arrival_set_id
from oe_order_lines_all
where top_model_line_id=p_x_line_rec.line_id
and line_id<>p_x_line_rec.line_id
and open_flag='Y';
Line: 6202

              p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
             (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
              p_x_line_rec.split_from_line_id is NOT NULL)) then

      IF  ((p_x_line_rec.arrival_set is not null AND
            p_x_line_rec.arrival_set <> FND_API.G_MISS_CHAR) OR
           (p_x_line_rec.arrival_set_id is not null AND
            p_x_line_rec.arrival_set_id <> FND_API.G_MISS_NUM))
      AND ((p_x_line_rec.ship_set is not null AND
            p_x_line_rec.ship_set <> FND_API.G_MISS_CHAR) OR
           (p_x_line_rec.ship_set_id is not null AND
            p_x_line_rec.ship_set_id <> FND_API.G_MISS_NUM))
      THEN

            IF l_debug_level  > 0 THEN
               oe_debug_pub.add(  'INVALID SER OPR' , 2 ) ;
Line: 6617

	-- Create or Update based on the flags set above

/* First we will create the set if l_create_flag is set to 'Y' */
	IF l_debug_level  > 0 THEN
	    oe_debug_pub.add(  'CREATE FLAG IS - ' || L_CREATE_SET , 1 ) ;
Line: 6675

	/* Update set id on the children of the top model */

/*Changes for bug 6719457 start*/
	IF l_debug_level  > 0 THEN
      oe_debug_pub.add(  'Cascade flag is yes',1);
Line: 6683

	select ol.arrival_set_id
	into l_old_set_id
	from oe_order_lines_all ol
	where ol.top_model_line_id = p_x_line_rec.line_id
	and ol.line_id<>p_x_line_rec.line_id
	and rownum=1;
Line: 6698

	select distinct(ol.ship_set_id)
	into l_old_set_id
	from oe_order_lines_all ol
	where ol.top_model_line_id = p_x_line_rec.line_id
	and ol.line_id<>p_x_line_rec.line_id
	and rownum=1;
Line: 6713

     oe_debug_pub.add(  'After selecting, old set id is:'||l_old_set_id,1);
Line: 6718

		Update oe_order_lines_all l
		set
		arrival_set_id =
		decode(l_Set_type , 'ARRIVAL_SET', l_set_id,l.arrival_set_id),
		ship_set_id =
		decode(l_Set_type , 'SHIP_SET', l_set_id,l.ship_set_id)
		WHERE
		top_model_line_id = p_x_line_rec.line_id
        AND open_flag = 'Y';
Line: 6843

             oe_debug_pub.add(  'UPDATE SHIPPING : CHILDREN OF MODEL FOR SETS ' || TO_CHAR ( OPTIONREC.LINE_ID ) , 1 ) ;
Line: 6851

          p_request_type              =>  OE_GLOBALS.G_UPDATE_SHIPPING,
          p_request_unique_key1       =>  OE_GLOBALS.G_OPR_UPDATE,
          p_param1                     =>      FND_API.G_TRUE,
          x_return_status               =>      l_return_status);
Line: 6866

		end;-- Begin of the update
Line: 7225

PROCEDURE: Delete_Set
DESCRIPTION:This api will delete set record from oe_sets table if
            the set is not associated with any line.
*/
Procedure Delete_Set(p_request_rec   IN  OE_ORDER_PUB.request_rec_type,
                     x_return_status OUT NOCOPY VARCHAR2)
IS
l_dummy  NUMBER;
Line: 7239

     oe_debug_pub.add(  'ENTERING DELETE SET' , 3 ) ;
Line: 7247

        SELECT 1
        INTO l_dummy
        FROM oe_order_lines_all
        WHERE header_id=p_request_rec.param2
        AND ship_set_id =p_request_rec.param1
        AND ROWNUM =1;
Line: 7258

        SELECT 1
        INTO l_dummy
        FROM oe_order_lines_all
        WHERE header_id=p_request_rec.param2
        AND arrival_set_id =p_request_rec.param1
        AND ROWNUM =1;
Line: 7275

        DELETE FROM OE_SETS
        WHERE set_id = p_request_rec.param1;
Line: 7281

          oe_debug_pub.add(  'IN OTHERS EXCEPTION OF DELETE SET ' , 3 ) ;
Line: 7285

     oe_debug_pub.add(  'EXITING DELETE SET' , 3 ) ;
Line: 7301

      ,   'Delete_Set'
       );
Line: 7304

END Delete_Set;