Invoice value differing in creation from periodic posting

Hi,
When I do periodic posting simulation and update run, I get the correct value.  However when I create invoice using transaction RERAIV and do simulation for the same, the invoice value is coming wrong, (It is different from the value shown in periodic posting.)
This is happening in some cases - about eight cases out of 25 cases.
Kindly guide as to where the error could be. 
Regards,
T Saravanan

When you create invoices using RERAIV, the system takes minimum amounts (trivial amounts) into account.
Also try with all the 'selection type' parameter options (Selection using FI documents, Selection using planned items of the cash flow, Selection from FI documents and Cash flow) on the selection screen.
Hope helps.
SM

Similar Messages

  • Auto PO Creation from GR Posting

    Dear all,
    I setup PO creation automatically when GR w/o PO using movement type 101.  All data is fine but PO number can't be assigned by internal number assigned.  It displayed "Please specify an external number range" Message no NR753. 
    Please kindly help~~
    Thanks a lot!!

    >
    Grace Tam wrote:
    > I tried to unclick external checkbox in number range and remove number range number in document type setting.  But still failed.
    You cannot remove number ranges once they are used. You need to create new number range without external check and assign that range to your PO document type and it should work.

  • APC value periodic posting?

    Hi,
    In fixed asset, i don't how what is apc value perdiodic posting. And why use apc value periodic posting?
    Thanks, point will be rewarded.
    Regards,
    Alex

    Hi Alex,
    APC periodic reposting (T.code ASKB)is done to post the acquisition values to the same asset for a different set of GL accounts.
    For ex: If the co.code has to maintian its ledgers in 2 separate sets of books like 1.Operationg COA 2. Country specific COA then we have to post the book values to these separate list of accopunts for 1 transaction. To eanble this we have to create a separate depreciation area which will maintain the country specific accounts. Since in FI-AA we can only have 1 depreciation area as "real time" deprecaition area we should create this area as periodic update for postings.
    Hence we need to to <b>askb</b> as soon as we do a regular acuisition postings (ao90) to the operating COA deprecaition area which is usually Area 01.
    This way system will update the parallel set of accounts maintained with the acquisition values.
    Hope this is clear.
    Please let me know if you need any further clarification.
    Pls assign points if this is helpful.
    Thanks,
    Vamsi

  • Assignment field value different from sort key

    Dear Forum,
    I notice in the customer line item, the assignment field value different from sort key.
    sort key for customer i maintain as doc number + fiscal year, but i notice some line item's assignment is not this information.
    for example, billing posting. some customer line item assignment is document + fiscal year but some are delivery number in assignment field. no changes made in log file.
    may i know why?
    thanks

    dear,
    as i did mention, customer master sort key no change and in the same customer line item, assignment field which carry delivery number also no change log.
    may i know where to see the subsitution? i do not think that is due to substitution.
    thanks

  • Selecting a value to a column from a different table based on a condition

    I apologize for the confusing title.
    I have to select values from Table_1. 2 of those columns needs to be checked for values in Table_2 based on the ID and if values are present, then those values should be taken, if not the values from Table_1 should be taken. How can I achieve this?
    e.g.
    table_1
    date
    id
    fact1
    fact2
    type
    table_2
    id
    fact1
    fact2
    select date,id,type, (Need to check the condition for fact1 and fact 2, if present in table_2, then that value should be used, if not table_1 values should be used) from table_1 and table_2.
    I need to use this condition in another big query. Any help/suggestions appreciated.
    Thanks.

    Thanks Tubby,
    It worked and I incorporated with the master query too.
    Thanks a lot.
    EDIT
    Thanks for all the replies> I just saw your answers after I finished and posted the reply.
    hoek, I am not a DB person, I used to write some SQLs, but not in the last 3 years or so. I am trying to work on some reports, hence some trivial questions.
    Edited by: vj on Aug 7, 2010 5:48 PM

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Rounding Off Value is not copying from Sales Order to Invoice

    Hi Experts,
    In Pricing Procedure i maintained DIFF- Rounding Off Condition type with the following Combinations.
    Print:X
    Requirement:13
    Cal Type: 16
    Bas Type: 4
    When i create sales order the system is calculating Rounding Off after saving the sales order.The requirement is that it should shows the rounding off value before saving the sales order.Secondly when i make invoice the rounding off value is not copying from the saved sales order.After i save the invoice in VF02 the rounding off value is coming .
    Regards
    Subhasish

    Cond type DIFF has cond catgory L Generally new when copying. So the value from sales order will not be copied, it will be redetermined in invoice.
    Also rounding off cond is to round the total value which can change in invoice based on the invoice qty.

  • Response status has number of values different from request

    Hi,
    I'm getting the following message when I try to refresh a worksheet from a workbook.
    "Response status has number of values different from request"
    Has anyone encountered this message? what does this mean?
    I'm using SmartView 11.1.2.1.103 on HFM 11.1.2.1.103 environment.
    Thanks in advance,
    Ram

    Try removing external calculations (/$C$1) and see if the error message changes.

  • GR value different from actual value in limit PO

    Experts,
    We created a limit PO for $100. GR and invoice was done for $80. However the limits tab in PO shows actual value as $85!
    Why this difference of $5? ($85 - $80)
    Regards

    Hi,
    Is the value of EKBE-REFWR = RSEG-WRBTR for your PO and invoice? If yes, then what you are seeing is not an error. The values are correct.
    The 'Actual value' in the PO displays the sum of the invoiced amount referred to the PO/item (EKBE-REFWR / EKBE-REFWR).
    But the displayed 'Value in local curr' in the PO's history for each invoice's item (EKBE-WRBTR) is not the invoice item's amount, it includes the following 4 parts:
    1. Invoice item's amount
    2. Non-Deductible Input Tax(NVV)
    3. unplanned Delivery costs
    4. Cash discount amount
    So the 'actual value' in the PO cannot be the same as the totoal invoiced value.
    Regards,
    Purnima.

  • Unable to Delete PO (Purchase Order) due to changed Invoiced value. Helppp.

    If you create a service entry sheet, process the service entry
    approval,post an invoice for an amount greater than the Service entry
    then, cancel
    the entry sheet and add a new service specification (i.e. same entry
    sheet), the following problem occur:
    1. You can no longer cancel the invoice if the services of the entry
    sheet are deleted.
    2. After changing the entry sheet and renewed acceptance of services
    performed, a posting takes place where the value differs from the
    value of the entry sheet.
    Steps to Reproduce:
    1. Create a Service Purchase Order of $2,000.00
    2. Create a Service Entry against the Purchase Order for $2,000.00
    3. Approve Service Entry against the Purchase Order for $2,000.00
    a/c postings Dr Expense $2,000.00
                         Cr GR/IR $2,000.00
    4. Create an Invoice against the Service Purchase Order for $5,000.00
    a/c postings Dr Expense $3,000.00
                        Dr GR/IR $2,000.00
                        Cr Vendor $5,000.00
    5. Revoke the Service Entry
    a/c postings Dr GR/IR $5,000.00
                        Cr Expense $5,000.00
    I am expecting the Reversal of the Service Entry figure is $2,000.00, but instead, the Reversal of the Service Entry figure is $5,000.00. Why is that so? I need to be able to Reverse/Delete the PO.

    If you create a service entry sheet, process the service entry
    approval,post an invoice for an amount greater than the Service entry
    then, cancel
    the entry sheet and add a new service specification (i.e. same entry
    sheet), the following problem occur:
    1. You can no longer cancel the invoice if the services of the entry
    sheet are deleted.
    2. After changing the entry sheet and renewed acceptance of services
    performed, a posting takes place where the value differs from the
    value of the entry sheet.
    Steps to Reproduce:
    1. Create a Service Purchase Order of $2,675.00
    2. Create a Service Entry against the Purchase Order for $2,675.00
    3. Approve Service Entry against the Purchase Order for $2,675.00
    a/c postings Dr Expense $2,675.00
                         Cr GR/IR $2,675.00
    4. Create an Invoice against the Service Purchase Order for $6,452.50
    a/c postings Dr Expense $3,777.50
                        Dr GR/IR $2,675.00
                        Cr Vendor $6,452.50
    5. Create Credit Memo $1,537.00
    6. Revoke the Service Entry against the Purchase Order for $2,675.00
    I am expecting the Reversal of the Service Entry figure is $2,675.00, but instead, the Reversal of the Service Entry figure is $1,537.00. Why is that so? I need to be able to Reverse/Delete the PO. Please help...
    Thank you.

  • PO : Invoice value in ME23N is not matching with 2LIS_02_SCL field BWGEO

    Hi Expert,
                  1) Invoice value in ME23N tcode is not matching with datasource 2LIS_02_SCL field BWGEO in item level
    for few item BWGEO field contain the data with tax but for few item the value is not coming correctly.
    2) The value is not matching for that particular item which has same material document in other Item level.
    eg. PO(eg 60000XXXXX) if item 1 has invoice value with tax is 1300+52 and its material doc is XXXX1234. if same material doc XXXX1234 is present in
    item 2 for another invoice of same material invoice value with tax is 1200+48. In that case the value which is coming in
    BWGEO field is 1300 only.
    I am working in 7.0 system for AFS specific. My whole transaction is in INR.
    Thanks and Regards
    Lalit Kumar

    Please review the information below from one of our deverlopers       
    - it may explain the behaviour you are seeing on your system: 
    When posting a GOODS RECEIPT for a DELTA UPLOAD process you only will    
    have the information regarding the GOODS RECEIPT values (XMCEKET-WEMNG   
    and XMCEKET-WEWRT) and not the invoice values (XMCEKET-REMNG and         
    XMCEKET-REWRT).                                                                               
    When posting an INVOICE for a DELTA UPLOAD process you only will         
    have the information regarding the INVOICE values (XMCEKET-REMNG         
    and XMCEKET-REWRT) and not the GOODS RECEIPT values (XMCEKET-WEMNG and   
    XMCEKET-WEWRT).                                                                               
    The DELTA INIT process is different, because for this process, all       
    information about posted documents against a purchasing order need to    
    processed again and this means that all documents related to an order    
    (invoices, goods receipt, deliver costs, goods issue, etc)               
    are read from database and rebuild one by one in the same process, and   
    of course this information in available.                                                                               
    When posting an invoice, the goods receipt information is not            
    available because of the following reasons:                                                                               
    1 - System standard fields.                                              
    In datasource 2LIS_02_SCL, there is only                                 
    fields BWMNG - that represents quantity, BWGEO and BWGEO that            
    represent values. The information under these fields are dependent       
    from the information of field BWVORG (BW transaction key). This field    
    determines whether these values are from a purchasing order, goods       
    receipt or an invoice. You never have a missing information, but when    
    you want to get goods receipt values, you need to check where the        
    BWVORG correspond to goods receipt process and not invoice.                                                                               
    2 - Performance                                                          
    There are documents as purchasing orders and schedule agreements that    
    are opened for years in some customer system (it may not be your case),  
    where goods receipt and invoices have been posted during all this time.  
    Every time that a new document is posted in order to built the           
    cancellation sentence (ROCANCEL = X) and in order to add the new         
    value in the old, system need to process all previous posted documents,  
    and this means processing time. For this reason when posting invoices    
    only previous documents that are invoices are taken into account and     
    not goods receipt.                                                       
    The delta fields, DBWMNG and DBWGEO, are the difference between the 
    purchasing order quantity and values and the goods receipt quantity 
    and values, then is natural that this information is only available 
    when processing a goods receipt and not when processing an invoice. 
    I'm sorry if this is not the system behavior that you are expecting,
    but this is the normal standard behavior and this is really necessary
    because of the system performance when dealing with documents that  
    have a long order history.                                          
    Hope this information is useful for you
    Best Regards
    Barry

  • Invoice blocking due to tolerance limit at header Invoice Value.

    Hi,
    Our client needs to have tolerance limit set for total Invoice value.The Invoice contains multiple line items.The tolerance may be % or $ value.The standard setting which I know is for each Invoice line item but not for cummulative.The issue is if we post exceed but within tolerance amount for each line item from the Invoice containing multiple line items,the total Invoice value exceeds considerably.
    Please let me know the how to deal with this issue?

    Hi Mandar,
    Set Tolerance Limits:
    In this step, you specify the tolerance limits for each tolerance key for each company code.
    When processing an invoice, the R/3 System checks each item for variances between the invoice and the purchase order or goods receipt. The different types of variances are defined in tolerance keys.
    As per your req ,it is not possible to compare PO Net header value with GR Total value and Toatl Invoice value because PO , GR and Invoice may contain the different line items.
    we are always doing Invoice verification at item level not on header level so SAP provides all the keys at item level only.
    Rewards if helpful...
    Regards
    Sanjay L

  • PUP differ from period to period

    Dear Experts,
    we have material ledger actual costing active, we run CKMLCP at end of the period when analyse the material master we found the PUP price differ from period to period in accounting view of material master,
    Exp- run CKMLCP for period "7" PUP is 1000 the same value should show in period "8" also, bcoz CKMLCP is not run for period "8"
    but system is showing 1200 fer period 8.
    please help to resolve the issue.
    Thanks & Regards,

    Hi,
    If the periodic unit price is just statistical then in this case it is updated every time when the material is moved. This is a side-effect of the activation of the actual moving average price posting logic in the material ledger. This logic is described in the note 1253944.
    Nevertheless, for a material with price control 'S' and price determination '3', the periodic unit price is not relevant until the
    single level price determination has been run.
    The periodic unit price for V-price materials is still updated when the 'X' in the field MLNEW of table TCURM is removed. However, the posting logic is different.
    MLNEW = ' ': The logic is the one described in note 689189.
    MLNEW = 'X': the logic is the one described in note 1253944.
    For S-price materials with price determination '3', the update logic for the periodic unit price is as follows:
    MLNEW = ' ': The periodic unit price is only updated in the single and multi level price determination and when posting the closing entry.
    MLNEW = 'X': Additionally, the periodic unit price is also updated in every movement.
    regards
    Waman

  • Need to insert values into a table from a XML file

    Hi,
    I'm an Oracle 9i/10g DBA with quite a few years experience, but I'm new to XML and dealing with it in database terms. I've been given a project that entails pulling XML values out of a file (or 100's of them) and storing them in the database so that they are searchable by end-users. The project is classified as secret so I'm unable to upload the specific XML or any info relating to the structire of the XML or the table I will use to insert the values into - sorry!! So, I've created an XML file with a similar structure to help people understand my predicament.
    The end-users only need to search on a subset of the total amount of columns from the table I'll insert data into, although the XML file has a lot more, so I dont need to store the other values - but I will need to store the name of the XML file (or a pointer to it so I know what XML file a particular set of values belong to) in another column of the table along with its associated values.
    I've been using the XMLTABLE function with some degree of success, although I had better succes using the XMLSEQUENCE function. However, I found out this is deprecated in 10g and replaced with XMLTABLE, so I guess it's better if I use this in case we ever need to upgrade to 11g.
    The main problem I've been having is that some elements in the XML files have multiple values for the one record when all the other records are the same. In terms of storing this in the database, I guess it would mean inserting multiple rows in the table for each element where the value differs. Here is a dumbed down XML file similar to what I've got along with the other SQL I've used:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<House>+
    +<Warehouse>+
    +<WarehouseId>1</WarehouseId>+
    +<WarehouseName>+
    +<Town>Southlake</Town>+
    +<State>Texas</State>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>25000</Area>+
    +<Docks>2</Docks>+
    +<DockType>Rear load</DockType>+
    +<WaterAccess>true</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Street</Parking>+
    +<VClearance>10</VClearance>+
    +</Warehouse>+
    +<Warehouse>+
    +<WarehouseId>2</WarehouseId>+
    +<WarehouseName>+
    +<Town>Poole</Town>+
    +<State>Dorset</State>+
    +</WarehouseName>+
    +<WarehouseName>+
    +<Town>Solihull</Town>+
    +<County>West Midlands</State>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>40000</Area>+
    +<Docks>5</Docks>+
    +<DockType>Rear load</DockType>+
    +<WaterAccess>true</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Bay</Parking>+
    +<VClearance>10</VClearance>+
    +</Warehouse>+
    +<Warehouse>+
    +<WarehouseId>3</WarehouseId>+
    +<WarehouseName>+
    +<Town>Fleet</Town>+
    +<County>Hampshire</County>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>10000</Area>+
    +<Docks>1</Docks>+
    +<DockType>Side load</DockType>+
    +<WaterAccess>false</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Bay</Parking>+
    +<VClearance>20</VClearance>+
    +</Warehouse>+
    +</House>+
    CREATE TABLE xmltest OF XMLTYPE;
    INSERT INTO xmltest
    VALUES(xmltype(bfilename('XML_DIR', 'test.xml'), nls_charset_id('AL32UTF8')));
    Consequently, I need to...
    1) Retrieve the results from the XML file for all 3 warehouses where multiple values for the same sub-element are shown as 2 rowsthe result set. (I am guessing there will be 4 rows returned as warehouse sub-2 has 2 different elements for <WarehouseName>.
    2) Build a case statement into the query so that regardless of the sub-element name (i.e State or County), it is returned into the 1 column, for instance County.
    So, if I run a query similar to the following...
    select y.WarehouseId, y.Town, y.County, y.Area
    from xmltest x, xmltable('/House/Warehouse' .......
    I would like to get results back like this...
    ID Town County Area
    1 Southlake Texas 25000
    2 Poole Dorset 40000
    2 Solihull West Midlands 40000
    3 Fleet hampshire 10000
    Sorry for the non-formatting but I hope this all makessense to someone out there with what I'm trying to do.
    I appreciate any help whatsoever because, as i said before, I'm totally new to XML and trying to read the vast amount of information there is out there on XML is all a bit daunting.
    Many thanks in advance,
    Shaun.

    Hi again,
    Thanks for keeping the post open for me. I've had a look at the post illustrating the XFileHandler package, and tried to alter it to make it fit with my XML files. To help explain things, my XML file looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE  CMF_Doc SYSTEM "CMF_Doc.dtd">
    <House>
        <Warehouse>
        <WarehouseId>1</WarehouseId>
        <WarehouseName>
           <Town>Southlake</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>House
        <WarehouseId>2</WarehouseId>
        <WarehouseName>
           <Town>Poole</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Solihull</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>40000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>3</WarehouseId>
        <WarehouseName>
           <Town>Fleet</Town>
           <County>Hampshire</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>
    <?xml version="1.0" encoding="UTF-8"?>
    <House>
        <Warehouse>
        <WarehouseId>4</WarehouseId>
        <WarehouseName>
           <Town>Dallas</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>5</WarehouseId>
        <WarehouseName>
           <Town>Dorchester</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Solihull</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>40000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>6</WarehouseId>
        <WarehouseName>
           <Town>Farnborough</Town>
           <County>Hampshire</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>
    <?xml version="1.0" encoding="UTF-8"?>
    <House>
        <Warehouse>
        <WarehouseId>7</WarehouseId>
        <WarehouseName>
           <Town>Southlake</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>8</WarehouseId>
        <WarehouseName>
           <Town>Bournemouth</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Shirley</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>30000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>9</WarehouseId>
        <WarehouseName>
           <Town>Clapham</Town>
           <County>London</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>And the XFilehandler package looks like this (I'm just trying to do a simple select only on WarehouseId & WaterAccess for the time being to keep things simple):
    create or replace package XFileHandler as
      TYPE TRECORD IS RECORD (
        WID     NUMBER(2)
      , WACCESS VARCHAR2(5)
      type TRecordTable is table of TRecord;
      function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined;
    end;
    create or replace package body XFileHandler is
      function getRows (p_directory in varchar2, p_filename in varchar2)
       return TRecordTable pipelined
      is
        nb_rec          number := 1;
        tmp_xml        clob;
        tmp_file         clob;
        rec               TRecord;
      begin
        DBMS_LOB.CREATETEMPORARY(TMP_FILE, TRUE);
        tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
        LOOP
          tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s*<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
          exit when length(tmp_xml) = 0;
          --dbms_output.put_line(tmp_rec);
          nb_rec := nb_rec + 1;
        select y.WID, y.WACCESS
        into rec.WID, rec.WACCESS
        from xmltable('/House' passing xmltype(tmp_xml)
                      columns WID NUMBER(2) PATH 'Warehouse/WarehouseId',
                                  WACCESS VARCHAR2(5) PATH 'WaterAccess') y;
          pipe row ( rec );
        end loop;
        dbms_lob.freetemporary(tmp_file);
        return;
      end;
    end;Now, when I run the query:
    select * from table(XFileHandler.getRows('XML_DIR', 'XFileHandler_test.xml'));I get the error: ORA-00600: internal error code, arguments: [17285], [0x5CFE8DC8], [4], [0x45ABE1C8], [], [], [], []
    I had a look in the dump file for anything obvious, but nothing really stands out. Is there anything obvious in my code that I'm missing or something else which you may think could be causing this error, e.g in the regular expression regexp_substr?
    Many thanks,
    Shaun.

  • How to return more than one value through RECORD TYPE from function

    Hi friends,
    i m ew in oracle forms. i want to return the two values at a time from a function but can't,Please help me. my codding is as following
    Thanks in advance.
    FUNCTION Fun_Choose_Right_cast(v_post_no payroll.post_register.post_no%TYPE) RETURN RECORD IS --here is the error 
    v_return_char CHAR NOT NULL := 'X';
    TYPE row_no_record_type IS RECORD
         (v_row_id NUMBER(3)NOT NULL := 0,
         v_char CHAR NOT NULL := 'X');
    row_no_record row_no_record_type;
    BEGIN
    IF v_post_no = 1 THEN
         IF TRUNC(v_post_no*0.15) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'A';
              --v_return_char := 'A';
         END IF;
         IF TRUNC(v_post_no*0.075) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'B';
              --v_return_char := 'B';
         END IF;
         IF TRUNC(v_post_no*0.275) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'C';
              --v_return_char := 'C';
         END IF;
         IF row_no_record_type.v_row_id = 0 AND v_char = 'X' THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'D';
         --IF v_return_char = 'X' THEN 
              --v_return_char := 'D';
         END IF;
    ELSIF(v_post_no BETWEEN 2 AND 100) THEN
         IF TRUNC(v_post_no*0.15) > TRUNC((v_post_no-1)*0.15) THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'A';
              --v_return_char := 'A';
         END IF;
         IF TRUNC(v_post_no*0.075) > TRUNC((v_post_no-1)*0.075) THEN
              IF TRUNC(v_post_no*0.15) > TRUNC((v_post_no-1)*0.15) THEN
                   row_no_record_type.v_row_id := v_post_no-1;
                   v_char := 'B';
                   --v_return_char := 'A';
              ELSE
                   row_no_record_type.v_row_id := v_post_no;
                   v_return_char := 'B';
              END IF;
         END IF;
         IF TRUNC(v_post_no*0.275) > TRUNC((v_post_no-1)*0.275) THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'C';
              --v_return_char := 'C';
         END IF;
         IF row_no_record_type.v_row_id = 0 AND v_char = 'X' THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'D';
         --IF v_return_char = 'X' THEN 
              --v_return_char := 'D';
         END IF;
         END IF;
    RETURN row_no_record;
    END;

    Posting your Oracle version is immensely helpful when asking questions (different version = different answers / functionality available).
    select * from v$version;Also, using tags will preserve the formatting of your code.
    You should likely read (a lot) about  [http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10807/05_colls.htm]
    Basically, you would need to create a PL/SQL record and reference that, OR you could create a SQL type.
    If you're looking for a 'simple' way to return many single values (no arrays) then your best bet would be a procedure with multiple OUT parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • OS X Lion DMG and Java Issues

    I have a serious issue with my Lion installation.  In the process of upgrading from Snow Leopard through 10.7 to 10.7.1 to 10.7.2 somewhere in there, Java got badly broken.  I tried re-downloading Java for Lion and reinstalling but it gives me an idi

  • Using a function within a process flow...

    Hi, I'm trying to figure out a way of using a function (or something else) to return a status before attempting to run a mapping. I'd like to have a table with all my mappings, start date, end date, status, etc. 1. SELECT status FROM table, if the ma

  • Date instead of quarters

    Hello Dears, I would like to display the date as the last day of each quarter instead of the quarter number. this is what I have, when I receive the Date from the DB I get it in the following format, Q1 2013               Q4 2012               Q3 201

  • Java plugin not going away when browser closes

    Not really a huge problem, but just a question. At my work, we've developed an insurance card scanning applet and on one of the machines we have installed it on the plugin doesn't go away once all of the browsers are closed. The machine in question i

  • Bus / Sends don't seem to be working...

    hello, i got a Logic project from a friend that im mixing and the bus / send isnt working. i'll assign it the send to a bus, pull up a reverb and it dose not work. any thoughts? thanks! Luke.