DBA Data[Home] [Help]

APPS.OE_GRP_SCH_UTIL SQL Statements

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

Line: 381

      SELECT planning_make_buy_code
      INTO   l_make_buy
      FROM   mtl_system_items
      WHERE  inventory_item_id = p_line_rec.inventory_item_id
      AND    ORGANIZATION_ID = nvl(p_line_rec.ship_from_org_id,
                                                     l_org_id);
Line: 403

      SELECT BILL_SEQUENCE_ID
      INTO   l_bill_seq_id
      FROM   BOM_BILL_OF_MATERIALS
      WHERE  ORGANIZATION_ID = nvl(p_line_rec.ship_from_org_id,l_org_id)
      AND    ASSEMBLY_ITEM_ID = p_line_rec.inventory_item_id
      AND    ALTERNATE_BOM_DESIGNATOR IS NULL;
Line: 660

   SELECT arrival_set_id,
          ato_line_id,
          demand_class_code,
          delivery_lead_time,
          freight_carrier_code,
          header_id,
          inventory_item_id,
          invoice_to_org_id,
          item_type_code,
          ordered_item,
          line_id,
          ordered_quantity,
          order_quantity_uom,
          request_date,
          schedule_ship_date,
          schedule_arrival_date,
          ship_from_org_id,
          ship_model_complete_flag,
          ship_set_id,
          ship_to_org_id,
          schedule_status_code,
          shipping_method_code,
          sold_to_org_id,
          top_model_line_id
   FROM oe_order_lines
   WHERE header_id = p_header_id
   AND item_type_code <> OE_GLOBALS.G_ITEM_INCLUDED;
Line: 935

         l_line_rec.operation                := OE_GLOBALS.G_OPR_UPDATE;
Line: 1173

  SELECT ato_line_id , ship_set_id, arrival_set_id
  INTO l_ato_line_id,l_ship_set_id,l_arrival_set_id
  FROM oe_order_lines_all
  WHERE line_id = l_line_id;
Line: 1225

        SELECT line_Id
        INTO l_config_id
        FROM OE_ORDER_LINES_ALL
        WHERE ato_line_id=l_model_line_rec.line_id
        AND top_model_line_id =l_model_line_rec.top_model_line_id
        AND item_type_code = 'CONFIG';
Line: 1438

    l_line_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 1827

        SELECT line_Id
        INTO l_config_id
        FROM OE_ORDER_LINES_ALL
        WHERE top_model_line_id = l_line_tbl(1).top_model_line_id
        AND item_type_code = 'CONFIG';
Line: 1978

           l_line_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 2014

             l_line_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 2089

        oe_debug_pub.add(  'CALLING UPDATE SET' ) ;
Line: 2092

    OE_Set_Util.Update_Set
        (p_Set_Id                   => l_set_id,
         p_Ship_From_Org_Id         => l_Ship_From_Org_Id,
         p_Ship_To_Org_Id           => l_Ship_To_Org_Id,
         p_Schedule_Ship_Date       => l_Schedule_Ship_Date,
         p_Schedule_Arrival_Date    => l_Schedule_Arrival_Date,
         p_Freight_Carrier_Code     => l_Freight_Carrier_Code,
         p_Shipping_Method_Code     => l_Shipping_Method_Code,
         p_shipment_priority_code   => l_shipment_priority_code,
         X_Return_Status            => l_return_status,
         x_msg_count                => l_msg_count,
         x_msg_data                 => l_msg_data
        );
Line: 2107

        oe_debug_pub.add(  'AFTER CALLING UPDATE SET' ) ;
Line: 2493

                l_line_tbl(k).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 2672

                   l_line_tbl(J).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 2690

                 OE_Set_Util.Update_Set
                     (p_Set_Id                   => nvl(l_line_tbl(1).arrival_set_id,
                                                        l_line_tbl(1).ship_set_id),
                      p_Ship_From_Org_Id         => l_line_tbl(1).Ship_From_Org_Id,
                      p_Ship_To_Org_Id           => l_line_tbl(1).Ship_To_Org_Id,
                      p_Schedule_Ship_Date       => l_line_tbl(1).Schedule_Ship_Date,
                      p_Schedule_Arrival_Date    => l_line_tbl(1).Schedule_Arrival_Date,
                      p_Freight_Carrier_Code     => l_line_tbl(1).Freight_Carrier_Code,
                      p_Shipping_Method_Code     => l_line_tbl(1).Shipping_Method_Code,
                      p_shipment_priority_code   => l_line_tbl(1).shipment_priority_code,
                      X_Return_Status            => x_return_status,
                      x_msg_count                => l_msg_count,
                      x_msg_data                 => l_msg_data
                     );
Line: 2706

                     oe_debug_pub.add(  'AFTER CALLING UPDATE SET' ) ;
Line: 3080

             l_out_line_tbl1(K).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 3098

            oe_debug_pub.add(  'NOW CALLING OE_ORDER_SCH_UTIL.UPDATE_LINE_RECORD' , 1 ) ;
Line: 3101

        OE_ORDER_SCH_UTIL.Update_line_record
        ( p_line_tbl      => l_old_line_tbl1
        , p_x_new_line_tbl  => l_out_line_tbl1
        , p_write_to_db   => p_write_to_db
	   , p_recursive_call => FND_API.G_FALSE
        , x_return_status => l_return_status);
Line: 3109

                                              oe_debug_pub.add(  'AFTER CALLING UPDATE_LINE_RECORD: ' || L_RETURN_STATUS , 1 ) ;
Line: 3208

           SELECT RESERVABLE_TYPE
           INTO   l_reservable_type
           FROM   MTL_SYSTEM_ITEMS
           WHERE  INVENTORY_ITEM_ID = l_line_tbl(j).inventory_item_id
           AND    ORGANIZATION_ID = l_line_tbl(j).ship_from_org_id;
Line: 3244

                 SELECT revision_qty_control_code, lot_control_code,
                        serial_number_control_code
                 INTO l_revision_code, l_lot_code, l_serial_code
                 FROM mtl_system_items
                 WHERE inventory_item_id = l_line_tbl(j).inventory_item_id
                 AND   organization_id   = l_line_tbl(j).ship_from_org_id;
Line: 3428

               oe_debug_pub.add(  'RSCH: CALLING INVS UPDATE RESERVATION ' , 1 ) ;
Line: 3430

           inv_reservation_pub.update_reservation
               ( p_api_version_number        => 1.0
               , p_init_msg_lst              => fnd_api.g_true
               , x_return_status             => l_return_status
               , x_msg_count                 => l_msg_count
               , x_msg_data                  => l_msg_data
               , p_original_rsv_rec          => l_rsv_tbl(M)
               , p_to_rsv_rec                => l_reservation_rec
               , p_original_serial_number    => l_dummy_sn -- no serial contorl
               , p_to_serial_number          => l_dummy_sn -- no serial control
               , p_validation_flag           => fnd_api.g_true
               );
Line: 3444

                                   oe_debug_pub.add(  'AFTER CALLING INVS UPDATE_RESERVATION: ' || L_RETURN_STATUS , 1 ) ;
Line: 3600

             l_out_line_tbl1(K).operation := OE_GLOBALS.G_OPR_UPDATE;
Line: 3617

        oe_debug_pub.add('Now Calling OE_ORDER_SCH_UTIL.Update_line_record',1);
Line: 3619

        OE_ORDER_SCH_UTIL.Update_line_record
        ( p_line_tbl      => l_old_line_tbl1
        , p_x_new_line_tbl  => l_out_line_tbl1
        , p_write_to_db   => p_write_to_db
	   , p_recursive_call => FND_API.G_FALSE
        , x_return_status => l_return_status);
Line: 3626

        oe_debug_pub.add('After Calling Update_line_record: ' ||
                                          l_return_status,1);
Line: 3750

    SELECT LINE_ID
    FROM    OE_ORDER_LINES_ALL
    WHERE
    HEADER_ID = p_header_id
    AND item_type_code <> OE_GLOBALS.G_ITEM_INCLUDED
    ORDER BY arrival_set_id,ship_set_id,line_number,shipment_number,nvl(option_number,-1);
Line: 3884

       SELECT 'VALID'
       INTO   l_dummy
       FROM   MTL_SYSTEM_ITEMS
       WHERE  INVENTORY_ITEM_ID = p_line_tbl(I).inventory_item_id
       AND    ORGANIZATION_ID   = p_ship_from_org_id;
Line: 3911

Procedure :Sch_Multi_selected_lines
           This procedure is called when lines are multi-selected and
           scheduling action is performed.

 ---------------------------------------------------------------*/
Procedure Sch_Multi_selected_lines
(p_line_list     IN  VARCHAR2,
p_line_count     IN  NUMBER,
p_action         IN  VARCHAR2,
x_atp_tbl OUT NOCOPY OE_ATP.Atp_Tbl_Type,

x_return_status OUT NOCOPY VARCHAR2,

x_msg_count OUT NOCOPY NUMBER,

x_msg_data OUT NOCOPY VARCHAR2)

IS
j                      Integer;
Line: 3971

      oe_debug_pub.add(  'GG: ENTERING SCH_MULTI_SELECTED_LINES' , 1 ) ;
Line: 4296

         l_line_rec.operation                := OE_GLOBALS.G_OPR_UPDATE;
Line: 4394

                                               oe_debug_pub.add(  'EXITING SCH_MULTI_SELECTED_LINES WITH: ' || L_OUT_RETURN_STATUS , 1 ) ;
Line: 4466

            ,   'Sch_Multi_selected_lines'
            );
Line: 4477

END Sch_Multi_selected_lines;