DBA Data[Home] [Help]

APPS.OE_RELATED_ITEMS_PVT SQL Statements

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

Line: 149

SELECT concatenated_segments,description,item_type
       INTO  out_inv_item_name,out_inv_desc,out_inv_item_type
       FROM   mtl_system_items_kfv
       WHERE  inventory_item_id = l_inv_item_id
       AND    organization_id = l_org_id;
Line: 432

   l_atp_rec.Insert_Flag(I)             := 1; -- it can be 0 or 1
Line: 437

   SELECT mrp_atp_schedule_temp_s.nextval
     INTO l_session_id
     FROM dual;
Line: 651

          select meaning
            into l_explanation
            from mfg_lookups
           where lookup_type = 'MTL_DEMAND_INTERFACE_ERRORS'
             and lookup_code = 80;
Line: 677

          select meaning
            into l_explanation
            from mfg_lookups
           where lookup_type = 'MTL_DEMAND_INTERFACE_ERRORS'
             and lookup_code = p_atp_rec.error_code(J) ;
Line: 762

              select meaning
                into l_explanation
                from mfg_lookups
               where lookup_type = 'MTL_DEMAND_INTERFACE_ERRORS'
                 and lookup_code = p_atp_rec.error_code(J) ;
Line: 836

    SELECT organization_code,
           name
      INTO out_code,
           out_name
      FROM oe_ship_from_orgs_v
     WHERE organization_id = in_org_id;
Line: 1083

     SELECT concatenated_segments
       INTO  oe_order_pub.g_line.ordered_item
       FROM   mtl_system_items_kfv
       WHERE  inventory_item_id = g_related_item_id
       AND    organization_id = l_org_id;
Line: 1271

     SELECT concatenated_segments
       INTO  oe_order_pub.g_line.ordered_item
       FROM   mtl_system_items_kfv
       WHERE  inventory_item_id = g_inventory_item_id
       AND    organization_id = l_org_id;
Line: 2609

                             oe_debug_pub.add(  'UPDATED_ADJUSTED_UNIT_PRICE ='|| OUT_REQ_LINE_TBL ( I ) .UPDATED_ADJUSTED_UNIT_PRICE ) ;
Line: 3042

Select/*+ ordered use_nl(qpq qppa qpll qplh) */ min(qpll.operand)
 From
      qp_qualifiers qpq
 ,    qp_pricing_attributes qppa
 ,    qp_list_lines qpll
 ,    qp_list_headers_b qplh
 ,    qp_price_req_sources qpprs
 where
 qpq.qualifier_context='CUSTOMER'
 and qpq.qualifier_attribute='QUALIFIER_ATTRIBUTE15'
 and qpq.qualifier_attr_value='Y'
 and qppa.list_header_id=qplh.list_header_id
 and qplh.Active_flag='Y'
 and qpprs.request_type_code = 'ONT'
 and qpprs.source_system_code=qplh.source_system_code
 and    qppa.pricing_phase_id  = 2
 and    qppa.qualification_ind = 6
 and qppa.product_attribute_context ='ITEM'
 and qppa.product_attribute='PRICING_ATTRIBUTE1'
 and qppa.product_attr_value= g_related_item_id
 and qppa.excluder_flag = 'N'
 and qppa.list_header_id=qpq.list_header_id
 and qppa.list_line_id=qpll.list_line_id
 and  g_pricing_date between nvl(trunc(qplh.start_date_active),g_pricing_date)
 and nvl(trunc(qplh.End_date_active),g_pricing_date);
Line: 3104

        Select name into l_price_list
          from qp_list_headers_vl
         where list_header_id = in_price_list_id;
Line: 3169

        Select name into l_price_list
        from qp_list_headers_vl a,qp_list_lines b where
        b.list_line_id =  to_number(substr(in_status_text,1,
        instr(in_status_text,',')-1))
        and a.list_header_id=b.list_header_id ;
Line: 3187

        Select name into l_price_list
        from qp_list_headers_vl a,qp_list_lines b where
        b.list_line_id =  to_number(substr(in_status_text,
        instr(in_status_text,',')+1))
        and a.list_header_id=b.list_header_id	;
Line: 3280

      oe_debug_pub.add('After select OE_PRICING_ERROR 2');
Line: 3292

            SELECT concatenated_segments
              INTO l_msg_text
              FROM mtl_system_items_kfv
             WHERE inventory_item_id = g_related_item_id
               AND organization_id = l_org_id;
Line: 3314

    (in_status_code in ( QP_PREQ_GRP.G_STATUS_UPDATED ,
                         QP_PREQ_GRP.G_STATUS_GSA_VIOLATION)
     --In this case even engine doesn't update the order (status = UNCHANGED)
     --because of one of the lined is frozen,
     --there can be some order level adjustments in database which
     --need to be pulled out by append_adjustment_lines routine
      or (in_status_code = QP_PREQ_GRP.G_STATUS_UNCHANGED))
	Then
    IF l_debug_level  > 0 THEN
        oe_debug_pub.add(  'OE_PRICING_ERROR 3' ) ;
Line: 3327

  ELSIF in_line_Type_code ='LINE' and in_status_code = 'UPDATED' then

    IF l_debug_level  > 0 THEN
        oe_debug_pub.add(  'STATUS = UPDATED' ) ;
Line: 3371

    select rounding_factor
      into l_rounding_factor
      from qp_list_headers_b
     where list_header_id = p_list_header_id;
Line: 3413

        SELECT  NAME,
                end_date_active,
                start_date_active,
                automatic_flag,
                rounding_factor,
                terms_id,
                gsa_indicator,
                currency_code,
                freight_terms_code
        INTO    out_name,
                out_end_date,
                out_start_date,
                out_automatic_flag,
                out_rounding_factor,
                out_terms_id,
                out_gsa_indicator,
                out_currency,
                out_freight_terms_code

        FROM    qp_list_headers_vl
        WHERE   list_header_id = p_price_list_id
          and   list_type_code in ('PRL', 'AGR');
Line: 3464

  SELECT primary_uom_code
    FROM mtl_system_items_b
   WHERE organization_id = in_org_id
     AND inventory_item_id = g_Inventory_item_id;
Line: 3470

  SELECT uom_Class
    FROM mtl_units_of_measure_tl
   WHERE uom_code = in_ordered_uom;
Line: 3475

  SELECT uom_code
    FROM mtl_units_of_measure_tl
   WHERE uom_class = in_class
     AND base_uom_flag = 'Y';
Line: 3617

  SELECT round(1/conversion_rate,6)
    FROM mtl_uom_conversions
   WHERE uom_code  = in_uom_code
     AND inventory_item_id = g_inventory_item_id;
Line: 3623

  SELECT round(1/conversion_rate,6)
    FROM mtl_uom_conversions
   WHERE uom_Code = in_uom_code
     AND inventory_item_id = 0;
Line: 3629

  SELECT round(1/conversion_rate,6)
    FROM mtl_uom_class_conversions
   WHERE to_uom_code = in_uom_code
     AND from_uom_code  = in_base_uom
     AND inventory_item_id = g_inventory_item_id;
Line: 3740

   select hsecs
     from v$timer;
Line: 3783

   select hsecs
     from v$timer;