Need to update a table that contains large volume of xml data

Hi,
i want to update a table that contains large amount of XML data.
when execute the query it shows an error .
Xml parsing is failed .But tghe data in xml is well formed.don't know why its happening .
Pls help me on this.
Thanks,
Fahad

below is my code..
pls do the needful.
create or replace
PROCEDURE SPFETCHRETRIEVEDATA (
    p_txteordernum IN trnorderitem.TXTEORDERNUM%TYPE,
    p_intversionnum IN trnorderitem.INTVERSIONNUM%TYPE ,
    p_interrorcode OUT NUMBER)
    AS
    ------variable declaration---
    v_xmlorderitem XMLTYPE;
    v_trnsiebelmodification XMLTYPE;
    diff XMLTYPE;
        BEGIN
            BEGIN
            select xmlorderitemxml into v_xmlorderitem
            from trnorderitem
            where TXTEORDERNUM= p_txteordernum
            AND INTVERSIONNUM= p_intversionnum;
              END;
           --insert into tempxml values ('xmlorderitem',v_xmlorderitem);commit;
            BEGIN
            SELECT TrnSiebelModificationXML into v_trnsiebelmodification
            from trnsiebelmodification
            where TXTEORDERNUM= p_txteordernum
            AND INTVERSIONNUM= p_intversionnum
            AND TXTSIEBELFIELDNAME='Asset XML';
          --  insert into tempxml values ('trnsiebelmodification',v_trnsiebelmodification);commit;
--            EXCEPTION
--            WHEN TOO_MANY_ROWS THEN
--            dbms_output.put_line('Statement return multiple rows');
             END;
--------comparing differences between xml data and storing into a variable -----------
           BEGIN
           select xmldiff(v_xmlorderitem, v_trnsiebelmodification)
           into   diff
           from   dual;
           --insert into tempxml values ('diffxml',diff);commit;
           if diff IS NOT NULL THEN
           UPDATE trnsiebelmodification
            SET TXTACTIONTYPE='Update2'
            WHERE TXTEORDERNUM= p_txteordernum
            AND INTVERSIONNUM= p_intversionnum
             AND TXTSIEBELFIELDNAME='Asset XML';
            ELSE
            UPDATE trnsiebelmodification
            SET TXTACTIONTYPE='No Change2'
            WHERE TXTEORDERNUM= p_txteordernum
            AND INTVERSIONNUM= p_intversionnum
             AND TXTSIEBELFIELDNAME='Asset XML';
            END IF;
            END;
    END SPFETCHRETRIEVEDATA;Edited by: BluShadow on 11-Sep-2012 14:13
added {noformat}{noformat} tags. Please read: {message:id=9360002} and learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Finding tables that contain a column

    Hi all,
    I am a relatively new SQL user and am trying to figure out how to find all tables that contain a particular column, eg, 'cust_id'. I have tried a bunch of different things and searched on Google but I think I don't quite have/understand the syntax I need.
    Also, how would I display a list of all the columns in all the tables?
    Thanks!

    Hi,
    apex wrote:
    Thanks for the input! I got my first question working.
    I am still trying to understand basic ideas in SQL, eg what is the all_tab_columns in Raj's link, as usually I call something from a particular table. All_tab_columns is a view in the sys schema. There are several tables and views in the sys schema whose names start with user_ or all_ (or dba_, but you may not have privileges to see those) which are collectively called the Data Dictionary . They contain information about the database itself, including the tables in the database.
    It states there that the ANALYZE command can be used to gather statistics for this view, but I have not been able to get it working.
    Eg, in Oracle SQL Developer, I type in "help <analyze>" but it doesn't tell me what the syntax of this command is, I had to use Google which gives the following
    To estimate statistics:
    ANALYZE TABLE tablename ESTIMATE STATISTICS SAMPLE 30 PERCENT;
    To compute statistics:
    ANALYZE TABLE tablename COMPUTE STATISTICS;
    But when I try the last one it just says
    table CUSTOMERS analyzed.
    but I don't see any output, and if I try to use ANALYZE all_tab_columns; it gives me an error message. When you analyze a table, a message like "table CUSTOMERS analyzed" is all you expect to see. The main purpose of anlyzing isn't to produce a report for you to read (as helpful as thant might be) but to update the data dictionary, so that Oracle knows how to do queries efficiently. For example, if you have a query like
    SELECT  *
    FROM    patients
    WHERE   birth_date  = DATE '1981-07-28'
    AND     state_abbr  = 'NY';How does the system decide whether to look for rows with the right birth_date first, or the right state? The statistics in the data dictionary might tell it that birth_date has many more ditinct values, so looking for a particular birth_date first will narrow down the search much faster than looking for a particular state.
    By the way, the ANALYZE command has been deprecated. Unless you're using a very old version of Oracle, you should be calling the dbms_stats package instead:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm#CIHBIEII
    I am using Sam's teach yourself SQL in 10 minutes which is very good at the very specific commands and functions it describes but doesn't really orient me to the language, doesn't explain how to use the help functions, or any treatment of tasks not contanied in the book. If someone can recommend another source would appreciate it. Much thanks!That's the frustrating thing about books; you can't ask them questions. (On the other hand, that's one of the nice things about this forum.)
    I can understand why the book doesn't say much about analyzing. The book is about SQL (e.g., how to create a table or write a query). Statistics are not in the scope of that book. Actually, they're not really in the scope of this forum, either. If you have questions about statistics, you're better off posting them in the "Database - General" forum:
    General Database Discussions

  • Hyperion Explorer 8.3 querying multiple tables that contain a specific item

    I have 3 annual tables that contain data for 3 different years.  Each table has a sale amount, item sold, and customer ID.  I want to pull a specific customer ID from all 3 tables at once. 
    Is there a way to achieve this?
    Thanks!
    Johnny

    Add the 3 fields from the first table, then click Query > Append Query, then add the same 3 fields in the same order from the second table, then add the same 3 fields in the same order from the third table.  This creates a UNION between the three tables; which means they need to be in the same order and have the same datatype.
    If you want to show duplicate data found in the different sources, just change the UNION operator to a UNION ALL operator, otherwise it will suppress any duplicate rows.
    To limit the data to one specific customer ID, you can set a limit on each of the UNION tabs with 'Customer ID = <selection>'.
    Good luck!
    Jarod Vierstra

  • Need a parked/blocked report that contains both the FI and MM number for ea

    Hi Guys,
    Business need a report which contains the translation of 'MM' numbers (typically beginning with '51') assigned for parked PO invoices vs. the 'FI' document number that comes out in the parked report. 
    Ideally, business need a parked/blocked report that contains both the FI and MM number for each record.
    Can someone help me pull this report from MM
    Thanks and Regards,
    Habeeb

    Hello Habeeb,
    Check out the report MR43 which gives information about Parked invoice. Also you can have a look on MIR6 with check box Parked Innvoice.
    The main table for parking invoice is VBKPF and other relevent tables are as follow:
    VBKPF                          Document Header for Document Parking
    VBSEC                          Document Parking One-Time Data Document Segment
    VBSEGA                         Document Segment for Assets Document Parking
    VBSEGD                         Document Segment for Customer Document Parking
    VBSEGK                         Document Segment for Vendor Document Parking
    VBSEGS                         Document Segment for G/L Accounts Document Parking
    VBSET                          Document Segment for Taxes Document Parking
    Hope this helps.
    Regards
    Arif Mansuri

  • Table that contain epstp field

    dear all expert
    i want to create report for pr relase
    i have some problem, in item category i found epstp field, but i cannot found the table
    in eban i found pstyp, but its different with epstp
    please help me to found table that contain epstp field

    Hi,
    you can find in T163X and T163Y.
    epstp is Item category in purchasing document.
    Regrds,
    Nikhil.

  • I'm showing that I need to update an app that I've updated over and over. How do I correct this?

    It's showing that I need to update an app that I've updated over and over. How do I correct this?

    I'd suggest deleting it from your device and your Apps library and then re-download from iTunes.

  • Tables that contains the legacy systems authorization information

    Hi all,
    I'm setting up legacy systems in my SAP GRC 5.3. We would like to check if the information uploaded from the extractor is correct. Does anyone know what are the GRC 5.3 tables that contains all the systems authorization from the legacy system uploaded?
    Thank you in advanced.

    Hi,
    If I understand your question correctly, you wish to know the GRC 5.3 RAR tables that contains the authorization information and want to connect a legacy system.
    If you check the /VIRSA/* tables, you can find all the GRC related tables.
    However, if you are trying to perform an offline risk analysis, refer the below Article:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a06e3f-24b6-2a10-dba0-e8174339c47c
    Hope this helps!!
    Regards,
    Raghu

  • ANYBODY GIVE ME THE TABLE/TABLES THAT CONTAIN TCODE AND DEVELOPMENT CLASS

    ANYBODY GIVE ME THE TABLE/TABLES THAT CONTAIN TCODE AND DEVELOPMENT CLASS

    Hi phani,
                 The table TSTC contains the transaction codes.
    Also the below links provides a lot of info on the Standard SAP Tables.
    http://www.sapdev.co.uk/tables/tables.htm
    Pls reward if useful..
    Thanks,
    Sirisha.

  • My Mac refuses to open certain pages e.g. google/facebook for a weird reason "Your flash player may be out of date and you need to update it", but my flash player is up to date.

    My Mac refuses to open certain pages e.g. google/facebook for a weird reason "Your flash player may be out of date and you need to update it", but my flash player is up to date. I tried to install a new flash player version "setup.exe" but it said the file cannot be opened because the application is not supported on MAC OS X, does anyone have same problem? please help.
    Thanks

    i dont use google chrome,

  • How to send large amount of XML data in one CLOB variable

    Hi,
    I am sending large amount of XML data to TCP/IP port in one CLOB variable.
    My requirement is to send the whole data in one go in one CLOB variable.
    But that CLOB variable is not sufficient to hold all the data.
    Please suggest some solution.
    Thanks in advance

    Hi Here is my code:
    CREATE OR REPLACE PACKAGE BODY APPS.XXMB_WIP_PROD_TAG_DOOR_PKG
    AS
    PROCEDURE xxmb_get_xml_data_1270 (
    -- errbuf OUT VARCHAR2,
    -- retcode OUT NUMBER,
    p_org IN VARCHAR2,
    p_limit_to_global IN VARCHAR2,
    p_label IN VARCHAR2,
    p_printer IN VARCHAR2,
    p_quantity IN VARCHAR2,
    p_print_method IN VARCHAR2,
    p_enable_release IN VARCHAR2,
    p_enable_serial_no IN VARCHAR2,
    p_release IN VARCHAR2,
    p_rep_group IN VARCHAR2,
    p_cart_type IN VARCHAR2,
    p_cart_no_from IN VARCHAR2,
    p_cart_no_to IN VARCHAR2,
    p_serial_no IN VARCHAR2
    AS
    CURSOR c_xml_data_door (
    p_org IN VARCHAR2,
    p_label IN VARCHAR2,
    p_printer IN VARCHAR2,
    p_quantity IN VARCHAR2,
    p_print_method IN VARCHAR2,
    p_rep_group IN VARCHAR2,
    p_release IN VARCHAR2,
    p_cart_type IN VARCHAR2,
    p_cart_no_from IN VARCHAR2,
    p_cart_no_to IN VARCHAR2,
    p_serial_no IN VARCHAR2
    IS
    SELECT xxasa.item_id AS item_id, xcs.serial_number AS serial_number,xxcpf.cart_type,xcs.destination_cart_num cart,xcs.destination_slot_num slot
    CURSOR c_product_detail (
    l_product IN NUMBER,
    l_serial_num IN VARCHAR2,
    p_limit_to_global IN VARCHAR2
    IS
    SELECT xcra_specie.reference_id AS reference_id,
    xcra_ege.attribute_value AS ege, xcs.item_id AS item_id,
    AND msib.inventory_item_id = l_product
    and xcs.organization_id = nvl(p_org, xcs.organization_id)
    AND xcs.serial_number = NVL (l_serial_num, xcs.serial_number);
    /*-------------------------------------------------------+
    | Cursor to fetch the data for special Message Label |
    +-------------------------------------------------------*/
    CURSOR c_count (p_item_id IN NUMBER)
    IS
    SELECT xcrav.attribute_value, xcs.serial_number, xcs.cabinet_number
    FROM xxmb_czmfg_ref_attributes xcrav,
    cz_config_attributes cca,
    AND msib.organization_id = xcs.organization_id
    AND msib.inventory_item_id = xcs.item_id;
    /*--------------------------+
    | Common variables |
    +--------------------------*/
    v_limit_to_global VARCHAR2 (100);
    l_label_count NUMBER := 1;
    total_rec NUMBER;
    l_rewrite VARCHAR2 (1) := 'N';
    l_file_count NUMBER := 1;
    l_separate_line VARCHAR2 (10);
    BEGIN
    fnd_profile.get ('WMS_LABEL_OUTPUT_DIRECTORY', l_output_dir);
    fnd_profile.get ('WMS_LABEL_FILE_PREFIX', l_output_file_prefix);
    l_request_id := apps.fnd_global.conc_request_id;
    l_output_file_name :=
    l_output_file_prefix || l_request_id || l_file_end;
    l_dir_seperator := '/';
    IF (INSTR (l_output_dir, l_dir_seperator) = 0)
    THEN
    l_dir_seperator := '\';
    END IF;
    v_label := p_label;
    v_printer := p_printer;
    v_quantity := p_quantity;
    V_LIMIT_TO_GLOBAL := P_LIMIT_TO_GLOBAL;
    L_XML_CONTENT := '<?xml version="1.0" encoding="UTF-8" ?>';
    L_XML_CONTENT := L_XML_CONTENT || '<!DOCTYPE labels SYSTEM "label.dtd">';
    L_XML_CONTENT := L_XML_CONTENT || '<labels>';
    FOR r_xml_data_door IN c_xml_data_door (p_org,
    p_label,
    p_printer,
    p_quantity,
    p_print_method,
    p_rep_group,
    p_release,
    p_cart_type,
    p_cart_no_from,
    p_cart_no_to,
    p_serial_no
    LOOP
    -- dbms_output.put_line ( 1 );
    FOR r_product_detail IN
    c_product_detail (r_xml_data_door.item_id,
    r_xml_data_door.serial_number,
    v_limit_to_global
    LOOP
    -- dbms_output.put_line ( 2 );
    -- l_xml_content := '<?xml version="1.0" encoding="UTF-8" ?>';
    -- l_xml_content := l_xml_content || '<!DOCTYPE labels SYSTEM "label.dtd">';
    -- l_xml_content := l_xml_content || '<labels>';
    fnd_file.put_line (fnd_file.LOG, 'label cnt: ' || l_label_count);
    dbms_output.put_line (l_label_count);
    L_XML_CONTENT := L_XML_CONTENT || '<label _FORMAT='
    || '"'
    || 'lib://FRD/'
    || v_label
    || '"'
    || ' _PRINTERNAME='
    || '"'
    || v_printer
    || '"'
    || ' _QUANTITY='
    || '"'
    || v_quantity
    || '"'
    || '>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Color">'
    || R_PRODUCT_DETAIL.COLOR
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT ||'<variable name= "Model">'
    || R_PRODUCT_DETAIL.model
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Build_Date">'
    || R_PRODUCT_DETAIL.BUILD_DATE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Assy_Cart">'
    || R_PRODUCT_DETAIL.ASSY_CART
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Assy_Slot">'
    || R_PRODUCT_DETAIL.ASSY_SLOT
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Assy_Line">'
    || R_PRODUCT_DETAIL.ASSY_LINE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Finish_Cart">'
    || R_PRODUCT_DETAIL.FINISH_CART
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Finish_Slot">'
    || R_PRODUCT_DETAIL.FINISH_SLOT
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Serial_Number">'
    || R_PRODUCT_DETAIL.SERIAL_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Serial_Number_Barcode">'
    || R_PRODUCT_DETAIL.SERIAL_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Specie">'
    || R_PRODUCT_DETAIL.SPECIE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT ||'<variable name= "Truck_Group">'
    || R_PRODUCT_DETAIL.TRUCK_GROUP
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Label_Sequence_No">'
    || L_LABEL_COUNT
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT ||'<variable name= "WIP_Cart">'
    || R_PRODUCT_DETAIL.WIP_CART
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "WIP_Slot">'
    || R_PRODUCT_DETAIL.WIP_SLOT
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Cabinet_Sequence_No">'
    || R_PRODUCT_DETAIL.CAB_SEQ_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "RAW_PART_NO">'
    || R_PRODUCT_DETAIL.RAW_PART_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "JC">'
    || R_PRODUCT_DETAIL.JC
    || '</variable>' ;
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "QC">'
    || R_PRODUCT_DETAIL.QC
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Thickness">'
    || R_PRODUCT_DETAIL.THICKNESS
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Width">'
    || R_PRODUCT_DETAIL.width
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Length">'
    || R_PRODUCT_DETAIL.length
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Overlay">'
    || R_PRODUCT_DETAIL.OVERLAY
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Options">'
    || R_PRODUCT_DETAIL.OPTIONS
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Stop">'
    || R_PRODUCT_DETAIL.stop
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Profile_No">'
    || R_PRODUCT_DETAIL.PROFILE_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Door_Style">'
    || R_PRODUCT_DETAIL.DOOR_STYLE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Glaze">'
    || R_PRODUCT_DETAIL.GLAZE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Shape">'
    || R_PRODUCT_DETAIL.SHAPE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Glass">'
    || R_PRODUCT_DETAIL.GLASS
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Hinge_Side">'
    || R_PRODUCT_DETAIL.HINGE_SIDE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Hinge_Type">'
    || R_PRODUCT_DETAIL.HINGE_TYPE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "EGE">'
    || R_PRODUCT_DETAIL.EGE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Door_Style_Code">'
    || R_PRODUCT_DETAIL.DOOR_STYLE_CODE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Finish_Technique">'
    || R_PRODUCT_DETAIL.FINISH_TECHNIQUE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Hinge_Location">'
    || R_PRODUCT_DETAIL.HINGE_LOCATION
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Construction_Type">'
    || R_PRODUCT_DETAIL.CONSTRUCTION_TYPE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_Type">'
    || R_PRODUCT_DETAIL.PANEL_TYPE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_Profile_No">'
    || R_PRODUCT_DETAIL.PANEL_PROFILE_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Rail_Profile_No">'
    || R_PRODUCT_DETAIL.RAIL_PROFILE_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Rail_1_Length">'
    || R_PRODUCT_DETAIL.RAIL_1_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Stile_Profile_No">'
    || R_PRODUCT_DETAIL.STILE_PROFILE_NO
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Rail_2_Length">'
    || R_PRODUCT_DETAIL.RAIL_2_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Stile_1_Length">'
    || R_PRODUCT_DETAIL.STILE_1_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Stile_2_Length">'
    || R_PRODUCT_DETAIL.STILE_2_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_1_Width">'
    || R_PRODUCT_DETAIL.PANEL_1_WIDTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_1_Length">'
    || R_PRODUCT_DETAIL.PANEL_1_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_2_Width">'
    || R_PRODUCT_DETAIL.PANEL_2_WIDTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Panel_2_Length">'
    || R_PRODUCT_DETAIL.PANEL_2_LENGTH
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT ||'</label>';
    /*-----------------------------------------+
    | Handling XML data for special message |
    +-----------------------------------------*/
    FOR rec_count IN c_count (r_product_detail.item_id)
    LOOP
    L_XML_CONTENT := L_XML_CONTENT || '<label _FORMAT='
    || '"'
    || 'lib://FRD/SpecMessage_Door.btw'
    || '"'
    || ' _PRINTERNAME='
    || '"'
    || v_printer
    || '"'
    || ' _QUANTITY='
    || '"'
    || v_quantity
    || '"'
    || '>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Serial_Number">'
    || REC_COUNT.SERIAL_NUMBER
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Special_Message">'
    || REC_COUNT.ATTRIBUTE_VALUE
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT || '<variable name= "Cabinet_Sequence_No">'
    || REC_COUNT.CABINET_NUMBER
    || '</variable>';
    L_XML_CONTENT := L_XML_CONTENT ||'</label>';
    EXIT WHEN c_count%NOTFOUND;
    end LOOP;
    -- L_XML_CONTENT := L_XML_CONTENT || '</labels>';
    fnd_file.put_line (fnd_file.LOG, l_xml_content);
    dbms_output.put_line ( l_xml_content );
    L_LABEL_COUNT := L_LABEL_COUNT + 1;
    -- apps.inv_print_request.sync_print_tcpip (l_xml_content,
    -- l_job_status,
    -- l_printer_status,
    -- l_status_type,
    -- l_return_status,
    -- l_return_msg
    END LOOP;
    END LOOP;
    l_xml_content := l_xml_content || '</labels>';
    fnd_file.put_line (fnd_file.LOG, l_xml_content);
    apps.inv_print_request.sync_print_tcpip (l_xml_content,
    l_job_status,
    l_printer_status,
    l_status_type,
    l_return_status,
    l_return_msg
    L_XML_CONTENT := null;
    /*--------------------------------------------------------------------------------------+
    | APPS.INV_PRINT_REQUEST.SYNC_PRINT_TCPIP will send the XML data to TCP/IP Port |
    +--------------------------------------------------------------------------------------*/
    fnd_file.put_line (fnd_file.LOG,
    'Printer Status:' || ' ' || l_printer_status
    fnd_file.put_line (fnd_file.LOG,
    'Return Status:' || ' ' || l_return_status
    fnd_file.put_line (fnd_file.LOG,
    'Return Message:' || ' ' || L_RETURN_MSG
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line
    (fnd_file.LOG,
    'Unexpected error in the xxmb_get_xml_data_1270 procedure, error is : '
    || SQLERRM
    || ', '
    || SQLCODE
    END xxmb_get_xml_data_1270;
    END xxmb_wip_prod_tag_door_pkg;
    /

  • What are the tables that Contains DTP Filter Entries

    Hello,
    for the filter entries on a DTP Process I found the table RSBKSELECT "Selections for DTP Request (Summary)". But that holds only value which are done generic by Formula etc. but not the information which are entered manual.
    Does anybody knows the table for the rest of entries ??
    I need this Information to Report these Filter as Selectioncriteria.
    Thank for any help
    Henning

    Hi,
    Please note that I was able to link the tables by this kind of code:
    "Get the request from the cube, to identify them.
        CALL FUNCTION 'RSSM_ICUBE_REQUESTS_GET'
          EXPORTING
            i_infocube     = LV_IC
          IMPORTING
            e_t_request    = LT_REQUEST
          EXCEPTIONS
            wrong_infocube = 1
            internal_error = 2
            others         = 3.
    "Check each request
        LOOP AT LT_REQUEST INTO LS_REQUEST.
          "Populate LV_REQUID_CHAR to be able to read the table RSBKSELECT
          "The key is : Request id, without leading 0, right justified, and shifted one time to the left.
          LV_REQUID_CHAR = LS_REQUEST-PARTNR.
          SHIFT LV_REQUID_CHAR LEFT DELETING LEADING '0'.
          SHIFT LV_REQUID_CHAR RIGHT DELETING TRAILING SPACE.
          SHIFT LV_REQUID_CHAR LEFT.
          "Get the filters
          SELECT  *
            INTO TABLE LT_RSBKSELECT
            FROM RSBKSELECT
            WHERE REQUID = LV_REQUID_CHAR.
    ENDLOOP.
    The internal table LT_RSBKSELECT will now contains all the filters used by the DTP.
    It is way better than using the field that contains the concatenation of all filters since it is limited to 255 characters.
    Hope it helps.

  • How do you sort a table that contains links to cells in another table?

    This is something that I used to be able to do in Numbers but since 2 or 3 updates ago this doesn't seem to happen.
    The problem I have is that I have a table that includes cells that are a sum of a number of cells from another table. When I try and sort by a column all the info in the cells change because, I imagine, the commands linking to the cells in the other table are offsetting by however many rows a particular row has moved.
    This didn't used to happen; it used to hold on to the same data and links regardless of where the sort function moved a row to.
    Had a look through the help pages but can't find anything about it. Has anyone found a way around this?
    Thanks in advance.
    Matt

    Hi mmatt,
    There are several ways to create sort-safe formulas. Without knowing what you are doing in your table it is hard to give specific advice but in general INDEX(), OFFSET() and I think INDIRECT() are sort safe- ie they will ocntinue to point to the same cell wherever they are in your sort.
    If you want specific advice you would need to provide more info.
    quinn

  • How to update a table that has hundred thousand rows?

    Hi all !
    I detect that I did wrong with column SHAPE (in GRAG table ) ,namely at Gtype : 3003
    (MDSYS.SDO_GEOMETRY(3003,50632625,'null',MDSYS.SDO_ELEM_INFO_ARRAY(1,5,1,1,2,1),MDSYS.SDO_ORDINATE_ARRAY(276.2339,-179.7433,0,276.2498,-179.7361, 0 ))
    And I need to update value Gtype :3003 to 3002 .
    My problem is I don't know how to implement it because GRAG table has 30000 rows . I cannot update every row manually .
    Do you have any advice ?

    AFAIK oracle11g cannot simply update SDO_GEOMETRY.
    so you have to create new SDO_GEOMETRY with all but one old values.
    try to modify this (I wrote it once to circumvent the cannot modify SDO_GEOMETRY problem):
    -- clones a geometry but with different values
    -- we can "alter" the SRID
    -- note: oracle 11g cannot modify geometries
    function alter_geometry(p_geo sdo_geometry, p_srid number default null)
    return sdo_geometry is
    v_result sdo_geometry;
    v_srid number;
    begin
    if p_srid is null then
    v_srid := p_geo.SDO_SRID;
    else
    v_srid := p_srid;
    end if;
    v_result := sdo_geometry(p_geo.SDO_GTYPE,
    v_srid,
    p_geo.SDO_POINT,
    p_geo.SDO_ELEM_INFO,
    p_geo.SDO_ORDINATES);
    return v_result;
    end alter_geometry;
    --then do an update like
    --test before with an create table as select
    update crack c set c.shape = alter_geometry(shape, ...)

  • Track table that contains a block id

    Friends
    Is it possible to find wich table(s) contains data from a specific block?
    I got stuck on a scenario that I'm not using RMAN and I got a block corruption and I need to fix it...
    I have the block#, but I could not find a querie to track which table contains that data
    Cheers

    SQL> select file#, block#, CORRUPTION_CHANGE#, CORRUPTION_TYPE from V$DATABASE_B
    LOCK_CORRUPTION;
    FILE# BLOCK# CORRUPTION_CHANGE# CORRUPTIO
    3 144438 0 CORRUPT
    3 144277 0 CORRUPT
    3 144446 0 CORRUPT
    12 134018 0 CORRUPT
    3 144501 0 CORRUPT
    12 134714 0 CORRUPT
    3 144493 0 CORRUPT
    3 144293 0 CORRUPT
    3 144309 0 CORRUPT
    3 144325 0 CORRUPT
    SQL> select segment_name, segment_type, owner
    2 from dba_extents
    3 where file_id = 12
    4 and 134018 between block_id and block_id + blocks -1;
    SEGMENT_NAME
    SEGMENT_TYPE OWNER
    PRODUCT
    TABLE BLI
    I'm not running rman :(

  • How to update a table that has  Million Records

    Hi,
    Lets consider the basic EMP table and lets assume that it has around 20 Million Records . we need to have an update statement.Normal UPdate statement may hang the system or it may take a lot of time.
    The basic or Normal update statement goes like this and hope it may not work.
    update emp set hiredate = sysdate where comm is null and hiredate is null;Basic statement may not work. sugestions Needed.
    Regards,
    Vinesh

    sri wrote:
    I heard Bulk collect will resolve these type of issues and i am really poor at Bulk Collect concepts.Exactly what type of issue are you concerned with? The business requirements here are pretty important-- what problem is the UPDATE causing, specifically, that you are trying to work around.
    so looking for a solution to the problem using Bulk Collect .Without knowing the problem, it's very tough to suggest a solution. If you process data in batches using BULK COLLECT, your UPDATE statement will take longer to run and will consume more resources on the database. If the problem you are trying to solve is that your UPDATE is not fast enough, this is a poor approach.
    On the other hand, if you process data in batches, and do interim commits, you can probably hold locks on individual rows for a shorter amount of time. That would only be a concern, though, if you have some other process that is trying to update the same rows that you are updating at the same time that you're updating them, which is pretty rare. And breaking your update into multiple transactions introduces a whole bunch of complexity. You now have to write a bunch of code to ensure that your process is restartable should the update fail mid-way through leaving some number of updates committed and some number rolled back. You have to have a very detailed understanding of the data and data consistency to ensure that breaking up the transaction isn't going to negatively impact any process, report, etc. To do it correctly is a pile of work and then it's something that is constantly at risk of creating problems in the future when requirements change.
    In the vast majority of cases, you're better off issuing a simple SQL statement during a time when the system isn't particularly busy.
    Justin

Maybe you are looking for

  • How to fix Searchkit crash in Safari 7.0.2?

    Hello there, below I place information about crash and report I get after few seconds I'm into random page in Safari. I would be very greatful if someone can help me with that. "Safari quit unexpectedly while using the SearchKit plug-in" Process:    

  • Goods Issue (MB1A) for production order - no stock reduce happening in WM

    Hi, I try to do a Goods Issue with transaction MB1A for a production order, but no stock reduces happens within WM (HUM). I did the following. Created a Production order - CO01 Created a TR - LB01 - (assigned production order to the TR) Created a HU

  • Debuging inbound queue SMQ2

    Hi mi experts, while debuging inbound queue entrie It is very hard to me to find where exactly "bapi wrapper(create,update )"  of a Data Object is called? please guide me lakshman balanagu.

  • Content Server Error - User not found in Identity Store

    Hello, I am trying to setup an external provider in Weblogic so that I can authenticate users via Oracle Access Manager / Oracle Internet Directory. I have followed the documentation and created a new provider for my external Provider and called it O

  • Anybody installed Oracle 10g application server on windows 2008 (64 bit) se

    Has anybody installed Oracle 10g application server on OS : windows 2008 (64 bit) server. which version of OAS we should use?l. we are using dell server . regds santosh Edited by: user5429538 on Feb 24, 2010 2:59 AM