Detail block is not populated

Hi,
Please suggest me best way to do it. Create a form with two blocks
1.Master block1 has items client,dc,sku,fromlocation,tolocation which is fetching data
from RFlog table in RFWH schema
2.Second block has items client,dc,sku,location which is fetching data from Inv_detail table in MPROD schema.
These tables are not linked but we can join them using client,dc,sku columns.When click on row in Master
block then corresponding data from Inv_detail table should display in detail block.
When there is value in Fromlocation(tolocation will be Null) then detail should show same location and viceversa tolocation.
problem is there is no way to find in inv_detail which is tolocation or fromlocation.
sample date
Master block
Client        Dc        Sku      fromlocation   tolocation
10             ABC     Pen         001            
10             ABC     Pen                            002
Detail block
Client      DC     Sku     Location
10         ABC    Pen       001
10         ABC    Pen       002My approach: Created master data block based on RFlog then created detail data block based on Inv_detail and unchecked auto-join ,created link with client,dc and sku. in detail block where clause used below query
:inv_location.location=:rf_blk.fromlocation
OR :inv_location.location=:rf_blk.tolocationProblem: when ran this form it shows data in all fields of master-data-block and Client,DC,Sku field of detail DB
there is no data in location field. In detail client,dc and sku item proeprty palatte has COPY_value_item = Mblock.client
respectively.
Thanks a lot in advance
sandy
Edited by: sandy162 on Jul 20, 2009 3:53 PM

Let me clarify:
Your master block rf_blk and detail block inv_location.
New non-database item location_m added in Master block. This item can be Visible=No and canvas = null (Just don't forget to put formula in this one)
Do not specify any Where Clause in Master block nor in Detail Block.
Manually create relation and specify Join Condition like this:
inv_location.location=rf_blk.location_m
AND inv_location.client=rf_blk.client
AND inv_location.dc=rf_blk.dc
AND inv_location.sku=rf_blk.skuNow you should see that property "Copy value From Item" in inv_location.location is set to rf_blk.location_m, inv_location.client set to copy from rf_blk.client etc.

Similar Messages

  • PRE_INSERT IN DETAIL BLOCK IS NOT WORKING

    Hello,
    I Have a master detail form and on the detail block I need to insert record in the mtl_transaction_interface table, I have placed the query in the pre-insert of detail block but this query is not executing, if I execute the same query on SQL Prompt then its working fine, while in form , In the pre-insert of detail block its not inserting record in the interface table, how can i check for any problem, I am sure there is no problem with the query, I just cant find the exact event where to place this query, I am also using the COMMIT at the end as well,, but no luck

    Hi,
    You detail block is based on based on which table? If your detail block is based on mtl_transaction_interface table you can use your forms to create a new record and just using the save button will do the work. If its not the case the pre-insert will work only when you add a new record to the detail block.
    Check if your pre-insert trigger is fired with a message so you know pre-insert event is happening.
    Regards
    Yoonas

  • Data in detailed block is not getting populated

    I have created 3 blocks-: block1, block2 and block3
    I have created two relations
    1st - between block1 and block2 (block1 is master and block2 is detailed)
    2nd - between block1 and block3 (block1 is master and block3 is detailed)
    Now, on the canvas I place a text item block1.text_item1 (involved in relation) from block1,
    and a text item block3.text_item3 from block3 (this too involved in relation) block3
    when I execute the form and I query on master block that is on block1.text_item1, data in detail block that is in block3.text_item3 do not get populated.
    Now I place a text item block2.text_item2(involved in the relation) from block2 on the same canvas
    Now I again execute the form and query on the master block that is on block1.text_item1, this time data in all three blocks got populated.
    I want to place items only from block1 and block3 at present. Could you please tell me how can I do this?
    Regards

    No, I am not getting such error. Only data is not getting populated.
    If I remove item from block3 and place item from block2, then also the data is getting populated.
    Item from block1+ Item from block2 -> Data is getting populated
    Item from block1+ Item from block3 -> Data is not getting populated
    Item from block1+ Item from block2+Item from block3 -> Data is getting populated
    Regards

  • 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

  • Detail blocks in tab pages not queried automatically

    Hi
    I have some generated forms with the following layout:
    - in the content canvas top, the master block
    - below the master block (in the same content canvas), a tab canvas with 2 (or more) pages with detail blocks
    When I query the master block, the detail blocks are not automatically queried, the user must navigate to them to make the automatic query work.
    I found out that it is something related to the blocks not being in the same canvas. But visually, they are in the same canvas, I would like that the detail blocks were queried automatically.
    Is this possible? I think this layout is very common and useful, I am sure Designer has some way to do this.
    Thanks
    Luis Cabral

    Hi
    I found it - I just set BSCSCP preference correctly, and now it works fine!

  • Querying a detail block

    I have a tabbed canvas. one has some baisc employee info. the other has some detail. even tho the two tabs derive from the same table, i have a master-detail relationship. but i'm no able to do queries in the detail tab. eg: if the phone numebr field if i enter query '203%' and execute, i only see the display on this block but the master block is not populated.
    any help would be appreciated.
    lalit

    Hi Lalit
    If the Both the blocks are based on same table then manually create relationship
    b/w them , like go_block(detail) and Execute_query with the where clause .
    If default relation ship is created
    using wizard then check out for the coding .
    Otherwise there should not be any problem .
    With Regards
    Harish
    null

  • Business area not populated in Accounting Document

    Gurus
    Business Area showing in Billing document, item detail tab but not populated in Accounting Document BSEG/GSBER.
    We have upgraded 4.5b to ECC6.
    regards
    imdad

    Hi:
               This happens in instances if one invoice contains multiple business areas, then only blank space will appear in accounting document for business areas. If this is the case then invoice split should happen based on business area. Invoice split can be done through VOFM data transfer - billing document.
    However if invoice contains only one Business Area then please check in IMG --> Sales and Distribution --> Basic Function --> Account Assignment / costing --> Business Area Account Assignment....check  whether you have assigned the  Business Area to Sales Area to Rule "1".
    Regards

  • Populating the detail block

    Hi Gurus,
    I have a master block and a detail block. the detail block should be always disabled for user entry.
    Master block is based on table X and detail block on Table Y.
    In the master block there is a field A . When this filed is entered with a value, when it is in insert mode, I have to execute a procedure which populates the detail block (the expected data has to be derived from another table based on the value of field A. But if Block A is in query mode the detail block is populated throu relationship.
    Now having the detail block as insert not allowed and update not allowed, my procedure is not able to populate the block. But if I changed insert allowed yes and update allowed =yes, the procedure populates the block. But I make the user enter values on the block which is not entertained. Please help me how can I achieve this?
    Thanks and Regards,

    try setting INSERT/UPDATE allowed = 'NO' for the all the detail fields, rather than
    block. should work.

  • User details are not populating in access request

    Hello All,
    We have configured GRC 10 with LDAP and we are able to search the users in LDAP tcode(find option) and in the access request. But when i select the user and click on ok in the access request, user information is not populating to user details tab. I have followed the SAP Standard doc and configuration is fine. When i select data source as SAP system, user details are population as expected. But when i use LDAP as data source, i am having the issue. I hope this is an field mapping issue but i tried all different options but no solution i found. Kindly help me with your expert suggestions.
    Field mapping is as follows:
    LASTNAME
    SN
    FIRSTNAME
    GIVENNAME
    USERID
    SAMACCOUNTNAME
    ROLE_NAME
    NAME
    MEMBER_OF
    MEMBEROF
    EMAIL
    MAIL
    MANAGERID
    MANAGER
    Regards,
    Jai Reddy.

    I know the path, but how to check it? is it using metaverse search?
    Look at the Runs. Are they succeeding, or failing to connect?
    Remove the Bit 17 and try again.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Multiple master blocks populating the same detail blocks

    Hey guys. Im doing something a little weirder than I usually do but I can't get it to work correctly and im wondering if any of you have accomplished this before.
    I have a call center application which processes applications by either the application or by follow up. The application and follow up are each a block by themselves located on a separate pages on a tab canvas. Both these blocks are master blocks to the detail blocks which would be user_phones, user_addresses, user_bank_accounts, etc. The idea is I can use either page of the tabs and flip through either the follow up, or application master block and have it populate the user tables according to the user_id found on the master blocks. I figured I could use a when-new-block-instance trigger to switch off which block fires the on-populate-details trigger.
    The problem is.... complicated. If I go to the follow up block and execute query, it brings back the right information on the detail block. The strange thing is it seems like when I move the cursor to a different record on the same block, forms is almost setting a SET_BLOCK_PROPERTY DEFAULT_WHERE action. This is un-noticeable until i go to the other master detail block. When I start using the applications block, it seems like all the detail records actually MATCH the user_id that the cursor was on in the follow up block...
    phew! thats a lot of description for such a strange problem..
    Anyways. Anyone encountered this before? Has anyone ever built a two master block form to populate the same detail block? Is it possible? I haven't found a thread in the forum about this subject..
    Any help would be great. Thanks in advance :)

    Having one detail block for two master blocks was never a use case that we considered for Forms. It sounds like you are trying to make a many-to-many relationship work with two master blocks. I suggest you think about having an intermediate block (hidden or not) that drives the detail block and make each master block drive that intermediate block instead of driving the detail block directly.

  • Managed Server not populating while installation in SOA server detail

    I am facing an issue in installation of AIA. In the screen SOA server detail, managed server is not populating in dropdown option. I have installed Weblogic middle ware fusion in which admin server and managed server is running. Both are configured for by own machine and clustering is not done
    I want to know these things.
    1) Is there any problem with weblogic installation or configuration. Managed server and admin server is running fine
    2) Do i need to configure node management to map admin server and managed server in fusion middleware?
    3) Is there any compatibility mode issue? I am running the setup as administrator in window 7 OS for 32bit windows
    Please help me in resolving this issue.
    Thanks

    Check for the following in your target soa server:
    1. SOA components are correctly deployed.
    2. soa-infra deployment is running and healthy.
    3. node manager is able to start and stop the managed server properly.

  • 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

  • Fill in detail block automatically when master block is populated

    Hi,
    I have a form with 4 blocks. 2 are on a regular canvas, the other 2 are on tab canvases. When the first block is populated all the other blocks should be populated as well. This works for the one block which is not on the tab canvas. The other block are only populated the moment they get focus. (the cursor moves in).
    Workaround would be to work with execute_query but in which trigger would I need to place this? (POST_QUERY, ON_FETCH do not work. WHEN_NEW_RECORD_INSTANCE works with plenty of errors)
    Best Regards,
    Kris

    Is this a new form written by you and you know what code it contains ?
    If it an existing form written or maintained by other people, you ought to check for code you are unaware of.
    Using find and replace pl/sql to search for SET_RELATION_PROPERTY might be worth doing for a start.

  • Autofill detail block based on query

    Hi experts/Gurus
    I have 3 tables
    1-pr_mst
    2-pr_trn
    3-hr_mst
    Em_code is a common key between theses tables.
    on my form table 1 and 2 are the base main tables, due to the relationship, when i enter em_code on table 1 and query it, it shows data on both the table. Its a normal behavior in Master Detail block in forms.
    When user enter em_code at form and there is no data found in table 2, obviously it show blank data block related to the table 2 and shows data in table 1 block, now i want an em_code details which stores in the table 3 automatically load in memory and populated in detail block.
    Is it possible ? and how can i do this. suggest me a best or anybody can give example on emp/dept
    regards
    Anwer

    I'm not sure if i understand you correctly. You want to have an additional relation between block 1 and block 3? If so, just create it, each block can have more than one relation as master.

  • Searching master block based on value in detail block

    I have two blocks on a form. A master block for purchase orders and a detail block for the line items. I need to provide users with the ability to search the purchase orders based on the values entered into the detail block (line items), during the query entry. I am considering to check to see which block the cursor resides by using the :SYSTEM.CURSOR_BLOCK variable, then retrieving the value from the current item and running a query, using that query. The problem is that I am not very familiar with Forms and do not know how to implement my idea. Any ideas?
    null

    I copied you an example from metalink. Hope it will help.
    Doc ID:
    Note:109583.1
    Subject:
    How to query a Master record from a Detail Block
    Type:
    BULLETIN
    Status:
    REVIEWED
    Content Type:
    TEXT/PLAIN
    Creation Date:
    22-MAY-2000
    Last Revision Date:
    03-AUG-2001
    PURPOSE
    ------- To query a master record from a detail record. DESCRIPTION
    =========== The user would like to enter a query criteria in the detail block
    and then query the master record based on the above user input. SOLUTION
    ======== Create the master and detail blocks and the relationship in the usual
    manner. We will consider here the blocks DEPT and EMP based on the
    SCOTT schema. 1. Create a KEY-ENTQRY trigger at the block level of the detail block
    (EMP) and add the following code in it : GO_BLOCK('dept');
    CLEAR_BLOCK(no_commit);
    GO_BLOCK('emp');
    ENTER_QUERY; 2. Create a KEY-EXEQRY trigger for the detail block and add
    this : EXECUTE_QUERY;
    :global.deptno := :emp.deptno;
    :global.flag := 'T';
    GO_BLOCK('dept'); This will store the value of the deptno (primary key) in a global variable
    :global.deptno and set another global variable :global.flag to 'T'. This
    will be explained as we progress. 3. Create a WHEN-NEW-RECORD-INSTANCE trigger for the detail block
    and add the following : -- This is used to populate the MASTER block with the corresponding
    -- record whenever the user navigates through all the records in the
    -- DETAIL block if get_record_property(:system.cursor_record,:system.cursor_block,status) = 'QUERY' then
    SELECT rowid,deptno,dname,loc
    INTO :dept.rowid,:dept.deptno,:dept.dname,:dept.loc
    FROM dept
    WHERE deptno = :emp.deptno; -- This is to set the status of the record populated
    -- to QUERY and not to create a new record SET_RECORD_PROPERTY(1,'dept',status,QUERY_STATUS);
    end if; 4. Create a WHEN-NEW-BLOCK-INSTANCE trigger for the master block again
    and add this : if :global.flag = 'T' then -- set the variable to a different value
    :global.flag := 'F';
    :dept.deptno := :global.deptno; -- This will query the master table for the record based on the
    -- deptno of the detail table which is stored in :global.deptno -- For ex: if an employee of department 10 has been queried in
    -- the detail, then the global.deptno will have the value 10,
    -- which is used in the query below to fetch the master record. SELECT rowid,deptno,dname,loc
    INTO :dept.rowid,:dept.deptno,:dept.dname,:dept.loc
    FROM dept
    WHERE deptno = :global.deptno;
    set_record_property(:system.cursor_record,'dept',status,QUERY_STATUS);
    GO_BLOCK('emp'); end if; EXPLANATION
    =========== Actually in the above method we are using the base table blocks as a
    non-base table block when we query the master from detail. We are
    displaying the master record fetched from the table based on
    the query supplied in the detail. So after the fetch, if we clear the
    block or form then we get a "Do you want to save the changes you have made"
    alert. So in order to supress this while entering a normal master-detail
    query, we have created the global variable, :global.flag. There is a limitation though, if you query detail records and then
    navigate to the master block and then press the down arrow( i.e.,
    navigate to the next record) and then presses the up arrow to
    navigate back to the same record, then the detail records that
    were originally populated will change and a new set of records will
    get displayed. This is because the normal master-detail query is
    taking place during MASTER record navigation. This can be controlled by creating a flag (global variable) and setting
    its value and thus preventing the user from navigating to the next master
    record. Do the following : 1) In the KEY-EXEQRY trigger of the detail add the following :global.control_master := 1; 2) Create a KEY-EXEQRY for the master and add this : :global.control_master := 0;
    EXECUTE_QUERY; 3) Create a KEY-DOWN in the master with the following in it: IF :global.control_master <> 1 THEN
    down;
    END IF; Declare all the global variables before running the Form. RELATED DOCUMENTS
    Note:611.1

Maybe you are looking for

  • Performance Tuning Section in Business Blueprint

    Dear Gurus, I am at a client location doing a blueprint. We are in the closure level of the business blueprint and one of the sections need to be added is the Performance Tuning. Can anybody suggest me what would be content to be added in the Perform

  • Contract Output

    Dears, We have created (by copying output type 'NEU') a new message type 'ZNEU' for outline agreements.  However it is not showing in ME32K.  Any idea why it is not coming? Thanks,

  • Pasted Images are Fuzzy in Captivate

    Hey all, I am trying to paste images taken using "snag-it" into a captivate presentation.  When the image pastes into the presentaiton, Captivate asks if I want to resize.  I have tried all of the sizes (100%, 50%, cropped, etc.) but the image always

  • Units/currencies

    hi friends, how to handle units and currencies info in bpc7nw? I heard with single account dimension, with properties(units/currencies)? what is best practice? how frequently full optimization and lite optimization are used in case daily loads are ha

  • Sales order line item status as open

    Hi, Can someone let me know the factors depending i on which the  status of a line item of sales order will be as OPEN.