How to exclude the XML declaration from each row of the result set?

Hi,
I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
Thanks!
-- Daniela

Hi,
A couple of options I can think of :
SELECT XMLSerialize(CONTENT
XMLtransform(t1.xmltext,
  xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes"/> 
<xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
</xsl:stylesheet>')
FROM myschema.event t1
WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
ORDER BY t1.time DESC
;or simply,
SELECT XMLSerialize(CONTENT
  extract(t1.xmltext,'/')
FROM myschema.event t1
WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
ORDER BY t1.time DESC
;

Similar Messages

  • How to return the result set of multiple select statements as one result set?

    Hi All,
    I have multiple select statements in my stored procedure that I want to return as one result set 
    for instance 
    select id from tableA
    union 
    select name from table b 
    but union will not work because the result sets datatypes are not identical so how to go about this ?
    Thanks

    You have to CAST or CONVERT (or implicitly convert) the columns to the same datatype.  You must find a datatype that both columns can be converted to without error.  In your example I'm guessing id is an int and name is a varchar or nvarchar. 
    Since you didn't convert the datatypes, SQL will use its data precedence rules and attempt to convert name to an int.  If any row contains a row that has a value in name that cannot be converted to an int, you will get an error.  The solution is
    to force SQL to convert the int to varchar.  So you want something like
    select cast(id as varchar(12)) from tableA
    union
    select name from tableb
    If the datatypes are something other that int or varchar, you must find a compatable datatype and then convert one (or both) of the columns to that datatype.
    Tom

  • How to hold the result set

         We have a GUI swing screen in which we have navigation buttons.
         when the user clicks the previous ,next, last,first buttons we have to show the records accordingly.
         The min. size of the database is around 1 million.and each row has 60 columns.
         Our approach is screen--->servlet-->ejb beans --->database.
         since the database is huge how to hold the values, and where, without affecting the performance.
         If we get the resultset it holds all the data.since the data size is huge,we are looking for a solution.The user may browse through the data ,edit the data and delete the data.
         we have to perform accordingly. Also, if, for example, user1 is seeing record no.1 & user 2 has modified record no.3 in the meanwhile, when user1 goes to record no.3, he should see the
         modified record. In short, the user should always see the latest values.
         please give us the best approach to solve this problem.
    Also this is in a multi user environment.

    It seems like you need to look at threads to update current values in the display and narrow the result set that you retrieve to match the criteria needed for display. You might consider making the method to change values a syncronized one.

  • How to get the result set in batches

    I have a query which results into large data. This data i want to display in a group of 20. After every 20 records i want to add header and footer to it.
    Is it possible to get the result set data into batch of 20 ? means can i specify start and end index of query ?
    regards
    Manisha

    What I am saying is that a big query with lots of
    joins will probably be slow, and as such would be a
    ripe candidate for batching the responses, if it were
    not possible to speed/optimize it. Batching is nice
    to look at for the user, but is not a solution for
    performance problems. In essence it is irrelevant
    that it adds a little performance deficit, as it
    appears to be running a lot quicker, and gives more
    feedback to the user.Then let me say it again....
    - "Join" is a term that applies to a method of doing queries in the database....
    - Query 1 which uses a join and returns 15 rows
    - Query 2 which does not use a join and returns 1500 rows.
    Given the above then Query 1 will provide better overall performance for the system than Query 2 in a properly configured database.
    If it doesn't then the database is not set up correctly.
    And again this will be irrespective of whether the query is scrollable or not.

  • How to Store the result sets of a stored procedure that is returning more that one result set in two different table ?

    Hi Experts,
       I have on stored procedure which returns mote than one resultset i want that to store in two different temp table how can achieve this in SQL server.
     following is the stored procedure and table that i need to create.
    create procedure GetData as begin select * from Empselect * from Deptend 
    create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
    Insert into #tmp1 (Ddeptid , deptname ,Location )
    exec GetData
    create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
    Insert into #tmp (empId,ename,deptId,salary)
    exec GetData
    Niraj Sevalkar

    You cant get two resultsets out of SP like this. The workaround is to merge and bring the resultsets.
    For this number of columns as well as corresponding datatypes have to be compatible. Also you will need one additional column which indicates resultset value. Then use this as filter to get your desired resultset out
    create procedure GetData as
    begin
    select 'resultset1' as Cat,*,.. N columns from Emp
    union all
    select 'resultset2' as Cat,*,.. N columns from Dept
    end
    create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
    Insert into #tmp1 (Ddeptid , deptname ,Location )
    Select column1,column2,column3
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset1'
    create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
    Insert into #tmp (empId,ename,deptId,salary)
    Select column1,column2,column3, column4
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset2'
    also see
    http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx
    Another method is to populate table with relevant resultset within procedure itself and then select from the table directly outside.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Saving the result set in a Search page

    Hi ,
    We have a manual search page where the results are displayed in the form of 10 columns. The first 5 are read only fields whereas rest 5 are editable checkboxes.
    There is no Query region created in our page.
    Suppose, fields a, b, c are search parameters and the results are as :
    | A | B | C| D |E | F | G | H | I | J |
    1
    2
    3
    4
    5
    6
    7
    7 records are retrieved. Columns A to E are read only text fields whereas columns F to J are check boxes. The user can update the checkboxes.  We have a Save button below the result set region. This button on being pressed invokes a stored PL/SQL Procedure which does some validations on the result set so obtained.
    Our requirement is to dump all the 7 records (after the modifications are made to any number of result records) into a temporary table . The procedure will then pick the records from this temporary table and do the required validations.
    Question is :
    1. How to store the result set so obtained into a table after some (or all) records are modified once Save is pressed ?
    We do not have any EO created in our page. The VO for obtaining the Result set is a combination of many tables.
    Any help would be greatly appreciated.
    Thanks,
    Neha

    River_Plate wrote:
    root cause
    java.lang.NullPointerException
    org.apache.jsp.tablasUF_jsp._jspService(tablasUF_jsp.java:68)Do you understand anyway when a NullPointerException would be thrown? Those kind of RuntimeExceptions are basic Java knowledge.
    If an object is null while you want to access it, then a NPE would be thrown. Check the line of the cause which objects could be null and fix it accordingly.

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • Urgent: How to exclude a particular value from the selection in the infopac

    How to exclude a particular value from the selection in the infopackage.
    Ex: not load for cost center 10000
    Thank you,
    sam

    Hi Sam,
    You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
    Hope this helps...

  • How to dpwnload one XML file for each report row

    Hi all,
    i have a report on the products table with about 1000 rows
    desc of table products
    product_id varchar (10)
    product_desc varchar2 (2000)
    I would like to download on the file system an xml file for each row of the report
    the nane of each xml file = <product_id>.xml
    thanks in advance
    km

    Hi,
    You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
    From what I can see in there (and there are a number of examples that would help you), you need to do something like:
    DECLARE
    vPATH VARCHAR2(50) := '/DEV';
    vFILENAME VARCHAR2(50);
    vFILE UTL_FILE.FILE_TYPE;
    BEGIN
    FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
    LOOP
      vFILENAME := C.PRODUCT_ID || '.xml';
      vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
      UTL_FILE.PUT_LINE(vFILE, '<xdr>');
      UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
      UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
      UTL_FILE.PUT_LINE(vFILE, '</xdr>');
      UTL_FILE.FCLOSE(vFILE);
    END LOOP;
    END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
    Andy

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

  • How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?

    How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?
    I know we can use config.xml but I m not sure what all steps to take.
    Below is my understanding
    1. Create Custom.xml file using below
      <component context="System" type="Documents">
            <displayName>Test</displayName>
            <role role="Data">
                <rules>
                 <unconditionalExclude>
                            <objectSet>
        <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
                            </objectSet>
                 </unconditionalExclude>
                </rules>
            </role>
        </component>
    </migration>
    2. Save as Custom.xml.
    3. Copy it to USMT source files package in both the x86 and x64 subfolders and update the relevant USMT package distribution points.
    I am confused as where in task sequence will we specify the custom.config file.

    Edit the miguser.xml file. The default list is as follows:
    -<objectSet>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qdf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qsd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qel]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qph]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dot*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rtf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mcw]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wps]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.scd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wri]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wpd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.xl*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.csv]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.iqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.oqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wk*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wq1]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.slk]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dif]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pot*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.sh3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ch3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pre]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppa]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.txt]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.one*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vl*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.or6]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.accdb]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mdb]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pub]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.xml]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ini]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dgn]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dic]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dsk]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqa]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqu]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.id]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ora]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pab]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pdf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qry]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.r2w]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rdl]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rsf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.url]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vdx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vss]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vst]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vtx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.zip]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rar]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.7z]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.iso]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gif]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.jpg]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.bmp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.avi]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp4]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wmv]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.bat]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vbs]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.lnk]", "Fixed")</script>
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • How to exclude a file/folder from Windows Defender malware scan in Windows 8/8.1?

    How to exclude a file/folder from Windows Defender malware scan in Windows 8/8.1?
    http://answers.microsoft.com/en-us/protect/wiki/protect_defender-protect_scanning/how-to-exclude-a-filefolder-from-windows-defender/f32ee18f-a012-4f02-8611-0737570e8eee

    Hi,
    Thank you for sharing the solutions & experience here. It will be very beneficial for other community members who have similar questions. 
    Regards,
    Kelvin hsu
    TechNet Community Support

  • How to exclude restricted-use batch from batch-determination in backflushin

    Hello,
    In the Goods-Movement screen during confirmation transaction (i.e. backflushing), we see that SAP has selected some batches that are restricted-use stock.  This must be due to some setting in batch-determination functionality.  We want to know how to exclude restricted-use stocks from being considered in batch-determination.  What setting, in which config transaction, can help us achieve this ?  Kindly help.  Thanks.
    - Chetan

    Thanks Manoj,
    That was a very good information and I learnt something new.
    However, I checked, and in that config, we are already "not-allowing" restricted-use stock for MvT-261.  So what else can be used to prohibit its selection during backflushing.  Thanks.
    - Chetan

Maybe you are looking for

  • Unable to connect the server, while open the rpt file in server from java.

    Hi, I have written one java class, that class deployed in solaris server. The BO server is avilable in another solaris server. i want to convert the rpt file to pdf format. for that i try to give the file path to the server for opening the rpt file,

  • Function-based indexes

    Oracle documentation on "How Function-Based Indexes Work" states that for the creation of a function-based index in the user's own schema, the user must be granted the QUERY REWRITE system privileges. And MUST have the following initialization parame

  • Select LOV based on value in another table

    Hi all, I have an issue, I have an item with Select list with dynamic query in the dropdown ListofValues. but i want to use a condition like select val1 display_value val2 return_value from table2 where value_in_table1 = username AND table_id1=table_

  • MM Audits - What to report on to ensure total stock optimisation

    Evening, wondering if you guys can help out here. I have recently started a new position (Inventory Controller in Oil and Gas Industry) and i am only just beginning to understand the MM module in SAP. I have been involved in the RLM module in the pas

  • Rman command fails with "RMAN-00554: initialization of internal RMAN"

    Hi I am at cross roads with no direction. 2 things and most like cause for the issue is same 1)rman target rman1/rman1@ppmqa Recovery Manager: Release 11.2.0.1.0 - Production on Thu Dec 16 10:34:46 2010 Copyright (c) 1982, 2009, Oracle and/or its aff