DBA Data[Home] [Help]

APPS.WMS_STRATEGY_UPGRADE_PVT SQL Statements

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

Line: 34

    Cursor C_stg is select
     wsa.organization_id
    ,wsa.object_type_code
    ,wsa.object_id
    ,wsa.strategy_type_code
    ,wsa.strategy_id
    ,wsa.pk1_value
    ,wsa.pk2_value
    ,wsa.pk3_value
    ,wsa.pk4_value
    ,wsa.pk5_value
    ,wsa.effective_from
    ,wsa.effective_to
    ,wsa.date_type_code
    ,wsa.date_type_lookup_type
    ,wsa.date_type_from
    ,wsa.date_type_to
    from  wms_strategy_assignments  wsa,
          wms_org_hierarchy_objs woho
    where wsa.organization_id = woho.organization_id
      and wsa.object_id = woho.object_id
      and wsa.strategy_type_code   = woho.type_code
      and wsa.strategy_id  in ( select strategy_id  from wms_strategies_b
                              where enabled_flag = 'Y')
    order by wsa.organization_id ,
	   wsa.strategy_type_code,
	   woho.search_order,
	   wsa.pk1_value,
	   wsa.pk2_value,
	   wsa.pk3_value,
	   wsa.pk4_value,
           wsa.pk5_value,
	   wsa.sequence_number;
Line: 70

     select count(sequence_number)
       from wms_selection_criteria_txn;
Line: 107

 l_stg_assignment_id  		wms_selection_criteria_txn.stg_assignment_id%type;
Line: 108

 l_sequence_number  		wms_selection_criteria_txn.sequence_number%type;
Line: 109

 l_rule_type_code   		wms_selection_criteria_txn.rule_type_code%type;
Line: 110

 l_return_type_code     	wms_selection_criteria_txn.return_type_code%type;
Line: 111

 l_return_type_id               wms_selection_criteria_txn.return_type_id%type;
Line: 112

 l_enabled_flag                 wms_selection_criteria_txn.enabled_flag%type;
Line: 113

 l_date_type_code               wms_selection_criteria_txn.date_type_code%type;
Line: 114

 l_date_type_from               wms_selection_criteria_txn.date_type_from%type;
Line: 115

 l_date_type_to                 wms_selection_criteria_txn.date_type_to%type;
Line: 116

 l_date_type_lookup_type        wms_selection_criteria_txn.date_type_lookup_type%type;
Line: 117

 l_effective_from               wms_selection_criteria_txn.effective_from%type;
Line: 118

 l_effective_to                 wms_selection_criteria_txn.effective_to%type;
Line: 119

 l_from_organization_id         wms_selection_criteria_txn.from_organization_id%type;
Line: 120

 l_from_subinventory_name       wms_selection_criteria_txn.from_subinventory_name%type;
Line: 121

 l_to_organization_id           wms_selection_criteria_txn.to_organization_id%type;
Line: 122

 l_to_subinventory_name         wms_selection_criteria_txn.to_subinventory_name%type;
Line: 123

 l_customer_id                  wms_selection_criteria_txn.customer_id%type;
Line: 124

 l_freight_code                 wms_selection_criteria_txn.freight_code%type;
Line: 125

 l_inventory_item_id            wms_selection_criteria_txn.inventory_item_id%type;
Line: 126

 l_item_type                    wms_selection_criteria_txn.item_type%type;
Line: 127

 l_assignment_group_id          wms_selection_criteria_txn.assignment_group_id%type;
Line: 128

 l_abc_class_id                 wms_selection_criteria_txn.abc_class_id%type;
Line: 129

 l_category_set_id              wms_selection_criteria_txn.category_set_id%type;
Line: 130

 l_category_id                  wms_selection_criteria_txn.category_id%type;
Line: 131

 l_order_type_id                wms_selection_criteria_txn.order_type_id%type;
Line: 132

 l_vendor_id                    wms_selection_criteria_txn.vendor_id%type;
Line: 133

 l_project_id                   wms_selection_criteria_txn.project_id%type;
Line: 134

 l_task_id                      wms_selection_criteria_txn.task_id%type;
Line: 135

 l_user_id                      wms_selection_criteria_txn.user_id%type;
Line: 136

 l_transaction_action_id        wms_selection_criteria_txn.transaction_action_id%type;
Line: 137

 l_reason_id                    wms_selection_criteria_txn.reason_id%type;
Line: 138

 l_transaction_source_type_id   wms_selection_criteria_txn.transaction_source_type_id%type;
Line: 139

 l_transaction_type_id          wms_selection_criteria_txn.transaction_type_id%type;
Line: 140

 l_uom_code                     wms_selection_criteria_txn.uom_code%type;
Line: 141

 l_uom_class                    wms_selection_criteria_txn.uom_class%type;
Line: 142

 l_last_updated_by              wms_selection_criteria_txn.last_updated_by%type;
Line: 143

 l_last_update_date             wms_selection_criteria_txn.last_update_date%type;
Line: 144

 l_created_by                   wms_selection_criteria_txn.created_by%type;
Line: 145

 l_creation_date                wms_selection_criteria_txn.creation_date%type;
Line: 146

 l_last_update_login 		wms_selection_criteria_txn.last_update_login%type;
Line: 201

      l_last_updated_by              := nvl(to_number(fnd_profile.value('USER_ID')), -1);
Line: 202

      l_last_update_date             := SYSDATE;
Line: 205

      l_last_update_login 	     := to_number(fnd_profile.value('LOGIN_ID'));
Line: 242

    select wms_selection_criteria_txn_s.nextval
           into l_stg_assignment_id
       from dual;
Line: 306

    insert_row (
          x_stg_assignment_id        	=>  l_stg_assignment_id
         ,x_sequence_number        	=>  l_sequence_number
    	 ,x_rule_type_code          	=>  l_rule_type_code
     	 ,x_return_type_code          	=>  l_return_type_code
     	 ,x_return_type_id          	=>  l_return_type_id
     	 ,x_enabled_flag             	=>  l_enabled_flag
     	 ,x_date_type_code           	=>  l_date_type_code
         ,x_date_type_from           	=>  l_date_type_from
    	 ,x_date_type_to              	=>  l_date_type_to
     	 ,x_date_type_lookup_type     	=>  l_date_type_lookup_type
     	 ,x_effective_from            	=>  l_effective_from
     	 ,x_effective_to              	=>  l_effective_to
     	 ,x_from_organization_id      	=>  l_from_organization_id
     	 ,x_from_subinventory_name     	=>  l_from_subinventory_name
     	 ,x_to_organization_id        	=>  l_to_organization_id
     	 ,x_to_subinventory_name      	=>  l_to_subinventory_name
     	 ,x_customer_id               	=>  l_customer_id
     	 ,x_freight_code              	=>  l_freight_code
     	 ,x_inventory_item_id         	=>  l_inventory_item_id
     	 ,x_item_type                 	=>  l_item_type
     	 ,x_assignment_group_id        	=>  l_assignment_group_id
     	 ,x_abc_class_id                =>  l_abc_class_id
     	 ,x_category_set_id             =>  l_category_set_id
     	 ,x_category_id                 =>  l_category_id
     	 ,x_order_type_id               =>  l_order_type_id
     	 ,x_vendor_id                   =>  l_vendor_id
     	 ,x_project_id                  =>  l_project_id
     	 ,x_task_id                     =>  l_task_id
     	 ,x_user_id                     =>  l_user_id
     	 ,x_transaction_action_id       =>  l_transaction_action_id
     	 ,x_reason_id                   =>  l_reason_id
     	 ,x_transaction_source_type_id  =>  l_transaction_source_type_id
     	 ,x_transaction_type_id         =>  l_transaction_type_id
     	 ,x_uom_code                    =>  l_uom_code
     	 ,x_uom_class                   =>  l_uom_class
     	 ,x_last_updated_by             =>  l_last_updated_by
     	 ,x_last_update_date            =>  l_last_update_date
     	 ,x_created_by                  =>  l_created_by
     	 ,x_creation_date               =>  l_creation_date
 	 ,x_last_update_login           =>  l_last_update_login);
Line: 354

 Procedure insert_row (
   x_stg_assignment_id                      in 	   number
  ,x_sequence_number                        in 	   number
  ,x_rule_type_code                         in	   number
  ,x_return_type_code                       in	   varchar2
  ,x_return_type_id                         in	   number
  ,x_enabled_flag                           in     varchar2
  ,x_date_type_code                         in     varchar2
  ,x_date_type_from                         in     number
  ,x_date_type_to                           in     number
  ,x_date_type_lookup_type                  in     varchar2
  ,x_effective_from                         in     date
  ,x_effective_to                           in     date
  ,x_from_organization_id                   in     number
  ,x_from_subinventory_name                 in     varchar2
  ,x_to_organization_id                     in     number
  ,x_to_subinventory_name                   in     varchar2
  ,x_customer_id                            in     number
  ,x_freight_code                           in     varchar2
  ,x_inventory_item_id                      in     number
  ,x_item_type                              in     varchar2
  ,x_assignment_group_id                    in     number
  ,x_abc_class_id                           in     number
  ,x_category_set_id                        in     number
  ,x_category_id                            in     number
  ,x_order_type_id                          in     number
  ,x_vendor_id                              in     number
  ,x_project_id                             in     number
  ,x_task_id                                in     number
  ,x_user_id                                in     number
  ,x_transaction_action_id                  in     number
  ,x_reason_id                              in     number
  ,x_transaction_source_type_id             in     number
  ,x_transaction_type_id                    in     number
  ,x_uom_code                               in     varchar2
  ,x_uom_class                              in     varchar2
  ,x_last_updated_by                        in 	   number
  ,x_last_update_date                       in 	   date
  ,x_created_by                             in 	   number
  ,x_creation_date                          in 	   date
  ,x_last_update_login                      in     number
  ) is

     x_seq NUMBER;
Line: 400

      cursor c is select stg_assignment_id  from wms_selection_criteria_txn
         where sequence_number  = x_sequence_number
           and rule_type_code   = x_rule_type_code
           and return_type_code = x_return_type_code
           and return_type_id   = x_return_type_id;
Line: 409

     insert into  wms_selection_criteria_txn (
         stg_assignment_id
        ,sequence_number
 	,rule_type_code
 	,return_type_code
 	,return_type_id
 	,enabled_flag
 	,date_type_code
 	,date_type_from
 	,date_type_to
 	,date_type_lookup_type
 	,effective_from
 	,effective_to
 	,from_organization_id
 	,from_subinventory_name
 	,to_organization_id
 	,to_subinventory_name
 	,customer_id
 	,freight_code
 	,inventory_item_id
 	,item_type
 	,assignment_group_id
 	,abc_class_id
 	,category_set_id
 	,category_id
 	,order_type_id
 	,vendor_id
 	,project_id
 	,task_id
 	,user_id
 	,transaction_action_id
 	,reason_id
 	,transaction_source_type_id
 	,transaction_type_id
 	,uom_code
 	,uom_class
 	,last_updated_by
 	,last_update_date
 	,created_by
 	,creation_date
         ,last_update_login
          )     values (
          x_stg_assignment_id
         ,x_sequence_number
 	 ,x_rule_type_code
 	 ,x_return_type_code
 	 ,x_return_type_id
 	 ,x_enabled_flag
 	 ,x_date_type_code
 	 ,x_date_type_from
 	 ,x_date_type_to
 	 ,x_date_type_lookup_type
 	 ,x_effective_from
 	 ,x_effective_to
 	 ,x_from_organization_id
 	 ,x_from_subinventory_name
 	 ,x_to_organization_id
 	 ,x_to_subinventory_name
 	 ,x_customer_id
 	 ,x_freight_code
 	 ,x_inventory_item_id
 	 ,x_item_type
 	 ,x_assignment_group_id
 	 ,x_abc_class_id
 	 ,x_category_set_id
 	 ,x_category_id
 	 ,x_order_type_id
 	 ,x_vendor_id
 	 ,x_project_id
 	 ,x_task_id
 	 ,x_user_id
 	 ,x_transaction_action_id
 	 ,x_reason_id
 	 ,x_transaction_source_type_id
 	 ,x_transaction_type_id
 	 ,x_uom_code
 	 ,x_uom_class
 	 ,x_last_updated_by
 	 ,x_last_update_date
 	 ,x_created_by
 	 ,x_creation_date
         ,x_last_update_login );
Line: 499

   end insert_row;