Unrelated data in master detail sections of a custom BIP  report deployed in R12 EBS

We have a custom Master Detail BIP report generated by calling XDO APIs from a custom Java concurrent program (common_report_attachment) . This Java concurrent program is called from another custom concurrent program (po_validation) that processes a batch of POs in a single concurrent request.
PO_Validation Program (processes a batch of POs per request) -> Java Concurrent Program -> BI Publisher Report APIs
BIP report generates data for master detail sections based on two sql queries (given below) that have 'where' clause based on a common external parameter "P_TRX_HDR_ID".
NOTE: No explicit data link is used NOR an output column of parent query is used in the where clause of detail query as bind parameter.
- <dataTemplate name="NAPPB2BPORPT" description="Data Template for B2B PO Report" version="1.0">
- <properties>
  <property name="xml_tag_case" value="upper" />
  <property name="db_fetch_size" value="200" />
  <property name="scalable_mode" value="on" />
  </properties>
- <parameters>
  <parameter name="P_TRX_HDR_ID" dataType="number" />
  </parameters>
- <dataQuery>
- <sqlStatement name="Q_PO_HDR">
- <![CDATA[
SELECT poh.po_number                                     PO_NUMBER
          , poh.quote_number                             QUOTE_NUMBER
          ---- other columns -----
         FROM nappcust.napp_o2i_po_headers poh
            ,napp_aso_quote_headers_v naqv
           WHERE 1=1
           AND naqv.quote_number=poh.quote_number
           AND poh.header_id = :P_TRX_HDR_ID
  ]]>
  </sqlStatement>
- <sqlStatement name="Q_LINES">
- <![CDATA[
SELECT  pol.item                                            ITEM
      , pol.partner_part_number                             PARTNER_PART_NUMBER
      -- other columns --
   FROM napp_o2i_po_lines pol
   , napp_o2i_po_headers poh
   , aso_quote_lines_all aqla
   , mtl_system_items_b msib
WHERE 1=1
  AND poh.header_id               = pol.header_id
  AND pol.header_id               = :P_TRX_HDR_ID
  AND aqla.quote_header_id        = poh.QUOTE_HEADER_ID
  AND msib.inventory_item_id      = aqla.inventory_item_id
  AND msib.organization_id        = aqla.organization_id
  AND (pol.quote_line_number       = aqla.quote_line_id
       OR pol.quote_line_number    = aqla.quote_line_id||1)
  ]]>
  -- Added for the defect 13954
  </sqlStatement>
  </dataQuery>
- <dataStructure>
- <group name="G_PO_HDR" source="Q_PO_HDR">
  <element name="PO_NUMBER" value="PO_NUMBER" />
  <element name="QUOTE_NUMBER" value="QUOTE_NUMBER" />
  --- mappings for other columns of "Q_PO_HDR"
  - <group name="G_LINES" source="Q_LINES">
  <element name="ITEM" value="ITEM" />
  <element name="PARTNER_PART_NUMBER" value="PARTNER_PART_NUMBER" />
    --- mappings for other columns of "Q_LINES"
  </group>
  </group>
  </dataStructure>
  </dataTemplate>
Issue: Sometimes when the parent concurrent request runs for a batch with multiple POs the report generated for the last PO has inconsistent data in the master and detail sections. To elaborate, the detail section is having correct data pertaining to the PO identified by the parameter "P_TRX_HDR_ID". However, the master section is having data pertaining to the previous PO processed from the same batch.
This issue is not occurring consistently and is not reproducible at will. I
'm suspecting this could be because of not having data link between the queries but confirm from someone who has experienced this issue.
Regards,
Srinath

is there any way from the page, can we pass the some values, which can identify the page level data?
if so pass the parameter to BIP report query.

Similar Messages

  • Please Help, Data Set Master/Detail with mySQL DB

    Hi...
    I installed the Data Set Master/Detail Sample (states and
    citys autopopulate) getting values from a XML file...
    when a user adds a listing in my site, it works great.. i use
    the XML file values for the states/citys and then everything is
    stored in a DB... BUT i need to do this..
    when he comes back to edit his listing, i want the Data Set
    Master/Detail to show hes values (from de DB) with the option to
    edit them, not the first XML file values.
    Thanks

    Thank you kinblas!!!!!
    I saw another post with the solution!!!
    Here it is
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1308016&highlight_key=y&keyword1=SetDefaultState
    Thanks again!

  • Error while saving data in master detail

    Dear all
    I'm new with ADF
    I have created master detail page
    master table is departments
    detail is Employee table
    The scenario is:
    Insert a record in Department
    Then insert another record in the details for an employee
    press save
    error Attribute DeptId in MyServices.EmployeesVO1 is required
    The primary key in both department and employee are sequence and are populated from a database trigger.
    please help
    note : adf 11g and jdeveloper 11.1.4
    Edited by: ta**** on Apr 13, 2011 12:54 PM

    you can try the followings:
    If you have a control on your data base, then you can change the FK constraint to be DEFERRABLE, thus the FK value will be checked after commit,
    I used this method once and it it works fine.
    to alter your FK to be DEFERRABLE
    check this:
    http://infolab.stanford.edu/~ullman/fcdb/oracle/or-triggers.html#deferring%20constraint%20checking

  • Data Template---master details query--Help

    Hi
    we are using XML Publisher attached to R12 , we are using data template ( .XML file) in data definition .
    we have a requirement for master details report. for that we have parent query and child query .the data coming to parent query should be the parameter to child query
    Exp-- Parent Query-- select empno from emp
    Child Query --select  * from dept where empno=:p_empno (p_empno =empno from Parent query ) 
    For this requirement we are creating a data template (.XML file) . we are successfully to write for the parent query, but we fails when come to child query. Please help us how it can be wrote in data template . You can send any example related to this issue.

    Parent Query - select empno as emp_no from emp
    Child Query - select * from empno where empno=:emp_no

  • Detail sections not displayed with Crystal Reports 2010 Runtime (SP1 also)

    I have migrated a VB app from RDC 9 to Crystal Reports 2010 and I'm experiencing a very strange issue.
    In a report with 6 nested groups, the detail part is splitted in 7 section, and the whole detail has the "keep together" flag activated. At runtime, some detail sections are not displayed. There is no suppress condition on the detail section. The missed sections are those near bottom of the page. I suppose that when there is no room to print the section on the page and it should go on the next page, Crystal forget to display it.
    I exported the report in Crystal format and reopened with Crystal Reports designer and the missed section are displayed.
    The same report is displayed correctly using RDC 9.
    If I show the group tree and select the missed section group, the section is correctly displayed on a separate preview page.
    I've some screenshot to better demonstrate the problem.
    I hoped SP1 will resolve the issue but unfortunately it didn't.
    Pier Alberto Guidotti

    This issue has been escalated for a fix. tracking number is TE5000325237. For anyone wanting to attach to this thread with a similar issue, please note the behavior as decribed in the TE below. If the description does not match your issue exactly, please create a new thread.
    Description - Steps to Reproduce;
    1) Run the report in the CR 2008 designer - note the second page
    2) Run the report in VS2010 app using CRVS2010 SP1:
    CrystalReportViewer1.ReportSource = <path to report>
    3) Look at page 2 and compare to page 2 from the CR2008 designer (also, see attached compare.jpg file which is a screen shot of both views) - note missing group on page 2
    4) Export to PDF, DO, RTF - same issue
    5) Print to printer using the viewer print button - same issue
    6) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    crReportDocument.PrintToPrinter(1, 1, 1, 2)
            MsgBox("Done")
    7) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    Dim rcd As ISCDReportClientDocument
            rcd = crReportDocument.ReportClientDocument
            rcd.PrintOutputController.PrintReport()
            MsgBox("Done")
    8) Export to RPT file format - view this export in the CR2008 Designer - report looks as it should
    9) Add report to the .NET2010 project. trying to view the repor tin the .NET2010 IDE results in .NET crashing.
    - Ludek

  • Spry Master Detail section not showing in IE after addObserver

    So, I have this cool thing almost done and I get it close and then it goes blank in IE - FireFox is fine, Safari PC is blank, Chrome is blank too.
    http://ryanmillsdesignstudio.com/MasterDetail.cfm
    As soon as I add the addaobserver
    <script type="text/javascript" language="javascript">
    <!--
    var dsPortfolio = new Spry.Data.XMLDataSet("Residential.xml", "gallery/album/img", {sortOnLoad: "@src", sortOrderOnLoad: "ascending"});
    //-->
    <!--
    Spry.Data.Region.addObserver('items', {
         onPostUpdate : function(observer, region){
              // slider code
    // execute your scripts when DOM is ready. this is a good habit
    $(function() {       
        // initialize scrollable
        $("div.scrollable").scrollable();   
    $(function() {
        /* execute this script block when page is ready to be scripted */
        // select items under the second scrollable and do something when they are clicked
        $("div.scrollable:eq(1) div.items div").click(function() {
            // perform the effect
            $(this).fadeOut().fadeIn();
    // custom easing called "custom"
    $.easing.custom = function (x, t, b, c, d) {
        var s = 1.70158;
        if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
        return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
    // use the custom easing
    $("div.scrollable").scrollable({easing: 'custom', speed: 700});
    $(document).ready(function(){
    $.ajax({
            type: "GET",
        url: "Residential.xml",
        dataType: "xml",
        success: function(xml) {
              //END scrollable
    }); //END observer
    </script>
    nor can I get the spry detail region work when I click on the image to show the lager image up top.

    No clue, as its something that your jQuery plugin does. Probably some CSS issue. I suggest you post that issue in the jQuery tools forum.
    And a comment about your region observer, again, there are items function that do not need to be there, they are obsoleet and even duplicate.\
    Spry.Data.Region.addObserver('items', {
         onPostUpdate : function(observer, region){
              // your slider code here
    // execute your scripts when DOM is ready. this is a good habit
    $(function() { // NOT NEEDED BECAUSE YOUR DOM IS READY WHEN THE OBSERVER FIRES
    // initialize scrollable
         $("div.scrollable").scrollable();     
    $(document).ready(function(){ // YOU ARE DOING A AJAX CALL, BUT YOU ARE DOING NOTHING WITH THE XML
    $.ajax({
            type: "GET",
         url: "Residential.xml",
         dataType: "xml",
         success: function(xml) {
                //END scrollable
    }); //END observer
    I made all useless scripts red and bold, and added the reason in comments. Sorry about the caps, forgot that it was on

  • Master/Details Relationship using View Links is not not population data

    Hi,
    I have problem in generating proper data in master/detail relationship using view links passing three parameters between two custom tables can guide me the steps and process how i will able to generate and acheive this requirement.
    very urgent
    Please suggest me

    Without further details, I'd suggest reviewing the following Section of the Fusion Developers Guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_masterdetail.htm#ADFFD758
    I've done this many times without issue.

  • Master-Detail Forms with read-only data in Master

    I have a Master-Detail form created in Portal in which the master has fields that have select access (this has corporate bio/demo data) with the detail section having full access (local data).
    When I go to create the form, it will not compile since it generate a DELETE code on master records.
    The view I have has a master corporate record with people in depts adding detail records.
    I am running Portal 3.0.9.

    Hi,
    This is a bug. The only workaround would be is to write your own custom event and write your own code to do all that is done in onsave.
    Thanks,
    Sharmila

  • Data Export from Master detail

    Hi All,
    How to export data from master detail region.
    Thanks in advance.
    Regards
    MS

    Hi MS,
    Please use following code
    OAExportBean expBean =(OAExportBean)webBean.findChildRecursive("Export");
    // set the exportDetails for this Master/Detail region.
    expBean.setExportDetails(oaPageContext,"masterRegionName","detailRegionName", "masterVuName", " detailVuName");
    Regards,
    Reetesh Sharma

  • Master detail form ... EXTREMELY URGENT

    gurus,
    here is my situation -
    i have 2 tables ...
    master ---> base_rate_type
    detail ---> base_rates
    the detail table has base rates for the base rate type in master. the detail can have multiple records but, only one active base rate.
    when the form is run, the user needs to see only the active base rate and on a click of a button the user needs to see the history of all the base rates (all inactive ones and one active).
    this is what i'm doing --
    1. created a view (base_rates_v) of all the active base rates from the detail table.
    2. created a master detail form -
    master ---> base_rate_type
    detail ---> base_rate_v
    the form shows only active records.
    3. created a custom button in the detail. the custom button displays all the records from base_rates table for that master.
    4. HERE IS THE PROBLEM -
    user can enter future base rates (active in future), but the user cannot enter another base rate which would be active rightaway, which means there will be only one base rate ACTIVE at any point of time.
    how would i validate the new base rate against the current ACTIVE BASE RATE ... ?
    i think i could do it in INSTEAD-OF TRIGGER but, then how would i convey the error message back to the user as a ALERT .... ?
    is it possible to alert the user from PL/SQL section of the Portal button ... ?
    any ideas anyone ...
    thanx a lot ...
    null

    dmitry,
    here is what i'm looking for -
    a base rate type can have multiple base rates, each having a start date and a stop date. at any point of time only one of them would be active.
    for example -
    Base rate type --> Type A
    Base Rate Start Date Stop Date
    7.5 10-jan-2001 10-feb-2001
    7 11-feb-2001 10-mar-2001
    8 11-mar-2001 9-jun-2001
    7 10-jun-2001 10-jul-2001
    5 10-oct-2001 10-nov-2001
    so in above case the second last one is active.
    the requirement is when i run the form it should show only active and future base rates. the last one in the above example is future base rate.
    so, i created a view on detail table that shows only active and future base rates. and then a master detail form (the view being the detail). i also created a custom button in the detail section, that would open a report and show all the base rates for a particular base rate type ('A' in above case).
    the VALIDATION that is required in the form is as follows -
    the form displays following -
    Base rate type --> Type A
    Base Rate Start Date Stop Date
    7 10-jun-2001 10-jul-2001
    5 10-oct-2001 10-nov-2001
    if the user enters a new base rate as foll -
    Base Rate Start Date Stop Date
    8 15-jun-2001 15-jul-2001
    then the new base rate overlaps with the existing active base rate. if it so happens i need to ALERT the user that a active base rate already exists for that period.
    how would i achieve this ... ?
    it does not matter if i validate it using JS or pl/sql.
    i was thinking JS would be difficult to use considering, the validation needs to go and check the existing base rates in the table.
    any ideas ...?
    thanx a lot ...
    null

  • Problem w/ Nested Datasets and Master/Detail regions

    Hi, I'm being using spry for a couple of applications and
    really love it. This is the first time I've tried to utilize a
    nested dataset and I'm having some difficulty loading the nested
    data. I'm getting a js 'Object does not support this property or
    method' error in IE and a 'Failed to retrieve data set (dsCreds)
    for spry:repeat' in FF.
    I've tried to map examples to my application but of course
    it's slightly different. I have a master/detail region dynamically
    generated from a .php file and part of the detail region has the
    nested dataset. Maybe (hopefully) it's something obvious. I've
    broken out a test case that demonstrates what's happing - If anyone
    could take a look I would be extremely grateful!
    The .htm file is on:
    htm
    file
    The .PHP file that generates the dynamic XML is on:
    PHP
    file
    A sample .XML (generated from the .PHP file is
    Sample XML
    file
    Even without the Nested set getting generated the
    Master/Detail section works fine.
    Thanks so much for any help!
    Edit - Apologies for all the inline css - still developing
    :)

    Hi,
    The dataset name in the NestedDataSet constructor does not go
    in quotes.
    Try var dsCreds = new Spry.Data.NestedXMLDataSet(dsAgents,
    "credentials/cred");
    and see if that helps.
    Don

  • Master-detail form not populated

    Hello,
    i have created a data block on my ELEVI table, and then another data block on ELEVI_CLASA table, table which contains (id_elevi, id_clasa, start_date, end_date). at Master-Detail section i have specified the join condition,
    ELEVI_CLASA.ID_ELEVI=ELEVI.ID
    in the WHEN-NEW-FORM-INSTANCE trigger i have
    begin
    go_block('elevi');
    execute_query;
    end;but the block ELEVI is populated, without being populated ELEVI_CLASA too (that 4 fields).. when i run the form it points to the first item from ELEVI_CLASA and tells me that "Field must be entered". Why happens this?
    Thanks

    Sorry if i'm asking this, but how should i see that last query? when i created the second data block, ELEVI_CLASA, in master-detail section i joined these 2 tables, ELEVI and ELEVI_CLASA

  • How to force multiple columns in the Details section

    Hello,
    My report has a lot of data in the Details section, but it could fit on one page if I could put it in three columns. Is there a way to do this?
    The Details section has setting: Force the new page after certain number of visible records. This would be perfect for me if instead of multiple pages I could use multiple columns.
    Thank you,
    Peter

    Thank you.
    I think I see now how to format the columns.
    Peter
    Edited by: Peter Afonin on Sep 10, 2010 2:34 PM

  • Missing records in Details section

    Post Author: seeni
    CA Forum: Deployment
    Hi,
    I've developed a report that shows some data in the details section. It works fine in my development pc.
    When deployed at the testing server it fails to show all the recors. for ex: if the query returned 15 records it only shows 2.  But when i ran the same report in my development machine it works fine and displays all the 15 reocrds.
    I'm using sql server 2005, CR ver 11.5.0.313.
    For development and testing i'm using different machine installed with sql server of same version (2005).
    Any idea abt the  fix.
    Thanks
    Seeni

    If you have the professional version of LabVIEW, select New... and then expand the Other Document Types in the create new window.

  • The layout in master detail CASE in EXCEL(SPREADSHEET) getting confused

    Hi.I'm creating many reports with Report Builder 10gr2.The layout is in PDF.Also I create those reports in EXCEL mode.(I put as the documentation says DESFORMAT=SPREADSHEET).All reports are display in EXCEL have layout the same as before as PDF in the case of tabular report or in case of simple matrix report.
    But if we have a complicate report with data group master-detail after the creation as EXCEL the layout getting confused and the columns with master source are in the right and center of the detail columns and finaly the layout is not readable as before.Is there any workaround or solution for this so the layout in EXCEL is the same as in PDF in all cases (TABULAR-MASTER DETAIL etc.)?
    Thanks in advance Panos.

    Hi.I'm creating many reports with Report Builder 10gr2.The layout is in PDF.Also I create those reports in EXCEL mode.(I put as the documentation says DESFORMAT=SPREADSHEET).All reports are display in EXCEL have layout the same as before as PDF in the case of tabular report or in case of simple matrix report.
    But if we have a complicate report with data group master-detail after the creation as EXCEL the layout getting confused and the columns with master source are in the right and center of the detail columns and finaly the layout is not readable as before.Is there any workaround or solution for this so the layout in EXCEL is the same as in PDF in all cases (TABULAR-MASTER DETAIL etc.)?
    Thanks in advance Panos.

Maybe you are looking for

  • Unable to start netweaver developer studio 7 (sp15) error attached

    Hi, when I try and start netweaver developer studio 7 (SP15) I get the error message below. I also got an error message when trying to reinstall the software about a file not registering and needing to reboot. Which I did, I have tried deleting the w

  • Reading Data from SQL Server 2000 Linked Servers

    Hello, I have a colleague who wants to read data from a OO4O driver Linked Server my FRENCH_FRANCE.US7ASCII Oracle 8i database. He's got some troubles to read data with "é", "à", and so on. They always replaced by "?" Since I have ask him to use SQL

  • Apps are not opening on my iPad AIR iOS 7.1.1

    Hello, This is Soham Roy, I recently purchased Apple iPad AIR 32 GB WiFi... After upgrading it to iOS 7.1.1 from iOS 7.0, apps are not opening... After downloading apps from App Store when I am tapping it to open... The screen stuck and then black sc

  • Problems installing on Fedora Core 3, NoClassDefFoundError:PermissionID

    Hello, I tried to install JMF on fresh Fedora Core 3 Linux installation. First I installed JDK 1.5.0. While trying to install JMF i got the exception: java.lang.NoClassDefFoundError: com/ms/security/PermissionID I've beed using JMF on RH9 linux and F

  • Validation of Adobe Form from Web Dynpro

    Hi, can you please support me with the following problem: I created an Adobe Form, which contains several mandatory fields. The Submit-button of the form is positioned in the WebDynpro-View, in which the Adobe Form is embedded, but not within the Ado