DBA Data[Home] [Help]

APPS.XDPCORE_OM SQL Statements

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

Line: 43

PROCEDURE UpdateTxnDetails
                     (itemtype   IN VARCHAR2,
                      itemkey    IN VARCHAR2,
                      actid      IN NUMBER,
                      resultout OUT NOCOPY VARCHAR2) ;
Line: 219

PROCEDURE UPDATE_TXN_DETAILS
                     (itemtype      IN VARCHAR2,
                      itemkey       IN VARCHAR2,
                      actid         IN NUMBER,
                      funcmode      IN VARCHAR2,
                      resultout    OUT NOCOPY VARCHAR2) IS

x_progress     VARCHAR2(4000);
Line: 234

           UpdateTxnDetails
                     (itemtype   => update_txn_details.itemtype,
                      itemkey    => update_txn_details.itemkey,
                      actid      => update_txn_details.actid ,
                      resultout  => l_resultout );
Line: 249

          wf_core.context('XDPCORE_OM', 'UPDATE_TXN_DETAILS', itemtype, itemkey, to_char(actid), funcmode);
Line: 252

END UPDATE_TXN_DETAILS;
Line: 257

PROCEDURE UPDATE_OM_LINE_STATUS
                     (itemtype      IN VARCHAR2,
                      itemkey       IN VARCHAR2,
                      actid         IN NUMBER,
                      funcmode      IN VARCHAR2,
                      resultout    OUT NOCOPY VARCHAR2) IS

x_progress           VARCHAR2(4000);
Line: 277

           l_org_id := wf_engine.GetItemAttrNumber( itemtype => update_om_line_status.itemtype,
                                                    itemkey  => update_om_line_status.itemkey,
                                                    aname    => 'ORG_ID');
Line: 288

	   OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                          (p_line_id            => l_line_id,
                           p_flow_status_code   => 'PROV_SUCCESS',
                           x_return_status      => l_resultout );
Line: 311

          wf_core.context('XDPCORE_OM', 'UPDATE_OM_LINE_STATUS', itemtype, itemkey, to_char(actid), x_progress);
Line: 315

          wf_core.context('XDPCORE_OM', 'UPDATE_OM_LINE_STATUS', itemtype, itemkey, to_char(actid), x_progress);
Line: 318

END UPDATE_OM_LINE_STATUS ;
Line: 356

   SELECT NVL(l.org_id,h.org_id), h.order_number
     INTO l_org_id,l_order_number
     FROM oe_order_lines_all l,
          oe_order_headers_all h
    WHERE l.line_id   = to_number(l_line_id)
      AND l.header_id = h.header_id  ;
Line: 419

        SELECT line_id ,
               flow_status_code
          FROM oe_order_lines_all  l
         WHERE l.header_id = p_header_id ;
Line: 429

     g_order_line_list.DELETE ;
Line: 494

                     OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                          (p_line_id            => C_lines_rec.line_id,
                           p_flow_status_code   => 'PROV_REQUEST',
                           x_return_status      => l_resultout );
Line: 516

                     OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                          (p_line_id            => C_lines_rec.line_id,
                           p_flow_status_code   => 'PROV_FAILED',
                           x_return_status      => l_resultout );
Line: 566

       SELECT order_number ,
              version_number ,
              request_date ,
              expiration_date ,
              header_id ,
              sold_to_contact_id,
              sold_to_org_id ,
              org_id
         FROM oe_order_headers_all
        WHERE header_id = p_header_id ;
Line: 612

       SELECT l.line_id  ,
              l.line_number ,
              l.header_id ,
              l.line_type_id ,
              l.ship_from_org_id ,
              l.schedule_ship_date,
              l.promise_date ,
              l.request_date ,
              l.top_model_line_id ,
              l.link_to_line_id ,
              l.inventory_item_id ,
              l.configuration_id,
              l.config_header_id,
              l.config_rev_nbr,
              l.sort_order
         FROM oe_order_lines_all l
        WHERE l.header_id = p_header_id
          AND l.link_to_line_id IS NULL
        ORDER BY l.line_number ;
Line: 633

       SELECT l.line_id  ,
              l.line_number ,
              l.header_id ,
              l.line_type_id ,
              l.ship_from_org_id ,
              l.schedule_ship_date,
              l.promise_date ,
              l.request_date ,
              l.top_model_line_id ,
              l.link_to_line_id ,
              l.inventory_item_id ,
              l.configuration_id,
              l.config_header_id,
              l.config_rev_nbr,
              l.sort_order
         FROM oe_order_lines_all l
        WHERE l.header_id = p_header_id
          AND l.top_model_line_id = p_top_line_id
          AND l.link_to_line_id IS NOT NULL
          AND l.line_id <> p_top_line_id
        ORDER BY l.sort_order ;
Line: 776

       OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                          (p_line_id            => l_line_id,
                           p_flow_status_code   => 'PROV_REQUEST',
                           x_return_status      => l_resultout );
Line: 888

              OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                             (p_line_id            => l_line_id,
                              p_flow_status_code   => 'PROV_FAILED',
                              x_return_status      => l_resultout );
Line: 932

     SELECT h.order_number ,
            NVL(h.version_number,'1.0') ,
            h.header_id
       INTO l_order_number ,
            l_order_version ,
            l_header_id
       FROM oe_order_lines_all l ,
            oe_order_headers_all h
      WHERE l.line_id = l_line_id
        AND l.header_id = h.header_id ;
Line: 945

            SELECT l.status_code,
                   l.line_item_id,
                   l.order_id
              INTO l_line_status ,
                   l_line_item_id,
                   l_order_id
              FROM xdp_order_headers h,
                    xdp_order_line_items l
             WHERE h.external_order_number  = to_char(l_order_number)
               AND h.external_order_version = l_order_version
               AND h.order_ref_name         = 'SALES'
               AND h.order_id               = l.order_id
               AND l.line_number            = l_line_id ;
Line: 998

PROCEDURE UpdateTxnDetails
                     (itemtype   IN VARCHAR2,
                      itemkey    IN VARCHAR2,
                      actid      IN NUMBER ,
                      resultout OUT NOCOPY VARCHAR2) IS

 l_line_id       NUMBER := to_number(itemkey);
Line: 1020

    l_order_id    := wf_engine.GetItemAttrNumber(itemtype => UpdateTxnDetails.itemtype,
                                                 itemkey  => UpdateTxnDetails.itemkey,
                                                 aname    => 'ORDER_ID');
Line: 1024

    l_line_item_id := wf_engine.GetItemAttrNumber(itemtype => UpdateTxnDetails.itemtype,
                                                  itemkey  => UpdateTxnDetails.itemkey,
                                                  aname    => 'LINE_ITEM_ID');
Line: 1032

       XDP_INSTALL_BASE.UPDATE_IB(p_order_id     => l_order_id,
                                  p_line_id      => l_line_item_id,
                                  p_error_code   => l_errcode,
                                  p_error_description => l_error_description);
Line: 1038

        SELECT h.order_number ,
               NVL(h.version_number,'1.0') ,
               h.header_id
          INTO l_order_number ,
               l_order_version ,
               l_header_id
          FROM oe_order_lines_all l ,
               oe_order_headers_all h
         WHERE l.line_id   = l_line_id
           AND l.header_id = h.header_id ;
Line: 1050

              SELECT l.line_item_id,
                     l.order_id
                INTO l_line_item_id,
                     l_order_id
                FROM xdp_order_headers h,
                     xdp_order_line_items l
		                        --Date: 05-JUL-2006, Author: DPUTHIYE, Bug#5370624/5222928
					--Description: Implicit conversion of l_order_number and l_order_version to number fails.
					--Dependencies: None.
                                 -- WHERE h.external_order_number  = l_order_number
                                 -- AND h.external_order_version = l_order_version
		 WHERE h.external_order_number  = to_char(l_order_number)
                 AND h.external_order_version = to_char(l_order_version)
                 AND h.order_ref_name         = 'SALES'
                 AND h.order_id               = l.order_id
                 AND l.line_number            = l_line_id ;
Line: 1073

         XDP_INSTALL_BASE.UPDATE_IB(p_order_id     => l_order_id,
                                    p_line_id      => l_line_item_id,
                                    p_error_code   => l_errcode,
                                    p_error_description => l_error_description);
Line: 1082

                        'UpdateTxnDetails. Error: ' || substr(sqlerrm,1,1500);
Line: 1084

      WF_ENGINE.SetItemAttrNumber(itemtype => UpdateTxnDetails.itemtype ,
                                  itemkey  => UpdateTxnDetails.itemkey  ,
                                  aname    => 'NOTIF_ERROR_CODE',
                                  avalue   => l_errcode );
Line: 1091

      WF_ENGINE.SetItemAttrText(itemtype => UpdateTxnDetails.itemtype ,
                                  itemkey  => UpdateTxnDetails.itemkey  ,
                                  aname    => 'NOTIF_ERROR_MESSAGE',
                                  avalue   => l_error_description);
Line: 1099

         l_org_id := wf_engine.GetItemAttrNumber( itemtype => UpdateTxnDetails.itemtype,
                                                  itemkey  => UpdateTxnDetails.itemkey,
                                                  aname    => 'ORG_ID');
Line: 1105

         OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                     (p_line_id            => l_line_id,
                      p_flow_status_code   => 'PROV_FAILED',
                      x_return_status      => l_resultout );
Line: 1115

        l_org_id := wf_engine.GetItemAttrNumber( itemtype => UpdateTxnDetails.itemtype,
                                                 itemkey  => UpdateTxnDetails.itemkey,
                                                 aname    => 'ORG_ID');
Line: 1121

        OE_ORDER_WF_UTIL.Update_Flow_Status_Code
                         (p_line_id            => l_line_id,
                          p_flow_status_code   => 'PROV_REQUEST',
                          x_return_status      => l_resultout );
Line: 1132

          wf_core.context('XDPCORE_OM', 'UpdateTxnDetails',itemtype,itemkey,actid,x_progress);
Line: 1136

          wf_core.context('XDPCORE_OM', 'UpdateTxnDetails',itemtype,itemkey,actid,x_progress);
Line: 1138

END UpdateTxnDetails ;