DBA Data[Home] [Help]

APPS.GML_GPOAO SQL Statements

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

Line: 95

      SELECT      text
      FROM        ece_output
      WHERE       run_id = v_RunID
      ORDER BY    line_id;
Line: 120

      SELECT   ece_output_runs_s.NEXTVAL
      INTO     v_RunID
      FROM     sys.dual;
Line: 187

      SELECT   COUNT(*)
      INTO     v_OutputRecordCount
      FROM     ece_output
      WHERE    run_id = v_RunID;
Line: 234

      DELETE FROM ece_output
      WHERE       run_id = v_RunID;
Line: 241

                      'ECE_NO_ROW_DELETED',
                      'PROGRESS_LEVEL',
                      xProgress,
                      'TABLE_NAME',
                      'ECE_OUTPUT' );
Line: 390

    v_ORD_Select     VARCHAR2(32000);
Line: 391

    v_OAC_Select     VARCHAR2(32000);
Line: 392

    v_OTX_Select     VARCHAR2(32000);
Line: 393

    v_DTL_Select     VARCHAR2(32000);
Line: 394

    v_DAC_Select     VARCHAR2(32000);
Line: 395

    v_DTX_Select     VARCHAR2(32000);
Line: 396

    v_ALL_Select     VARCHAR2(32000);
Line: 478

    SELECT
      assignment_type,
      format_size,
      nvl(pad_char,' ')
    INTO
      v_assignment_type,
      v_format_size,
      v_pad_char
    FROM
      sy_docs_seq
    WHERE
      orgn_code=v_Orgn_Code AND
      doc_type='OPSO'
    ;
Line: 498

        SELECT
           lpad(p_Order_No_From, v_format_size, v_pad_char)
        INTO
           v_Order_No_From
        FROM
           dual
        ;
Line: 509

        SELECT
           lpad(p_Order_No_To, v_format_size, v_pad_char)
        INTO
           v_Order_No_To
        FROM
           dual
        ;
Line: 586

    /*   The 'select_clause' procedure will build the SELECT, FROM and WHERE */
    /*   clauses in preparation for the dynamic SQL call using the EDI data */
    /*   dictionary for the build.  Any necessary customizations to these */
    /*   clauses need to be made *after* the clause is built, but *before* */
    /*   the SQL call. */
    /*  */

    xProgress := 'GPOAOB-10-1210';
Line: 594

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_ORD_Interface,
                                          v_ORD_Table,
                                          v_ORD_Select,
                                          v_ORD_From,
                                          v_ORD_Where );
Line: 603

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_OAC_Interface,
                                          v_OAC_Table,
                                          v_OAC_Select,
                                          v_OAC_From,
                                          v_OAC_Where );
Line: 612

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_OTX_Interface,
                                          v_OTX_Table,
                                          v_OTX_Select,
                                          v_OTX_From,
                                          v_OTX_Where );
Line: 621

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_DTL_Interface,
                                          v_DTL_Table,
                                          v_DTL_Select,
                                          v_DTL_From,
                                          v_DTL_Where );
Line: 630

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_DAC_Interface,
                                          v_DAC_Table,
                                          v_DAC_Select,
                                          v_DAC_From,
                                          v_DAC_Where );
Line: 639

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_DTX_Interface,
                                          v_DTX_Table,
                                          v_DTX_Select,
                                          v_DTX_From,
                                          v_DTX_Where );
Line: 648

    ece_extract_utils_pub.select_clause ( p_TransactionType,
                                          p_CommunicationMethod,
                                          p_ALL_Interface,
                                          v_ALL_Table,
                                          v_ALL_Select,
                                          v_ALL_From,
                                          v_ALL_Where );
Line: 748

    /*   Build the complete SELECT statement for each level. */
    /*  */

    xProgress := 'GPOAOB-10-1400';
Line: 752

    v_ORD_Select        := v_ORD_Select       ||
                           v_ORD_From         ||
                           v_ORD_Where;
Line: 755

    ec_debug.pl (3, 'v_ORD_Select:', v_ORD_Select);
Line: 758

    v_OAC_Select        := v_OAC_Select       ||
                           v_OAC_From         ||
                           v_OAC_Where;
Line: 762

    v_OTX_Select        := v_OTX_Select       ||
                           v_OTX_From         ||
                           v_OTX_Where;
Line: 766

    v_DTL_Select        := v_DTL_Select       ||
                           v_DTL_From         ||
                           v_DTL_Where;
Line: 769

    ec_debug.pl (3, 'v_DTL_Select:', v_DTL_Select);
Line: 771

    v_DAC_Select        := v_DAC_Select       ||
                           v_DAC_From         ||
                           v_DAC_Where;
Line: 774

    ec_debug.pl (3, 'v_DAC_Select:', v_DAC_Select);
Line: 776

    v_DTX_Select        := v_DTX_Select       ||
                           v_DTX_From         ||
                           v_DTX_Where;
Line: 780

    v_ALL_Select        := v_ALL_Select       ||
                           v_ALL_From         ||
                           v_ALL_Where;
Line: 785

    /*   Open a cursor for each of the SELECT calls.  This tells the */
    /*   database to reserve space for the data returned by the SELECT */
    /*   statement. */
    /*  */

    xProgress := 'GPOAOB-10-1410';
Line: 807

    /*   Parse each SELECT statement so the database understands the */
    /*   command. */
    /*  */

    xProgress := 'GPOAOB-10-1500';
Line: 813

                     v_ORD_Select,
                     dbms_sql.native );
Line: 815

    ec_debug.pl (3, 'v_ORD_Select:', v_ORD_Select);
Line: 819

                     v_OAC_Select,
                     dbms_sql.native );
Line: 824

                     v_OTX_Select,
                     dbms_sql.native );
Line: 829

                     v_DTL_Select,
                     dbms_sql.native );
Line: 834

                     v_DAC_Select,
                     dbms_sql.native );
Line: 839

                     v_DTX_Select,
                     dbms_sql.native );
Line: 844

                     v_ALL_Select,
                     dbms_sql.native );
Line: 880

    /*   Define the data type for every column in each SELECT statement */
    /*   so the database understands how to populate it.  Using the */
    /*   K.I.S.S. principle, every data type will be converted to */
    /*   VARCHAR2. */
    /* - */

    xProgress := 'GPOAOB-10-1600';
Line: 892

                               v_ORD_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 902

                               v_OAC_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 912

                               v_OTX_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 922

                               v_DTL_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 932

                               v_DAC_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 942

                               v_DTX_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 952

                               v_ALL_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 957

    /*   Bind the variables in the Order level SELECT clause. */
    /*  */

    xProgress := 'GPOAOB-10-1700';
Line: 999

    /*   Execute the Order level SELECT statement. */
    /*  */

    xProgress := 'GPOAOB-10-1710';
Line: 1029

      /*   the SELECT clauses of the other levels. */
      /*  */

      xProgress := 'GPOAOB-10-1750';
Line: 1062

      /*   insert this record into the Order interface table. */
      /*  */

      xProgress := 'GPOAOB-10-1810';
Line: 1066

      SELECT GML_GPOAO_ORDERS_S.nextval
      INTO   v_ORD_Key
      FROM   sys.dual;
Line: 1071

      ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                        p_TransactionType,
                                                        p_CommunicationMethod,
                                                        p_ORD_Interface,
                                                        v_ORD_Table,
                                                        v_ORD_Key );
Line: 1088

      /*   Execute the Order Charges level SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-10-1754';
Line: 1134

        /*   level table, use the same key value to insert this record into */
        /*   the Order Charges table. */
        /*  */

        v_OAC_Key := v_ORD_Key;
Line: 1141

        ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                          p_TransactionType,
                                                          p_CommunicationMethod,
                                                          p_OAC_Interface,
                                                          v_OAC_Table,
                                                          v_OAC_Key );
Line: 1160

      /*   Execute the Order Text level SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-10-1670';
Line: 1206

        /*   level table, use the same key value to insert this record into */
        /*   the Order Text table. */
        /*  */

        v_OTX_Key := v_ORD_Key;
Line: 1213

        ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                          p_TransactionType,
                                                          p_CommunicationMethod,
                                                          p_OTX_Interface,
                                                          v_OTX_Table,
                                                          v_OTX_Key );
Line: 1236

      /*   Execute the Detail level SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-10-1980';
Line: 1266

      /*   the SELECT clauses of the other levels. */
      /*  */

      xProgress := 'GPOAOB-10-2020';
Line: 1299

      /*   insert this record into the Detail interface table. */
      /*  */

      xProgress := 'GPOAOB-10-2070';
Line: 1303

      SELECT GML_GPOAO_DETAILS_S.nextval
      INTO   v_DTL_Key
      FROM   sys.dual;
Line: 1309

      ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                        p_TransactionType,
                                                        p_CommunicationMethod,
                                                        p_DTL_Interface,
                                                        v_DTL_Table,
                                                        v_DTL_Key );
Line: 1326

      /*   Execute the Detail Charges level SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-10-2040';
Line: 1370

        /*   level table, use the same key value to insert this record into */
        /*   the Order Charges table. */
        /*  */

        v_DAC_Key := v_DTL_Key;
Line: 1377

        ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                          p_TransactionType,
                                                          p_CommunicationMethod,
                                                          p_DAC_Interface,
                                                          v_DAC_Table,
                                                          v_DAC_Key );
Line: 1395

        /*   Execute the Detail Text level SELECT statement. */
        /*  */

        xProgress := 'GPOAOB-10-2160';
Line: 1441

          /*   level table, use the same key value to insert this record into */
          /*   the Order Text table. */
          /*  */

          v_DTX_Key := v_DTL_Key;
Line: 1448

          ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                            p_TransactionType,
                                                            p_CommunicationMethod,
                                                            p_DTX_Interface,
                                                            v_DTX_Table,
                                                            v_DTX_Key );
Line: 1465

        /*   Execute the Allocations level SELECT statement. */
        /*  */

        xProgress := 'GPOAOB-10-2160';
Line: 1510

          /*   level table, use the same key value to insert this record into */
          /*   the Order Text table. */
          /*  */

          v_ALL_Key := v_DTL_Key;
Line: 1517

          ece_extract_utils_pub.insert_into_interface_tbl ( p_RunID,
                                                            p_TransactionType,
                                                            p_CommunicationMethod,
                                                            p_ALL_Interface,
                                                            v_ALL_Table,
                                                            v_ALL_Key );
Line: 1538

      /*   update edi count in the op_ordr_hdr table */
      /*  */
      xProgress := 'GPOAOB-10-2160';
Line: 1541

      UPDATE
        op_ordr_hdr
      SET
        edi_trans_count = edi_trans_count+1,
        last_update_date = sysdate,
        last_updated_by = fnd_global.user_id
      WHERE
        order_id = v_order_id;
Line: 1553

    /*   Commit the interface table inserts. */
    /*  */


    xProgress := 'GASNOB-10-2300';
Line: 1606

                       the Gateway interface tables and inserts the sequenced
                       data into the Gateway output table.

===========================================================================*/

  PROCEDURE Put_Data_To_Output_Table ( p_CommunicationMethod     IN VARCHAR2,
                                       p_TransactionType         IN VARCHAR2,
                                       p_Orgn_Code               IN VARCHAR2,
                                       p_Order_No_From           IN VARCHAR2,
                                       p_Order_No_To             IN VARCHAR2,
                                       p_Creation_Date_From      IN DATE,
                                       p_Creation_Date_To        IN DATE,
                                       p_Customer_Name           IN VARCHAR2,
                                       p_RunID                   IN INTEGER,
                                       p_OutputWidth             IN INTEGER,
                                       p_ORD_Interface           IN VARCHAR2,
                                       p_OAC_Interface           IN VARCHAR2,
                                       p_OTX_Interface           IN VARCHAR2,
                                       p_DTL_Interface           IN VARCHAR2,
                                       p_DAC_Interface           IN VARCHAR2,
                                       p_DTX_Interface           IN VARCHAR2,
                                       p_ALL_Interface           IN VARCHAR2 )

  IS

    /*  */
    /*   Variable definitions.  'Interface_tbl_type' is a PL/SQL table */
    /*   typedef with the following structure: */
    /*  */
    /*   table_name              VARCHAR2(50) */
    /*   column_name             VARCHAR2(50) */
    /*   record_num              NUMBER */
    /*   position                NUMBER */
    /*   data_type               VARCHAR2(50) */
    /*   data_length             NUMBER */
    /*   value                   VARCHAR2(400) */
    /*   layout_code             VARCHAR2(2) */
    /*   record_qualifier        VARCHAR2(3) */
    /*  */
    xProgress			  VARCHAR2(30);
Line: 1666

    v_ORD_Select_Cursor       INTEGER;
Line: 1667

    v_OAC_Select_Cursor       INTEGER;
Line: 1668

    v_OTX_Select_Cursor       INTEGER;
Line: 1669

    v_DTL_Select_Cursor       INTEGER;
Line: 1670

    v_DAC_Select_Cursor       INTEGER;
Line: 1671

    v_DTX_Select_Cursor       INTEGER;
Line: 1672

    v_ALL_Select_Cursor       INTEGER;
Line: 1674

    v_ORD_Delete_Cursor       INTEGER;
Line: 1675

    v_OAC_Delete_Cursor       INTEGER;
Line: 1676

    v_OTX_Delete_Cursor       INTEGER;
Line: 1677

    v_DTL_Delete_Cursor       INTEGER;
Line: 1678

    v_DAC_Delete_Cursor       INTEGER;
Line: 1679

    v_DTX_Delete_Cursor       INTEGER;
Line: 1680

    v_ALL_Delete_Cursor       INTEGER;
Line: 1682

    v_ORD_Delete_XCursor       INTEGER;
Line: 1683

    v_OAC_Delete_XCursor       INTEGER;
Line: 1684

    v_OTX_Delete_XCursor       INTEGER;
Line: 1685

    v_DTL_Delete_XCursor       INTEGER;
Line: 1686

    v_DAC_Delete_XCursor       INTEGER;
Line: 1687

    v_DTX_Delete_XCursor       INTEGER;
Line: 1688

    v_ALL_Delete_XCursor       INTEGER;
Line: 1690

    v_ORD_Select     VARCHAR2(32000);
Line: 1691

    v_OAC_Select     VARCHAR2(32000);
Line: 1692

    v_OTX_Select     VARCHAR2(32000);
Line: 1693

    v_DTL_Select     VARCHAR2(32000);
Line: 1694

    v_DAC_Select     VARCHAR2(32000);
Line: 1695

    v_DTX_Select     VARCHAR2(32000);
Line: 1696

    v_ALL_Select     VARCHAR2(32000);
Line: 1714

    v_ORD_Delete     VARCHAR2(32000);
Line: 1715

    v_OAC_Delete     VARCHAR2(32000);
Line: 1716

    v_OTX_Delete     VARCHAR2(32000);
Line: 1717

    v_DTL_Delete     VARCHAR2(32000);
Line: 1718

    v_DAC_Delete     VARCHAR2(32000);
Line: 1719

    v_DTX_Delete     VARCHAR2(32000);
Line: 1720

    v_ALL_Delete     VARCHAR2(32000);
Line: 1722

    v_ORD_XDelete    VARCHAR2(32000);
Line: 1723

    v_OAC_XDelete    VARCHAR2(32000);
Line: 1724

    v_OTX_XDelete    VARCHAR2(32000);
Line: 1725

    v_DTL_XDelete    VARCHAR2(32000);
Line: 1726

    v_DAC_XDelete    VARCHAR2(32000);
Line: 1727

    v_DTX_XDelete    VARCHAR2(32000);
Line: 1728

    v_ALL_XDelete    VARCHAR2(32000);
Line: 1844

    /*   The 'select_clause' procedure will build the SELECT, FROM and WHERE */
    /*   clauses in preparation for the dynamic SQL call using the EDI data */
    /*   dictionary for the build.  Any necessary customizations to these */
    /*   the SQL call. */
    /*  */

    xProgress := 'GPOAOB-40-1010';
Line: 1851

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_ORD_Interface,
                                     v_ORD_XInterface,
                                     v_ORD_Table,
                                     v_ORD_CommonKeyName,
                                     v_ORD_Select,
                                     v_ORD_From,
                                     v_ORD_Where );
Line: 1862

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_OAC_Interface,
                                     v_OAC_XInterface,
                                     v_OAC_Table,
                                     v_OAC_CommonKeyName,
                                     v_OAC_Select,
                                     v_OAC_From,
                                     v_OAC_Where );
Line: 1873

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_OTX_Interface,
                                     v_OTX_XInterface,
                                     v_OTX_Table,
                                     v_OTX_CommonKeyName,
                                     v_OTX_Select,
                                     v_OTX_From,
                                     v_OTX_Where );
Line: 1884

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_DTL_Interface,
                                     v_DTL_XInterface,
                                     v_DTL_Table,
                                     v_DTL_CommonKeyName,
                                     v_DTL_Select,
                                     v_DTL_From,
                                     v_DTL_Where );
Line: 1895

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_DAC_Interface,
                                     v_DAC_XInterface,
                                     v_DAC_Table,
                                     v_DAC_CommonKeyName,
                                     v_DAC_Select,
                                     v_DAC_From,
                                     v_DAC_Where );
Line: 1906

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_DTX_Interface,
                                     v_DTX_XInterface,
                                     v_DTX_Table,
                                     v_DTX_CommonKeyName,
                                     v_DTX_Select,
                                     v_DTX_From,
                                     v_DTX_Where );
Line: 1917

    ece_flatfile_pvt.select_clause ( p_TransactionType,
                                     p_CommunicationMethod,
                                     p_ALL_Interface,
                                     v_ALL_XInterface,
                                     v_ALL_Table,
                                     v_ALL_CommonKeyName,
                                     v_ALL_Select,
                                     v_ALL_From,
                                     v_ALL_Where );
Line: 1928

    /*   Customize the SELECT clauses to include the ROWID.  Records */
    /*   will be deleted from the interface tables using these values. */
    /*   Also add any columns that do not appear in the flatfile, but */
    /*   will be needed for internal processing (i.e. ID values). */
    /*  */

    xProgress := 'GPOAOB-40-1080';
Line: 1935

    v_ORD_Select := v_ORD_Select                 ||
                        ', '                     ||
                        p_ORD_Interface          ||
                        '.ROWID, '               ||
                        v_ORD_XInterface         ||
                        '.ROWID, '               ||
                        p_ORD_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1944

    v_OAC_Select := v_OAC_Select                 ||
                        ', '                     ||
                        p_OAC_Interface          ||
                        '.ROWID, '               ||
                        v_OAC_XInterface         ||
                        '.ROWID, '               ||
                        p_OAC_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1953

    v_OTX_Select := v_OTX_Select                 ||
                        ', '                     ||
                        p_OTX_Interface          ||
                        '.ROWID, '               ||
                        v_OTX_XInterface         ||
                        '.ROWID, '               ||
                        p_OTX_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1962

    v_DTL_Select := v_DTL_Select                 ||
                        ', '                     ||
                        p_DTL_Interface          ||
                        '.ROWID, '               ||
                        v_DTL_XInterface         ||
                        '.ROWID, '               ||
                        p_DTL_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1971

   v_DAC_Select := v_DAC_Select                 ||
                        ', '                     ||
                        p_DAC_Interface          ||
                        '.ROWID, '               ||
                        v_DAC_XInterface         ||
                        '.ROWID, '               ||
                        p_DAC_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1980

    v_DTX_Select := v_DTX_Select                 ||
                        ', '                     ||
                        p_DTX_Interface          ||
                        '.ROWID, '               ||
                        v_DTX_XInterface         ||
                        '.ROWID, '               ||
                        p_DTX_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 1989

    v_ALL_Select := v_ALL_Select                 ||
                        ', '                     ||
                        p_ALL_Interface          ||
                        '.ROWID, '               ||
                        v_ALL_XInterface         ||
                        '.ROWID, '               ||
                        p_ALL_Interface          ||
                        '.TRANSACTION_RECORD_ID';
Line: 2055

    /*   Build the complete SELECT statement for each level. */
    /*  */

    xProgress := 'GPOAOB-40-1100';
Line: 2059

    v_ORD_Select := v_ORD_Select                 ||
                        v_ORD_From               ||
                        v_ORD_Where              ||
                        ' FOR UPDATE';
Line: 2064

    v_OAC_Select := v_OAC_Select                 ||
                        v_OAC_From               ||
                        v_OAC_Where              ||
                        ' FOR UPDATE';
Line: 2069

    v_OTX_Select := v_OTX_Select                 ||
                        v_OTX_From               ||
                        v_OTX_Where              ||
                        ' FOR UPDATE';
Line: 2074

    v_DTL_Select := v_DTL_Select                 ||
                        v_DTL_From               ||
                        v_DTL_Where              ||
                        ' FOR UPDATE';
Line: 2079

    v_DAC_Select := v_DAC_Select                 ||
                        v_DAC_From               ||
                        v_DAC_Where              ||
                        ' FOR UPDATE';
Line: 2084

    v_DTX_Select := v_DTX_Select                 ||
                        v_DTX_From               ||
                        v_DTX_Where              ||
                        ' FOR UPDATE';
Line: 2089

    v_ALL_Select := v_ALL_Select                 ||
                        v_ALL_From               ||
                        v_ALL_Where              ||
                        ' FOR UPDATE';
Line: 2095

    /*   Build the DELETE clauses for each interface and extension table. */
    /*  */

    xProgress := 'GPOAOB-40-1110';
Line: 2099

    v_ORD_Delete :=  'DELETE FROM '                        ||
                         p_ORD_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2103

    v_OAC_Delete :=  'DELETE FROM '                        ||
                         p_OAC_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2107

    v_OTX_Delete :=  'DELETE FROM '                        ||
                         p_OTX_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2111

    v_DTL_Delete :=  'DELETE FROM '                        ||
                         p_DTL_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2115

    v_DAC_Delete :=  'DELETE FROM '                        ||
                         p_DAC_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2119

    v_DTX_Delete :=  'DELETE FROM '                        ||
                         p_DTX_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2123

    v_ALL_Delete :=  'DELETE FROM '                        ||
                         p_ALL_Interface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2127

    v_ORD_XDelete :=  'DELETE FROM '                        ||
                         v_ORD_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2131

    v_OAC_XDelete :=  'DELETE FROM '                        ||
                         v_OAC_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2135

    v_OTX_XDelete :=  'DELETE FROM '                        ||
                         v_OTX_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2139

    v_DTL_XDelete :=  'DELETE FROM '                        ||
                         v_DTL_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2143

    v_DAC_XDelete :=  'DELETE FROM '                        ||
                         v_DAC_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2147

    v_DTX_XDelete :=  'DELETE FROM '                        ||
                         v_DTX_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2151

    v_ALL_XDelete :=  'DELETE FROM '                        ||
                         v_ALL_XInterface                   ||
                         ' WHERE ROWID = :Row_ID';
Line: 2156

    /*   Open a cursor for each SELECT and DELETE call.  This tells */
    /*   the database to reserve space for the data returned by the */
    /*   SELECT and DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1120';
Line: 2162

    v_ORD_Select_Cursor        := dbms_sql.open_cursor;
Line: 2164

    v_OAC_Select_Cursor        := dbms_sql.open_cursor;
Line: 2166

    v_OTX_Select_Cursor        := dbms_sql.open_cursor;
Line: 2168

    v_DTL_Select_Cursor        := dbms_sql.open_cursor;
Line: 2170

    v_DAC_Select_Cursor        := dbms_sql.open_cursor;
Line: 2172

    v_DTX_Select_Cursor        := dbms_sql.open_cursor;
Line: 2174

    v_ALL_Select_Cursor        := dbms_sql.open_cursor;
Line: 2177

    v_ORD_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2179

    v_OAC_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2181

    v_OTX_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2183

    v_DTL_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2185

    v_DAC_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2187

    v_DTX_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2189

    v_ALL_Delete_Cursor        := dbms_sql.open_cursor;
Line: 2192

    v_ORD_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2194

    v_OAC_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2196

    v_OTX_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2198

    v_DTL_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2200

    v_DAC_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2202

    v_DTX_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2204

    v_ALL_Delete_XCursor        := dbms_sql.open_cursor;
Line: 2207

    /*   Parse each SELECT and DELETE statement so the database understands */
    /*   the command. */
    /*  */

    xProgress := 'GPOAOB-40-1170';
Line: 2212

    dbms_sql.parse ( v_ORD_Select_Cursor,
                     v_ORD_Select,
                     dbms_sql.native );
Line: 2217

    dbms_sql.parse ( v_OAC_Select_Cursor,
                     v_OAC_Select,
                     dbms_sql.native );
Line: 2222

    dbms_sql.parse ( v_OTX_Select_Cursor,
                     v_OTX_Select,
                     dbms_sql.native );
Line: 2227

    dbms_sql.parse ( v_DTL_Select_Cursor,
                     v_DTL_Select,
                     dbms_sql.native );
Line: 2232

    dbms_sql.parse ( v_DAC_Select_Cursor,
                     v_DAC_Select,
                     dbms_sql.native );
Line: 2237

    dbms_sql.parse ( v_DTX_Select_Cursor,
                     v_DTX_Select,
                     dbms_sql.native );
Line: 2242

    dbms_sql.parse ( v_ALL_Select_Cursor,
                     v_ALL_Select,
                     dbms_sql.native );
Line: 2247

    dbms_sql.parse ( v_ORD_Delete_Cursor,
                     v_ORD_Delete,
                     dbms_sql.native );
Line: 2252

    dbms_sql.parse ( v_OAC_Delete_Cursor,
                     v_OAC_Delete,
                     dbms_sql.native );
Line: 2257

    dbms_sql.parse ( v_OTX_Delete_Cursor,
                     v_OTX_Delete,
                     dbms_sql.native );
Line: 2262

    dbms_sql.parse ( v_DTL_Delete_Cursor,
                     v_DTL_Delete,
                     dbms_sql.native );
Line: 2267

    dbms_sql.parse ( v_DAC_Delete_Cursor,
                     v_DAC_Delete,
                     dbms_sql.native );
Line: 2272

    dbms_sql.parse ( v_DTX_Delete_Cursor,
                     v_DTX_Delete,
                     dbms_sql.native );
Line: 2277

    dbms_sql.parse ( v_ALL_Delete_Cursor,
                     v_ALL_Delete,
                     dbms_sql.native );
Line: 2282

    dbms_sql.parse ( v_ORD_Delete_XCursor,
                     v_ORD_Delete,
                     dbms_sql.native );
Line: 2287

    dbms_sql.parse ( v_OAC_Delete_XCursor,
                     v_OAC_Delete,
                     dbms_sql.native );
Line: 2292

    dbms_sql.parse ( v_OTX_Delete_XCursor,
                     v_OTX_Delete,
                     dbms_sql.native );
Line: 2297

    dbms_sql.parse ( v_DTL_Delete_XCursor,
                     v_DTL_Delete,
                     dbms_sql.native );
Line: 2302

    dbms_sql.parse ( v_DAC_Delete_XCursor,
                     v_DAC_Delete,
                     dbms_sql.native );
Line: 2307

    dbms_sql.parse ( v_DTX_Delete_XCursor,
                     v_DTX_Delete,
                     dbms_sql.native );
Line: 2312

    dbms_sql.parse ( v_ALL_Delete_XCursor,
                     v_ALL_Delete,
                     dbms_sql.native );
Line: 2336

    /*   Define the data type for every column in each SELECT statement */
    /*   so the database understands how to populate it.  Using the */
    /*   K.I.S.S. principle, every data type will be converted to */
    /*   VARCHAR2. */
    /*  */

    xProgress := 'GPOAOB-40-1500';
Line: 2346

      dbms_sql.define_column ( v_ORD_Select_Cursor,
                               v_LoopCount,
                               v_ORD_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2353

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1520';
Line: 2357

    dbms_sql.define_column_rowid ( v_ORD_Select_Cursor,
                                   v_ORD_Count + 1,
                                   v_ORD_RowID );
Line: 2362

    dbms_sql.define_column_rowid ( v_ORD_Select_Cursor,
                                   v_ORD_Count + 2,
                                   v_ORD_XRowID );
Line: 2370

    dbms_sql.define_column ( v_ORD_Select_Cursor,
                             v_ORD_Count + 3,
                             v_TransactionRecordID );
Line: 2378

      dbms_sql.define_column ( v_OAC_Select_Cursor,
                               v_LoopCount,
                               v_OAC_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2385

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1620';
Line: 2389

    dbms_sql.define_column_rowid ( v_OAC_Select_Cursor,
                                   v_OAC_Count + 1,
                                   v_OAC_RowID );
Line: 2394

    dbms_sql.define_column_rowid ( v_OAC_Select_Cursor,
                                   v_OAC_Count + 2,
                                   v_OAC_XRowID );
Line: 2403

    dbms_sql.define_column ( v_OAC_Select_Cursor,
                             v_OAC_Count + 3,
                             v_TransactionRecordID );
Line: 2412

      dbms_sql.define_column ( v_OTX_Select_Cursor,
                               v_LoopCount,
                               v_OTX_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2419

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1720';
Line: 2423

    dbms_sql.define_column_rowid ( v_OTX_Select_Cursor,
                                   v_OTX_Count + 1,
                                   v_OTX_RowID );
Line: 2428

    dbms_sql.define_column_rowid ( v_OTX_Select_Cursor,
                                   v_OTX_Count + 2,
                                   v_OTX_XRowID );
Line: 2437

    dbms_sql.define_column ( v_OTX_Select_Cursor,
                             v_OTX_Count + 3,
                             v_TransactionRecordID );
Line: 2445

      dbms_sql.define_column ( v_DTL_Select_Cursor,
                               v_LoopCount,
                               v_DTL_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2452

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1820';
Line: 2456

    dbms_sql.define_column_rowid ( v_DTL_Select_Cursor,
                                   v_DTL_Count + 1,
                                   v_DTL_RowID );
Line: 2461

    dbms_sql.define_column_rowid ( v_DTL_Select_Cursor,
                                   v_DTL_Count + 2,
                                   v_DTL_XRowID );
Line: 2470

    dbms_sql.define_column ( v_DTL_Select_Cursor,
                             v_DTL_Count + 3,
                             v_TransactionRecordID );
Line: 2478

      dbms_sql.define_column ( v_DAC_Select_Cursor,
                               v_LoopCount,
                               v_DAC_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2485

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-1920';
Line: 2489

    dbms_sql.define_column_rowid ( v_DAC_Select_Cursor,
                                   v_DAC_Count + 1,
                                   v_DAC_RowID );
Line: 2494

    dbms_sql.define_column_rowid ( v_DAC_Select_Cursor,
                                   v_DAC_Count + 2,
                                   v_DAC_XRowID );
Line: 2503

    dbms_sql.define_column ( v_DAC_Select_Cursor,
                             v_DAC_Count + 3,
                             v_TransactionRecordID );
Line: 2511

      dbms_sql.define_column ( v_DTX_Select_Cursor,
                               v_LoopCount,
                               v_DTX_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2518

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-2020';
Line: 2522

    dbms_sql.define_column_rowid ( v_DTX_Select_Cursor,
                                   v_DTX_Count + 1,
                                   v_DTX_RowID );
Line: 2527

    dbms_sql.define_column_rowid ( v_DTX_Select_Cursor,
                                   v_DTX_Count + 2,
                                   v_DTX_XRowID );
Line: 2536

    dbms_sql.define_column ( v_DTX_Select_Cursor,
                             v_DTX_Count + 3,
                             v_TransactionRecordID );
Line: 2544

      dbms_sql.define_column ( v_ALL_Select_Cursor,
                               v_LoopCount,
                               v_ALL_Select,
                               ece_extract_utils_pub.G_MaxColWidth );
Line: 2551

    /*   Define the ROWIDs for the DELETE statements. */
    /*  */

    xProgress := 'GPOAOB-40-2120';
Line: 2555

    dbms_sql.define_column_rowid ( v_ALL_Select_Cursor,
                                   v_ALL_Count + 1,
                                   v_ALL_RowID );
Line: 2560

    dbms_sql.define_column_rowid ( v_ALL_Select_Cursor,
                                   v_ALL_Count + 2,
                                   v_ALL_XRowID );
Line: 2569

    dbms_sql.define_column ( v_ALL_Select_Cursor,
                             v_ALL_Count + 3,
                             v_TransactionRecordID );
Line: 2574

    /*  Bind columns needed for order select */
    /*   */

    xProgress := 'GPOAOB-40-2170';
Line: 2578

    dbms_sql.bind_variable ( v_ORD_Select_Cursor,
                             'RUN_ID',
                             p_RunID );
Line: 2583

    /*   Execute the Order level SELECT statement. */
    /*  */

    xProgress := 'GPOAOB-40-2200';
Line: 2587

    v_Dummy := dbms_sql.execute ( v_ORD_Select_Cursor );
Line: 2594

    WHILE dbms_sql.fetch_rows ( v_ORD_Select_Cursor ) > 0
    LOOP

      /*  */
      /*   Store the returned values in the PL/SQL table. */
      /*  */

      xProgress := 'GPOAOB-40-2220';
Line: 2605

        dbms_sql.column_value ( v_ORD_Select_Cursor,
                                v_LoopCount,
                                v_ORD_Table(v_LoopCount).value );
Line: 2615

      dbms_sql.column_value ( v_ORD_Select_Cursor,
                              v_ORD_Count + 1,
                              v_ORD_RowID );
Line: 2620

      dbms_sql.column_value ( v_ORD_Select_Cursor,
                              v_ORD_Count + 2,
                              v_ORD_XRowID );
Line: 2681

      /*   and Transaction_Record_ID) in the Order level SELECT clause */
      /*   into local variables and use the values to bind the variables */
      /*   in the SELECT clauses of the Order Charges, Text, Detail levels */
      /*  */

      xProgress := 'GPOAOB-40-2320';
Line: 2687

      dbms_sql.column_value ( v_ORD_Select_Cursor,
                              v_ORD_Count + 3,
                              v_TransactionRecordID );
Line: 2707

      dbms_sql.bind_variable ( v_OAC_Select_Cursor,
                               'RUN_ID',
                               p_RunID );
Line: 2712

      dbms_sql.bind_variable ( v_OAC_Select_Cursor,
                               'Order_ID',
                               v_Order_ID );
Line: 2717

      dbms_sql.bind_variable ( v_OTX_Select_Cursor,
                               'RUN_ID',
                               p_RunID );
Line: 2722

      dbms_sql.bind_variable ( v_OTX_Select_Cursor,
                               'Order_ID',
                               v_Order_ID );
Line: 2727

      /*   Execute the Order Charges SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-40-2330';
Line: 2731

      v_Dummy := dbms_sql.execute ( v_OAC_Select_Cursor );
Line: 2743

      WHILE dbms_sql.fetch_rows ( v_OAC_Select_Cursor ) > 0
      LOOP
        xProgress := 'GPOAOB-40-2350';
Line: 2749

          dbms_sql.column_value ( v_OAC_Select_Cursor,
                                  v_LoopCount,
                                  v_OAC_Table(v_LoopCount).value );
Line: 2759

        dbms_sql.column_value ( v_OAC_Select_Cursor,
                                v_OAC_Count + 1,
                                v_OAC_RowID );
Line: 2764

        dbms_sql.column_value ( v_OAC_Select_Cursor,
                                v_OAC_Count + 2,
                                v_OAC_XRowID );
Line: 2769

        /*  Update Common Key */
        /*  */
        xProgress := 'GPOAOB-40-2382';
Line: 2802

        /*   Bind the variables (ROWIDs) in the DELETE statements for the */
        /*   OAC interface tables. */
        /*  */

        xProgress := 'GPOAOB-40-2391';
Line: 2807

        dbms_sql.bind_variable ( v_OAC_Delete_Cursor,
                                 'Row_ID',
                                 v_OAC_RowID );
Line: 2812

        dbms_sql.bind_variable ( v_OAC_Delete_XCursor,
                                 'Row_ID',
                                 v_OAC_XRowID );
Line: 2817

        /*   Delete the rows from the interface tables. */
        /*  */

        xProgress := 'GPOAOB-40-2393';
Line: 2821

        v_Dummy := dbms_sql.execute ( v_OAC_Delete_Cursor );
Line: 2824

        v_Dummy := dbms_sql.execute ( v_OAC_Delete_XCursor );
Line: 2829

      /*   Execute the Order Text SELECT statement. */
      /*  */

      xProgress := 'GPOAOB-40-2330';
Line: 2833

      v_Dummy := dbms_sql.execute ( v_OTX_Select_Cursor );
Line: 2846

      WHILE dbms_sql.fetch_rows ( v_OTX_Select_Cursor ) > 0
      LOOP
        xProgress := 'GPOAOB-40-2450';
Line: 2852

          dbms_sql.column_value ( v_OTX_Select_Cursor,
                                  v_LoopCount,
                                  v_OTX_Table(v_LoopCount).value );
Line: 2862

        dbms_sql.column_value ( v_OTX_Select_Cursor,
                                v_OTX_Count + 1,
                                v_OTX_RowID );
Line: 2867

        dbms_sql.column_value ( v_OTX_Select_Cursor,
                                v_OTX_Count + 2,
                                v_OTX_XRowID );
Line: 2872

        /*  Update Common Key */
        /*  */
        xProgress := 'GPOAOB-40-2482';
Line: 2906

        /*   Bind the variables (ROWIDs) in the DELETE statements for the */
        /*   OTX interface tables. */
        /*  */

        xProgress := 'GPOAOB-40-2491';
Line: 2911

        dbms_sql.bind_variable ( v_OTX_Delete_Cursor,
                                 'Row_ID',
                                 v_OTX_RowID );
Line: 2916

        dbms_sql.bind_variable ( v_OTX_Delete_XCursor,
                                 'Row_ID',
                                 v_OTX_XRowID );
Line: 2921

        /*   Delete the rows from the interface tables. */
        /*  */

        xProgress := 'GPOAOB-40-2493';
Line: 2925

        v_Dummy := dbms_sql.execute ( v_OTX_Delete_Cursor );
Line: 2928

        v_Dummy := dbms_sql.execute ( v_OTX_Delete_XCursor );
Line: 2933

      /*   Bind the variables (ROWIDs) in the DELETE statements for the */
      /*   Delivery and Delivery Attribute interface tables. */
      /*  */

        /*  */
        /*   Execute the Detail level SELECT statement. */
        /*  */
        xProgress := 'GPOAOB-40-2500';
Line: 2941

        dbms_sql.bind_variable ( v_DTL_Select_Cursor,
                                 'RUN_ID',
                                 p_RunID );
Line: 2945

        dbms_sql.bind_variable ( v_DTL_Select_Cursor,
                                 'Order_ID',
                                 v_Order_ID );
Line: 2950

        v_Dummy := dbms_sql.execute ( v_DTL_Select_Cursor );
Line: 2956

        WHILE dbms_sql.fetch_rows ( v_DTL_Select_Cursor ) > 0
        LOOP
          xProgress := 'GPOAOB-40-2530';
Line: 2962

            dbms_sql.column_value ( v_DTL_Select_Cursor,
                                    v_LoopCount,
                                    v_DTL_Table(v_LoopCount).value);
Line: 2972

          dbms_sql.column_value ( v_DTL_Select_Cursor,
                                  v_DTL_Count + 1,
                                  v_DTL_RowID );
Line: 2977

          dbms_sql.column_value ( v_DTL_Select_Cursor,
                                  v_DTL_Count + 2,
                                  v_DTL_XRowID );
Line: 3015

          dbms_sql.bind_variable ( v_DTL_Delete_Cursor,
                                   'Row_ID',
                                   v_DTL_RowID );
Line: 3020

          dbms_sql.bind_variable ( v_DTL_Delete_XCursor,
                                   'Row_ID',
                                   v_DTL_XRowID );
Line: 3025

          /*   Delete the rows from the interface table. */
          /*  */

          xProgress := 'GPOAOB-40-2630';
Line: 3029

          v_Dummy := dbms_sql.execute ( v_DTL_Delete_Cursor );
Line: 3032

          v_Dummy := dbms_sql.execute ( v_DTL_Delete_XCursor );
Line: 3035

      /*   Execute the Detail DAC SELECT statement. */
      /*  */
      xProgress := 'GPOAOB-40-2650';
Line: 3046

      dbms_sql.bind_variable ( v_DAC_Select_Cursor,
                               'RUN_ID',
                               p_RunID );
Line: 3050

      dbms_sql.bind_variable ( v_DAC_Select_Cursor,
                               'Line_ID',
                               v_Line_ID );
Line: 3055

      v_Dummy := dbms_sql.execute ( v_DAC_Select_Cursor );
Line: 3062

      WHILE dbms_sql.fetch_rows ( v_DAC_Select_Cursor ) > 0
      LOOP
        xProgress := 'GPOAOB-40-2700';
Line: 3068

          dbms_sql.column_value ( v_DAC_Select_Cursor,
                                  v_LoopCount,
                                  v_DAC_Table(v_LoopCount).value );
Line: 3078

        dbms_sql.column_value ( v_DAC_Select_Cursor,
                                v_DAC_Count + 1,
                                v_DAC_RowID );
Line: 3083

        dbms_sql.column_value ( v_DAC_Select_Cursor,
                                v_DAC_Count + 2,
                                v_DAC_XRowID );
Line: 3115

        dbms_sql.bind_variable ( v_DAC_Delete_Cursor,
                                 'Row_ID',
                                 v_DAC_RowID );
Line: 3120

        dbms_sql.bind_variable ( v_DAC_Delete_XCursor,
                                 'Row_ID',
                                 v_DAC_XRowID );
Line: 3125

        v_Dummy := dbms_sql.execute ( v_DAC_Delete_Cursor );
Line: 3128

        v_Dummy := dbms_sql.execute ( v_DAC_Delete_XCursor );
Line: 3132

      dbms_sql.bind_variable ( v_DTX_Select_Cursor,
                               'RUN_ID',
                               p_RunID );
Line: 3136

      dbms_sql.bind_variable ( v_DTX_Select_Cursor,
                               'Line_ID',
                               v_Line_ID );
Line: 3141

      v_Dummy := dbms_sql.execute ( v_DTX_Select_Cursor );
Line: 3148

      WHILE dbms_sql.fetch_rows ( v_DTX_Select_Cursor ) > 0
      LOOP
        xProgress := 'GPOAOB-40-2700';
Line: 3154

          dbms_sql.column_value ( v_DTX_Select_Cursor,
                                  v_LoopCount,
                                  v_DTX_Table(v_LoopCount).value );
Line: 3164

        dbms_sql.column_value ( v_DTX_Select_Cursor,
                                v_DTX_Count + 1,
                                v_DTX_RowID );
Line: 3169

        dbms_sql.column_value ( v_DTX_Select_Cursor,
                                v_DTX_Count + 2,
                                v_DTX_XRowID );
Line: 3202

        dbms_sql.bind_variable ( v_DTX_Delete_Cursor,
                                 'Row_ID',
                                 v_DTX_RowID );
Line: 3207

        dbms_sql.bind_variable ( v_DTX_Delete_XCursor,
                                 'Row_ID',
                                 v_DTX_XRowID );
Line: 3212

        v_Dummy := dbms_sql.execute ( v_DTX_Delete_Cursor );
Line: 3215

        v_Dummy := dbms_sql.execute ( v_DTX_Delete_XCursor );
Line: 3219

      dbms_sql.bind_variable ( v_ALL_Select_Cursor,
                               'RUN_ID',
                               p_RunID );
Line: 3223

      dbms_sql.bind_variable ( v_ALL_Select_Cursor,
                               'Line_ID',
                               v_Line_ID );
Line: 3228

      v_Dummy := dbms_sql.execute ( v_ALL_Select_Cursor );
Line: 3235

      WHILE dbms_sql.fetch_rows ( v_ALL_Select_Cursor ) > 0
      LOOP
        xProgress := 'GPOAOB-40-2700';
Line: 3241

          dbms_sql.column_value ( v_ALL_Select_Cursor,
                                  v_LoopCount,
                                  v_ALL_Table(v_LoopCount).value );
Line: 3251

        dbms_sql.column_value ( v_ALL_Select_Cursor,
                                v_ALL_Count + 1,
                                v_ALL_RowID );
Line: 3256

        dbms_sql.column_value ( v_ALL_Select_Cursor,
                                v_ALL_Count + 2,
                                v_ALL_XRowID );
Line: 3289

        dbms_sql.bind_variable ( v_ALL_Delete_Cursor,
                                 'Row_ID',
                                 v_ALL_RowID );
Line: 3294

        dbms_sql.bind_variable ( v_ALL_Delete_XCursor,
                                 'Row_ID',
                                 v_ALL_XRowID );
Line: 3299

        v_Dummy := dbms_sql.execute ( v_ALL_Delete_Cursor );
Line: 3302

        v_Dummy := dbms_sql.execute ( v_ALL_Delete_XCursor );
Line: 3308

      dbms_sql.bind_variable ( v_ORD_Delete_Cursor,
                               'Row_ID',
                               v_ORD_RowID );
Line: 3313

      dbms_sql.bind_variable ( v_ORD_Delete_XCursor,
                               'Row_ID',
                               v_ORD_XRowID );
Line: 3318

      /*   Delete the rows from the interface tables. */
      /*  */

      xProgress := 'GPOAOB-40-3030';
Line: 3322

      v_Dummy := dbms_sql.execute ( v_ORD_Delete_Cursor );
Line: 3325

      v_Dummy := dbms_sql.execute ( v_ORD_Delete_XCursor );
Line: 3330

    /*   Commit the interface table DELETEs. */
    /*  */

    xProgress := 'GASNOB-40-3070';
Line: 3342

    dbms_sql.close_cursor ( v_ORD_Select_Cursor );
Line: 3344

    dbms_sql.close_cursor ( v_OAC_Select_Cursor );
Line: 3346

    dbms_sql.close_cursor ( v_OTX_Select_Cursor );
Line: 3348

    dbms_sql.close_cursor ( v_DTL_Select_Cursor );
Line: 3350

    dbms_sql.close_cursor ( v_DAC_Select_Cursor );
Line: 3352

    dbms_sql.close_cursor ( v_DTX_Select_Cursor );
Line: 3354

    dbms_sql.close_cursor ( v_ALL_Select_Cursor );
Line: 3357

    dbms_sql.close_cursor ( v_ORD_Delete_Cursor );
Line: 3359

    dbms_sql.close_cursor ( v_OAC_Delete_Cursor );
Line: 3361

    dbms_sql.close_cursor ( v_OTX_Delete_Cursor );
Line: 3363

    dbms_sql.close_cursor ( v_DTL_Delete_Cursor );
Line: 3365

    dbms_sql.close_cursor ( v_DAC_Delete_Cursor );
Line: 3367

    dbms_sql.close_cursor ( v_DTX_Delete_Cursor );
Line: 3369

    dbms_sql.close_cursor ( v_ALL_Delete_Cursor );
Line: 3372

    dbms_sql.close_cursor ( v_ORD_Delete_XCursor );
Line: 3374

    dbms_sql.close_cursor ( v_OAC_Delete_XCursor );
Line: 3376

    dbms_sql.close_cursor ( v_OTX_Delete_XCursor );
Line: 3378

    dbms_sql.close_cursor ( v_DTL_Delete_XCursor );
Line: 3380

    dbms_sql.close_cursor ( v_DAC_Delete_XCursor );
Line: 3382

    dbms_sql.close_cursor ( v_DTX_Delete_XCursor );
Line: 3384

    dbms_sql.close_cursor ( v_ALL_Delete_XCursor );