Change in master block record not cascading to detail record blocks

Using Forms [32 Bit] Version 10.1.2.2.0 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
I am encountering the following problem in my form:
I have a master block that has 2 associated detail blocks, one of which acts as a master block for another detail block:
Master ---- Detail
         \__ Detail(master) ---- DetailThe first two detail blocks are joined to the master block on 3 fields, a date, a 10 digit code and a 5 digit code.
The third detail block is joined to its master block by 4 fields, 2 dates, the 10 digit code and the 5 digit code.
The problem I am encountering is when any of the fields that the blocks are joined on are updated in the master block (they don't show up in the form for the other blocks, it auto populates them) the detail blocks are not also updating and the records are being orphaned.
So if my master block has the following data:
January 1, 2009
1234567890
abcde
And there are detail records matching this, but the master block changes too:
January 1, 2009
1234567890
edcba
Rather then the detail records being updated with this new 5 digit code, it shows up blank on the database as it cannot find detail records that match that new set of data. The records still exist in the table, but they are not updated when the master block is updated. Do i need to change the relation properties of the blocks?

It is not a good practice to update the primary key values especially when those fields act as foreign keys.
So it will be better to make those fields UPDATE_ALLOWED false.
If that is an unavoidable condition, in the pre-update trigger of header block, write the update script to update those fields and re-query the detail
Or
in key-commit
loop thru all the records in detail blk and assign values to those feilds and save it

Similar Messages

  • Header Record not repeated when detail records span to more than a page

    In RTF template,
    1. I have a for-each with code of
    <?for-each@section:G_HEADER?>
    2. Under 'for-each', I have the header record is defined in a 1 table row.
    The row property for this table is set to 'Repeat as header row at the top of each page'
    3. Under this I have another table with fields for LINES data with its own 'for-each' code <?for-each:G_LINES?>
    4. Followed by end for the above two 'for-each'
    However, when I generate the PDF output from Preview, when the lines data spans to more than one page, the header record is not repeating on the subsequent pages. Anyone has any ideas how to fix this
    My XML Publisher version is 10.1.3.4.1 Build 130. I have a sample data and the template, but not sure if I can upload here.

    user6098416 ,
    I am also facing the same Problem as yours.
    My Template layout is as follows:
    <?for-each:G_HEADER?>
    Header table
    <?for-each:G_DTL1?>
    detail table  -->  (<?for-each:G_DTL2?> Detail Fields <?end for-each?> )
    <?end for-each?>   --> End for each for G_DTL1
    <?end for-each?>   --> End for each for G_HEADERMy problem is Header Table is not repeating on each page when detail Table data goes beyound one page.
    I tried the following but its not working:
    <?template:header?>
    Header table
    <?end template?>
    <?for-each:G_HEADER?>
    <?call@inlines:header?>
    <?for-each:G_DTL1?>
    detail table  -->  (<?for-each:G_DTL2?> Detail Fields <?end for-each?> )
    <?end for-each?>   --> End for each for G_DTL1
    <?end for-each?>   --> End for each for G_HEADERI am not sure whats wrong here.
    Thanks
    Sandeep

  • How to delete the duplicated records, not just surpress the records?

    I am new to CR. Right now I am doing a project which needs CR get query from Oracle. I got the query from Oracle. There are records with duplicated fields. For example (the following only show part of fields):
    ID    body_code  
    1            10            
    2             10            
    3             15            
    4              15           
    5              15           
    6              16           
    I need to only select records (not surpress, because I will do some caluculate later) like following:
    ID         body_code        
    1             10         
    2              15
    3               16   
    I tried to creat selection fomula in fomula workshop, shown as follows:
    onlastrecord;
    <>next
    but CR said next can be evaluated. I think it must have something to do with the print-time. So what show I do to delete the duplicated records.Thank you very much.

    Ting,
    Try this:
    Insert a group on body_code.  Then create a running total called Distinct Count.  Field to summarize -> ID, Evaluate on change of group Group # 1 Body Code, and Never Reset.
    Then insert a chart in the report header:
    In the advanced layout, select body_code on change of and select Distinct Count running total in the Show values.
    I hope I understood what you're looking to accomplish.
    Z

  • Changes to master nested sequence not updating in new sequence

    Good morning - I have spent the past half hour or so searching the forum for this topic but have not found the answer. If the answer exists elsewhere, please point me in that direction; otherwise, here goes:
    I created a nested sequence by simply dragging one sequence (A) from the browser into a new sequence (B) in the timeline. Later, I went back to Seq A and replaced all of the audio (which was in-camera audio) with clean audio from a Tascam field recorder. So far so good. However, Seq B still plays the original camera audio and is not reflecting any of the changes I made to Seq A.
    I tried deleting audio render files, quitting and restarting FCP, etc., all to no avail. I have the latest versions of the OS and FCP. Any suggestions would be much appreciated.

    As you've probably found there are several ways to create/edit nests into sequences. The manual points out an advantage of using nested sequences is you can make a change and that change will be reflected in all the subsequent nests. As you've also found out, this isn't exactly true.
    The only way I've found to have communications carry forward to nests from the original sequence is if I edit the sequence into another sequence via the Canvas overlay/edit keyboard shortcuts from the Viewer. I've found dragging and dropping to do as you've found.

  • Master-details records

    Hi Everybody,
    i have a requirement to show master detail records.to show data i have 3 tables
    they are 1) Flat_Master(flat_id,flat_desc,pic)
    2)Flat_Detail(flat_id,flat_face_id,flat_loc)
    3)face_tab(face_id,face_desc)
    in my jsf page i displayed flat_master as master records and flat_detail as detail records
    here flat_detail is updatable.so for flat_face_id i created a lov choice list based on face_tab table(ADF BC level).
    so when master record i changed, my choice list is not getting changed amd even when page load also for the first record also it is not selecting..
    How can i set this choice list value programatically based on master records?
    Any ideas can you please share with me?
    thanks
    KM.
    Edited by: Mr. Murali on Sep 13, 2011 3:21 AM

    pls provide me the detailed view.,
    what ur trying to say and wat s ur use case?

  • Create Asset Master Button does not appear while creating SC.

    Dear Friends,
    We are working on SRM 5 and trying SSP with classic scenario. The issue is while creating Shopping cart for account assignment Asset, system does not display “Create Asset Master” button.
    We have maintained following configuration in our SRM system.
    1.     The authorizations object M_BBP_*** is setup and activated for Employee creating shopping cart as well as RFC user.
    2.     Attribute Asset Class (ANK) is maintained in Organization structure as per Backend asset class
    3.     Attribute Account Assignment Category (KNT) is maintained for Asset in Organization structure
    4.     GL account for product category and account assignment is maintained
    Still while creating Shopping cart for Account assignment “Asset” system does not display button “Create Asset Master”.
    Any idea which setting I am missing?
    In R/3 I am able to create Asset master while creating Purchase Requisition.
    Regards,
    Sandeep Parab

    Hi
    <u><b>Please go through this -></b></u>
    http://help.sap.com/saphelp_srm50/helpdata/en/03/340ff8a5c711d4b2d8000102ade1c8/frameset.htm
    Asset Procurement in EBP
    Re: Asset number creation in EBP ?
    Asset Procurement in SRM 5.0
    Re: Cost center in asset item
    Note 492107 - Account assignment with asset (changes in EBP)
    Note 492073 - Account assignment to asset when creating a shopping basket
    Note 897843 - Mixed account assignment types with asset in extended PO
    Note 732374 - No default values from attributes for account assignment
    Note 921767 - Default settings: Account assignment data is blank in ECS
    Note 588898 - Additional documentation for SAP Enterprise Buyer 3.0
    Note 575654 - Additional documentation for SAP Enterprise Buyer 3.5
    Note 750381 - Asset master number is not transferred from details (2)
    Note 674802 - Asset master number is not transferred from details
    Note 484020 - No Asset Class Description when creating asset master
    Note 936541 - Subsequent note to Note 543055
    Note 613671 - RAISE COMPANY_CODE_NOT_VALID with enclosure creation
    Note 455124 - Error message on unavailable asset class
    Note 579900 - Account assgnmnt screen 2000: asset class transltd incrrctly
    Note 399377 - EBP transfer of the asset text via EBP (as of Release 4.5)
    Note 493512 - EBP: Message 197 (BBP_PD) not displayed by system
    Note 423307 - Messages (BBP_PD) 193/194/195/197/202 translated incorrectly
    Note 202684 - No derived account asgnmnt information frm back end
    Regards
    - Atul

  • Object variable or With Block variable not set

    Hi - We have saved a working input schedule to a new name and modified it to use for another company.  There is a report tab to bring down the historical units from BPC, a tab to trend the history, and a tab that references the other two tabs to forecast the units into the future and send the forecasted units back up to BPC.  The input schedule that was saved to a new name and modified works fine until we attempt to Send and Refresh the active worksheet on the forecast tab.   When we do so, it indicates the number of records that will be sent, but when it attempts to Process the upload to BPC we receive an error message that indicates  Object variable or With Block variable not set  and no records are sent to BPC.
    We have retested the original input template that was copied and the original template still transfers data successfully to BPC.  We have also tried starting with a blank input template and copying in the formulas from the working template and we still get the same error message.  
    We have read several postings on this error and it seems to be a pretty general error, and so far none of the suggestions have worked for us.  One suggested checking for special characters, but the only non alpha non-numeric characters used are dashes in the values of one of the dimensions and spaces and underlines in the formulas used to forecast the units, but both of these are present and don't seem to cause any problem in the working input schedule. 
    We are currently on BPC 7.5 SP6 and using Excel 2010.
    Any help would be appreciated.

    >Note 1494285 seems to be in reference to BPC for Microsoft and we are using NetWeaver.
    Sorry, 1513080 is for NW (there's link to it in bottom of 1494285) :
    - Currently only BPC 7.5 NW SP05 and above support Office 2010
    - Note: BPC NW 7.5 NW cannot work on office 2010 (64-bits), office 2010 (64-bits) is not supported.
    Check your proxy settings (note 1592560: Getting "Error 91 Object variable or with block variable after upgrade to SP06" in the Excel Client.)
    Try 1576893: After upgrading to SP06, the EVDRE reports stop working.
    PS. Maybe I wrong, but some problems with 2010 Office clients in our system dissapear after patching to SP08.

  • How to create One Master - and 2 detail records region

    Hi,
    My requirement is to have three regions on a single page, one for master record and two for detail records.
    Also, one detail record region needs to upload images (photos) to database.
    Can some one tell me how to do this in APEX.
    Thanks
    Aali

    Hi Aali, I have the same issue in a master detail form, I don't know how to upload images in the detail form, can you help me please.
    Thanks and regards,
    Wilson

  • Filter master rows based on attributes in detail view.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

  • How to control detail records displayed after requery

    I have a master/detail form. I did not like the behavior of the screen clearing after I did a save so I added code to requery the master/detail records. There is still one behavior which I need to fix -- after I requery the master and detail records, I always get the first set of detail records, not the set of records displayed on the screen when I did the save. So if I have detail rows 40-50 displayed on the screen and do a save, the master/detail rows are requeried but I see rows 1-10 on the screen, not 40-50. Any ideas how to code around this?

    This is due in part to the fact that detaching the detail object from its master and actually deleting the detail object are two different things. To work around this, add the following in your session bean, where Departments and Employees are your master/detail objects, respectively:
    public void removeNestedEmployee(Employees entity) {
    Departments owningDept = entity.getDepartment();
    owningDept.removeDepartment(entity);
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    uow.deepMergeClone(owningDept);
    Object empWorkingCopy = uow.readObject(entity);
    uow.deleteObject(empWorkingCopy);
    uow.commit();
    Re-generate the data control for this session bean and then drag and drop this method onto your JSF page. The argument you'll pass in is the data provider for the selected employee:
    ${bindings.departmentCollectionIterator.currentRow.dataProvider}
    This will both detach the record from the owning entity, delete the record, and force a refresh of both the master and detail iterators.
    Hope this helps,
    Lynn Munsinger
    Oracle JDeveloper and ADF Product Management

  • Mulitple Detail record values in file adapter

    Hi,
    How shall I pick up a file in sender file adapter which is having two different record identifiers for their detail records. My structure is
    Header - Record identifier is HDR
    Detail - Record identifier is 10 and 30
    Trailer - Record identifier is TRL
    While configuring File adapetr I am unable to pick up Detail records with 30 because my Detail.KeyFieldvalue is only equals to 10. I know I can have a work around of picking up all the records and then in map distinguish all the different record types but I am interested in picking up all the detail records having different record identifiers.
    thanks .

    Rakesh
    Just an Idea..If you can make your source structure as
    Header
    Detail1
    Detail2
    Trailer
    Then you can give Detail1 key as 10 and Detail2 Key as 30. I think its just matter of getting records and assigning to target structure, guess i think it might work
    Just my 2 cents

  • Master-Detail Relation- Detail records not displaying

    Hi All,
    I am working forms(10g) customization for an oracle applications. our requirement is to develop a new window(screen) which should display all the related child records for the master record in the main form on a button press.
    i have developed a new database block based on a vew and provided the relation with master block, and done the required customization.
    But, when i run the form, and clicked on button, it is giving an error
    FRM-40350 Query caused no records to be retrieved.below is the code that i have written on button click
    BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
              THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');
          SET_BLOCK_PROPERTY('XXSCP_GBL_EXP_DETAIL_V',NEXT_NAVIGATION_BLOCK,'XXSCP_GBL_CUST_PEG_V');                                        
          GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
         -- fnd_message.DEBUG('before execute');
          EXECUTE_QUERY;
          :parameter.p_excep_detail := 'FALSE';
              ELSE
                   NULL;
              END IF;
              EXCEPTION
                   WHEN OTHERS
                   THEN
                   fnd_message.DEBUG('other error at button press'||SQLERRM);
              --     NULL;
    END;I am able to query records in my view from database, but not working when i run the form.
    ANy suggestion will be helpful.
    Thanks in advance,
    pavan

    Duplicate post -- Re: Master-Detail Relation- Detail records not displaying

  • Billing Block removal not updated in the sales order change log

    Hi Gurus,
    A specific Billing Block is automatically assigned to the sales document header (VBAK-FAKSK) when the net value of the sales order is negative. This is an order related billing.
    Sometimes the Billing block is getting released automatically and the Negative Invoice is getting created in the Background job run for creating the invoices. When we check the sales order, the Billing block is not existing and the removal of the billing block is not recorded in the Change Log of the sales order.In the CDHDR table also there are no details about the release of the billing block.
    This is happening only occassionally. When I tried to replicate the issue, the system is not allowing me to create the invoice as long as the billing block is there in the sales order and if I remove the block, it is recorded in the sales order change log.
    My doubt is.,
    1. How the billing block is getting released automatically?
    2. Even if the block is released,  why it is not recorded in the Change Log of the sales order?
    Looking forward your for suggestions and solutions.
    Thanks,
    Ravi

    Hi
    Did u check in sales doc. details screen.There u can block for billing.

  • BIA Master Data Index Not Updated After Change Run

    In BIA it shows master data 0VERSION table /BI0/SVERSION has 360 records which matches with the number of entries in SE16 /BI0/SVERSION.  One record was added to 0VERSION so now SE16 /BI0/SVERSION shows 361 records.  I did a change run for this infoobject 0VERSION but the BIA index for /BI0/SVERSION still only show 360 records. I expect it to show 361 records after the change run.  Is this a bug?  Thanks.

    Hi Thao,
    I see one of 3 possible scenarios:
    1) You load 0VERSION as a part of master data load (from flat file or another system). You see your 11th record in version "M" after load and then you run change run that makes "A" version of the record. ---> BIA index should be automatically updated. If not - open OSS message to SAP.
    2) You load transactional data in an InfoCube, and it has new value for characteristic 0VERSION. ---> In this case you need to run roll-up of this new load request in the InfoCube to let BIA index be in-sync.
    3) You are modifying 0VERSION manually (e.g. SQL INSERT statement), so system is not aware of new record at all. ---> You need to run the mentioned single-table-index program to update BIA index.
    Is it any of these 3 scenarios, or you have the 4th one?
    Regards,
    -Vitaliy
    Edited by: Vitaliy on Aug 19, 2008 1:59 PM

  • Validate and block vendor master while creating or changing vendor master

    Hi,
    I need to validate the vendor master country against a ztable which has list of restricted countries and block the vendor       (lfb1-sperr = 'x posting block')  if the country is found in ztable. This check should happen while creation or change of vendor master.Also need to send a mail to a distribution list. Any user exit/badi to code ?  If not, what other options ?
    Thanks,
    RK

    Hi,
    For XK01 vendor creation  you can use following badi's or user exit
    S.No   Exit Name           Description
        1   RFKRRANZ            User exits: Accounts Payable Information System
        2   SAPMF02K            User exits: Vendor master data
    S.No   Badi Name             Description
        1   VENDOR_ADDRSCR_CHG    Implementation of VENDOR_ADDRSCR_CHG by Public Sector
        2   VENDOR_ADD_DATA       /NFM/Screen in Vendor Master
        3   VENDOR_ADD_DATA       SCC Implementation of BAdi VENDOR_ADD_DATA
        4   VENDOR_ADD_DATA       MPN:  Additional Fields for Vendor Master
        5   VENDOR_ADD_DATA       US Federal Government Vendor Master Extension
        6   VENDOR_ADD_DATA       Implementation of VENDOR_ADD_DATA by Public Sector
        7   VENDOR_ADD_DATA       IS-Oil Downstream Vendor
        8   VENDOR_ADD_DATA       Retail Addition: Maintenance Authorization of Local Vendors
        9   VENDOR_ADD_DATA_BI    MPN:  Additional fields for vendor master
       10   VENDOR_ADD_DATA_BI    US Federal Government:  BADI Implementation for Add On BI
       11   VENDOR_ADD_DATA_BI    IS-PS Additional Data for Vendors (Batch-Input and ALE)
       12   VENDOR_ADD_DATA_BI    IS-OIL :  Implementation for Add On BI
       13   VENDOR_ADD_DATA_CS    /NFM/VENDOR_DATA
       14   VENDOR_ADD_DATA_CS    SCC Implementation of BAdi VENDOR_ADD_DATA_CS
       15   VENDOR_ADD_DATA_CS    MPN: Additional Fields for Vendor Master
       16   VENDOR_ADD_DATA_CS    US Fed Gov't Vendor Master Data Extensions
       17   VENDOR_ADD_DATA_CS    Implementation of VENDOR_ADD_DATA_CS by Public Sector
       18   VENDOR_ADD_DATA_CS    IS-Oil Vendor Master
       19   VENDOR_ADD_DATA_CS    Retail Enhancement: Maint. Authorization of Local Vendors
       20   VENDOR_FIELDSTATUS    Control of vendor master fields for CCR vendors
    Hope it helps.
    Regards
    Hiren K.Chitalia

Maybe you are looking for