Clob field cannot generate to XML

I'm using Reports6i and am trying to generate a report to XML. Among the data is a clob field. Everything else looks fine except the clob, which is gibberish. The same gibberish is repeated for every row of data.
Has anyone else encountered this?? Is it a bug?? Is there a setting I can change?? Any help would be appreciated.
Thanks

Wrote to SAP. Got the below mentioned reply from them
Please make sure that in transaction SMSY, in the Header Data tab for
the system you want to upgrade, both ERP 6 and EHP5 for ERP 6 are added
as product versions and also active. Information about why this is
needed can be found in note 1464712.
Please don't forget to choose a relevant product instance for ERP 6.
After this is done, please enter the system in an ERP 6 logical
component. Please add the new ERP 6 logical component to another
solution, and please proceed to opening the Maintenance Optimizer
transaction from the solution with the ERP 6 logical component.
The option to choose should be 'Enhancement Package install'.
The technical usage to choose is Discrete Ind.& Mill Products.
If somehow you are not able to choose technical usage Discrete Ind.&
Mill Products in the technical usage screen in Maintenance Optimizer:
please check note 1324838 for the required product instances of ERP 6
in SMSY.

Similar Messages

  • Cannot generate stack.xml file

    Greetings,
    We are not able to generated stack.xml file in /usr/sap/trans/EPS/in
    We have tried in /n/tmwflow/mopz_stack.
    MOPZ is configured we are able to approve support patches
    This xml file is required to upgrade the ECC_DIMP from 600 to 605
    Please advice
    R..../-

    Wrote to SAP. Got the below mentioned reply from them
    Please make sure that in transaction SMSY, in the Header Data tab for
    the system you want to upgrade, both ERP 6 and EHP5 for ERP 6 are added
    as product versions and also active. Information about why this is
    needed can be found in note 1464712.
    Please don't forget to choose a relevant product instance for ERP 6.
    After this is done, please enter the system in an ERP 6 logical
    component. Please add the new ERP 6 logical component to another
    solution, and please proceed to opening the Maintenance Optimizer
    transaction from the solution with the ERP 6 logical component.
    The option to choose should be 'Enhancement Package install'.
    The technical usage to choose is Discrete Ind.& Mill Products.
    If somehow you are not able to choose technical usage Discrete Ind.&
    Mill Products in the technical usage screen in Maintenance Optimizer:
    please check note 1324838 for the required product instances of ERP 6
    in SMSY.

  • Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field

    Hello,
    I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
    Table structures are mentioned below:
    OP:
    Name                             Null                    Type        
    OP_NBR                    NOT NULL      NUMBER(4)    (Primary Key)
    OP_DESC                                        VARCHAR2(50)
    OP_PAYLOD_XML                           CLOB       
    GM:
    Name                          Null                   Type        
    GM_NBR                  NOT NULL       NUMBER(4)    (Primary Key)
    GM_DESC                                       VARCHAR2(40)
    OP_NBR               NOT NULL          NUMBER(4)    (Foreign Key)
    GM_PAYLOD_XML                          CLOB   
    DM:
    Name                          Null                    Type        
    DM_NBR                  NOT NULL         NUMBER(4)    (Primary Key)
    DM_DESC                                         VARCHAR2(40)
    GM_NBR                  NOT NULL         NUMBER(4)    (Foreign Key)
    DM_PAYLOD_XML                            CLOB       
    DE:
    Name                          Null                    Type        
    DE_NBR                     NOT NULL           NUMBER(4)    (Primary Key)
    DE_DESC                   NOT NULL           VARCHAR2(40)
    DM_NBR                    NOT NULL           NUMBER(4)    (Foreign Key)
    DE_PAYLOD_XML                                CLOB    
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    SELECT
    j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
    i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
    h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
    g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
    FROM
    DE g, DM h, GM i, OP j
    WHERE
    h.dm_nbr = g.dm_nbr(+) and
    i.gm_nbr = h.gm_nbr(+) and
    j.op_nbr = i.op_nbr(+)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
    Current O/P:
    <resultSet>
         <Record1>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <DM_PAYLOD_XML1>
              <DE_PAYLOD_XML1>
         </Record1>
         <Record2>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML2>
              <DM_PAYLOD_XML2>
              <DE_PAYLOD_XML2>
         </Record2>
         <RecordN>
              <OP_PAYLOD_XMLN>
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XMLN>
         </RecordN>
    </resultSet>
    Now i want to change my SQL query so that i get following output structure:
    <resultSet>
         <Record>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <GM_PAYLOD_XML2> .......
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XML1>
              <DM_PAYLOD_XML2> .......
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XML1>
              <DE_PAYLOD_XML2> .......
              <DE_PAYLOD_XMLN>
         </Record>
         <Record>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML1'>
              <GM_PAYLOD_XML2'> .......
              <GM_PAYLOD_XMLN'>
              <DM_PAYLOD_XML1'>
              <DM_PAYLOD_XML2'> .......
              <DM_PAYLOD_XMLN'>
              <DE_PAYLOD_XML1'>
              <DE_PAYLOD_XML2'> .......
              <DE_PAYLOD_XMLN'>
         </Record>
    <resultSet>
    Appreciate your help in this regard!

    Hi,
    A few questions :
    How's your first query supposed to give you an XML output like you show ?
    Is there something you're not telling us?
    What's the content of, for example, <OP_PAYLOD_XML1> ?
    I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
    What's the db version BTW?

  • Parsing text from CLOB field that's stored as XML

    I have a CLOB field that contains an XML string. That looks like the text below. Is it possible to parse out the text string Denied NOW!!!. I basically want to parse out the data between the first encounter of the <CommentBody> tag.
    <CommentHeader>Whatever<CommentDate>2010-01-21-15.16.48.000000
    </CommentDate></CommentHeader><CommentBody>Denied NOW!!!</CommentBody>
    <CommentHeader>Whatever<CommentDate>2010-01-21-15.10.38.000000
    </CommentDate></CommentHeader><CommentBody>Denied YESTERDAY!!!</CommentBody>
    Thanks all!!
    Edited by: user11938977 on Jun 28, 2010 11:32 AM

    Thanks everyone! I'm using Oracle 11.1.0.7.0
    It seems to work as long as the Text Contents of CommentBody tag is one word without spaces. If there are spaces in between the tags it errors out. Here's the SQL:
    SELECT extractvalue( xmltype('<root>'||t.comments||'</root>'),
    'root/CommentBody[1]' ) as "CommentBody"
    FROM AP_VCHR_AW t
    When COMMENTS contains this data it errors out:
    <CommentHeader> <CommentDate>2010-03-04-17.52.53.000000
    </CommentDate></CommentHeader><CommentBody>This is an approved vuocher</CommentBody>
    <CommentHeader> <CommentDate>2010-03-04-17.52.53.000000
    </CommentDate></CommentHeader><CommentBody>This is an approved vuocher</CommentBody>
    When COMMENTS contains this data the SQL succeeds:
    <CommentHeader>at <CommentDate>2010-01-21-15.16.48.000000
    </CommentDate></CommentHeader><CommentBody>Denied!!!</CommentBody>
    <CommentHeader> at <CommentDate>2010-01-21-15.10.38.000000
    </CommentDate></CommentHeader><CommentBody>Denied!!!</CommentBody>

  • Getting all occurrences from a clob field

    I created a clob field to store an XML document. I have tried the SUBSTR, INSTR, REGEXP_SUBSTR, DBMS_LOB.INSTR functions to extract all occurrence of the XML tab <systemLink>.
    I just get 1 occurrence of the XML tag.
    Has anyone done this before.
    Thanks.

    All occurrences in a single row
    select extract(xmltype(your_clob_field),'//systemLink')
    from dualOr all occurrences in distinct rows
    select *
    from TABLE (XMLSEQUENCE (EXTRACT (XMLTYPE (your_clob_field), '//systemLink'))) ; Max
    http://oracleitalia.wordpress.com

  • Generating XML from relational tables and storing back in CLOB field

    I have been reviewing the documentation and trying to figure out the best approach. I am on v 10.2.0.3 and need to select from a parent table and three child tables and want to generate the results as xml that I will place in a clob field in another table. I looked at XMLQuery and dbms_xmlgen.getxml. The difference appears to be that getxml allows you to code traditional sql to join the tables.
    I would greatly appreciate it if someone could provide some feedback and any sample code along the line that I describe above.
    Thank you in advance for your help!
    Jerry

    Any feedback to the above questions would be greatly appreciated!

  • How do I fill by chunks a clob inside a table while XML is generated?

    Hello everybody:
    Needed to generate a single XML file from around 50 million rows, where the XML ouput matches not only row data but another default values for another elements and attributes (not from database but using strings and types with default values). Its generation will be a monthly task, so the process will repeat time by time. For generating that document, currently focus is based on using a batch process relying on Spring Batch, by using a single JDBC query where a join happens between a table and a materialized view (Both are datawarehouses, so it is not expected a change onto the data, and are single, non-partitioned tables). From my point of view, that approach uses: database resources, network resources, disk resources, and processing resources, including the price of making the join, sending to network, creating objects, validating, and making the file, finally wasting too much time generating that XML file. Promisse above that approach is to restart from the last execution point (savepoints) and to process by chunks of data (ResultSets). That processs currently is in development.
    Seen Oracle has XML capabilites, another approach may be delegating the complete generation of that file to the database (Current version in use here is 10g release 2). My current approach is to generate a clob where I will put all the XML throughput and putting it inside a table (My first approach was to put directly into a disk file, unfortunately, isn't possible because internal policies). Considering limitations on memory, processing and disk space, needed to append a single row-as-xml to the clob as soon as it is rendered, and putting the clob inside the field as soon as possible, or putting the clob inside the field, and appending into it as the data is generated (preffered approach); also, considering its a very large operation, needed to make savepoints for each chunk of data processed (each 20,000 rows, as example). Some way I think it may be done is making a temporary clob, filling the clob while getting the rowid, using that rowid as savepoint (No other CRUD operations awaited for the table and the materialized view), and later appending the clob to the clob(s) in table (is there some way for append one clob to another one in table?). Explained all those points, how do I manage the process in order to achieve that goals, using a PL/SQL stored procedure while using built-in functions?.
    Update: I did a small pseudocode where I describe my current approach:
    Defining a cursor;
    Creating a segment clob;
    Creating a temporary clob;
    Defining a chunk size;
    Defining a temp rowid variable;
    Defining a control number to be 0;
    While cursor
         getting rowid and generating next row as xml into a temporary clob (XMLSerialize):
         increment the control number;
         if control number equals 1
    write rowid variable to a control table;
         append the temporary clob to a segment clob;
         if control number is equals than the chunk size defined:
              append the segment clob to the clob inside a control table;
              restart the control number to be 0;
         else
              continue;
    At this time, I'm with doubt about how to append the segment clob directly to the clob inside the control table (I find using that clob as PL/SQL variable would use too much memory and swap).
    Any help shall be apreciated. Thanks in advance.

    Well, of course it's looping. That's what the "while" statement does. What you need is more like this:
    if (tableNumberJTextField.getText().equals("")){
      JOptionPane.showMessageDialog(null, "Table Number cannot be empty","Error", JOptionPane.ERROR_MESSAGE);
      tableNumberJTextField.requestFocusInWindow();
    }and you want this code to be called every time tableNumberJTextField loses focus.

  • Export XML data from a CLOB field using sql developer

    I have a table that contains a CLOB field, each record is a complete XML in itself. After running the select query i am exporting this data by right clicking on the answer set, while the export completes the data for each record gets truncated.
    When i chose to save the export in loader format i get the complete records but now there are n files created for n records exported.
    Is there a way i can get alll the records in a single file wirthout any truncation.
    Thanks in advance!

    You might try delimited format or csv, with no enclosures if desired.

  • Parsing xml in clob field remove non utf-8 characters

    hi all,
    i have an issue where a stored procedure runs during a nightly process and parses xml contained in a clob field. There are some records that contain non-utf8(they paste characters from word)characters and therefore the parse fails when using performing an xquery select against the clob field as xmltype. I was wondering if anyone knew of a handy way to handle such a situation? I have looked around a bit and not found anything that seemed tailored to my situation, and I would like something a bit more generic than doing a replace on individual characters that i have found causing issues...thx in advance! -- jp

    Hi,
    Like BluShadow I'm curious to see a test case...
    Depending on the way it's been created, the encoding declared in the XML prolog doesn't necessarily reflects the actual encoding of the content.
    What's your database character set, and version?
    Please also post the error message you get (LPX-00200 probably?).

  • "Adobe CFC Generator" error "cannot find ide_config.xml file"

    Hi there
    Yesterday I downloaded a CF Builder 2 Trial. I install in my machine I am running CF 9.01 Dev version.
    When I try install "Adobe CFC Generator" extension "cannot find ide_config.xml file"
    I try to find some fix. but I can't.
    Some Ideas thank you!!

    With ColdFusion Builder 2, CFC Generator was intended to be removed.However mistakenly, CFC Generator was removed only partially.
    If you want to use:
    Plesae download it from: http://adobecfcgenerator.riaforge.org/
    Or If you have ColdFusion  Builder 1 or ColdFusion  Builder 2 Beta installation:
    You can take it from <ColdFusion Builder 1 or ColdFusion Builder 2 Beta Install Dir>\extensions      and deploy it to your server instead of using the incorrectl installed CFC Generator.
    Thanks,
    Krishna

  • Form or form on report to update XML tagS stored in CLOB field.

    I would like to create a form or a form on a report
    where i can update xml tags. The xml data is stored in a CLOB field.
    sample CLOB DATA
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE preferences SYSTEM 'http://java.sun.com/dtd/preferences.dtd'>
    <preferences EXTERNAL_XML_VERSION="1.0">
    <root type="user">
    <map />
    <node name="com">
    <map />
    <node name="mynode">
    <map />
    <node name="utils">
    <map />
    <node name="properties">
    <map>
    <entry key="Save" value="ON" />
    <entry key="TM_PORT" value="55555" />
    <entry key="TM_PORT2" value="7777" />
    <entry key="SubID" value="all" />
    <entry key="UserDBUsr" value="myuser" />
    <entry key="JMS_JDBC" value="OFF" />
    <entry key="Side" value="BUY" />
    <entry key="HEALTH_MONITOR_CRITICAL_DISK_SPACE" value="500" />
    <entry key="HEALTH_MONITOR_WARNING_DISK_SPACE" value="750" />
    <entry key="HEALTH_MONITOR_PERIOD" value="600000" />
    </map>
    </node>
    </node>
    </node>
    </node>
    </root>
    </preferences>
    the goal is to have a form where i can view and update the "value" of following:
    TM_PORT
    TM_PORT2
    SubID
    UserDBUsr
    JMS_JDBC
    Side
    HEALTH_MONITOR_CRITICAL_DISK_SPACE
    HEALTH_MONITOR_WARNING_DISK_SPACE
    HEALTH_MONITOR_PERIOD
    I have searched around this forum but could not find an example.
    it would be cool if I could also load the an xml file into the clob.
    Thank you.

    Hi,
    I think you just study first the topics about XML DB to understand how to manupulate xml data in the database.
    See:
    http://www.oracle.com/technology/tech/xml/xmldb/index.html
    and
    XML DB
    Regards,
    Cafer

  • Cannot generate XML for the List of Values (UX 00072)

    Hi,
    I had issues with a .LOV file associated with an object.
    Cannot generate XML for the List of Values (UX 00072)
    [LOV Name] This LOV contains data that does not originate from Corporate Data.
    The object maps to data in a table of the DB that will be populated in the future. The LOV file is "empty", but I have to pass the universe into production waiting for the data.
    This error doesn't permit me to go from Development to Prod.
    Regards,
    Riccardo

    You need to set the display-property="<<Your name property>>" in item-descriptor tag.
    e.g. <item-descriptor name="myItem" display-property="name" />
    Cheers
    R

  • How to parse/extract XML from clob field using ODI

    Hi,
    I am very new to ODI. I have an oracle table which has clob field. This clob field contains xml. I would like to parse this xml and convert it to oracle table. Means I would like to make all the tags of xml as oracle table columns.
    I have created a PL/SQL procedure and used XMLTABLE function and I have achieved my goal. The same this I am trying to do with ODI. Since I am new to ODI so any help is appreciated.
    Thanks

    In 9.2, you are limited into your options. Have a look into, among others, updateXML. Updating tp 10gR2 will give you more options to succeed.

  • Parse XML from CLOB field

    How can I parse XML from CLOB field? I need to replace or delete the node from XML document and update the database with new XML. I am using Oracle 9i release 2.
    Here is the XML. In this XML if section1 and section2 exists then I need to delete the section1 node. If section2 doesn't exist, replace section1 with section2 node.
    <Document ID='2' TypeID='2'>
    <Body>
    <Page Name='Page1'>
    <Sec ID='section1' Title='Section 1' GroupID='' />
    <Sec ID='section2' Title='Section 2' GroupID='' />
    </Page>
    </Body>
    </Document>
    Please help.. Thank you..

    In 9.2, you are limited into your options. Have a look into, among others, updateXML. Updating tp 10gR2 will give you more options to succeed.

  • The decimal field should accept 0.00 as the input and generate the XML

    Hi Experts,
      I have one requirement. I need to display the field which take 0.00 as the input and that field should come in the output XML. This field of type decimal. I m using sender proxy. Im populating the value 0.00 to this decimal field, But the proxy is not producing this field in the output XML. Plz suggest me.
    Regards,
    Rama

    HI Ravi,
    It is accepting the input as 0.00. But i want it as decimal.
    Can u explian what is the difference between these two types decimal and string.
    It should take the input values in the decimal format. ll it take?
    Regards,
    Rama

Maybe you are looking for

  • My computer doesn't recognize my Zen Creative Vision:M (30 GB) anymore

    ? I still use XP and I have this mp3-player for a year now and it has been working fine until yesterday. I ripped Stefani's first album and tried to drag one of her songs on my mp3-player, but the player couldn't handle the file it seemed. So it fell

  • How do I add text to existing PDF files using Acrobat Pro10.1?

    I upgraded to Acrobat Pro just so that I would be able to complete blank forms send to me as PDF files.  But sometimes I can edit them and sometimes I cannot.  And the "help" does mention anything as ordinary as form filling. FoxLuca

  • Link to Flash application from PDF not working on a Mac

    I'm creating a PDF using Acrobat.  I have 2 links that should open up a separate Flash application.  When I try clicking on them in Adobe Reader on a Mac, I get an error message saying "could not find an application to open the file 'xxxxx'.  I can n

  • IPod_13.1.2.ipsw

    Hi! I want to revert my iPod from 1.2.2 to Version 1.2. Unfortunately I don't have the required files (iPod_13.1.2.ipsw and iPod_13.1.2.ipsw.signature) anymore. Does anyone have those 2 files? (Or know, where to get it) Thanks!

  • Seek to a particular location for MONO sounds not working in AS3

    Hi Guys, I am facing an issue seeking to a particular location for MONO sounds with sample rate 22KHz. Another thing I observed was that there is a problem seeking to positions greater than half the total length of the actual sound, otherwise it is w