Master/Detail - master in table,details in pop-up per row, commit all at 1

Somewhat similar to the table as master with a clickable row to another page w/ the details, I'm trying the following:
Master (Parent) - View Object based on multitable view, therefore, not updateable. This is presented in a table control.
Column pushbutton (bound to setCurrentRowWithKeyValue and showPopUpBehavior) opens a pop-up where a detail (child) table is presented in a table(grid). In addition, I'd like the option to be able to save all changes at once - meaning user can click on row 1, enter values in pop-up, then row 2, enter values in pop-up for that row, etc.. then commit after.
Detail is linked to master via view link.
Pop-up opens, then comes back w/ blank table. Then closes soon after. In jdeveloper, log says:
SEVERE: The original view root was not set.Ideas? possible?
jdeveloper 11.1.1.1.0 / ADF RC

In researching this problem before my post I searched the OTN discussion groups for "Currency String" and nothing of relevance came up. I posted my question and after Frank got involved, in an attempt to review my post, I searched for "CurrencyString" and the following post came up: currencyString in JSP-page based on a sql-only ViewObject
This post contained the solution that fixed my problem. Now I can move forward with my ADF development. Thanks Frank and Duncan Mills, I will never again forget the importance of key attributes.

Similar Messages

  • Master Child tables how to get the latest rows from both

    Hi,
    Need some help with the sql. I have two tables Master & Child. In my Master table I have multiple rows for the same record and in the child table also multiple rows for the same master row how can I get the latest one's from both.
    For example Data in my Master table looks like
    CONT_ID                  SEQ_NUM        DESCRIPTION
    1                         189             Update 2
    1                         188             Update 1
    1                         187              NewNow in the child table for the same CONT_ID I may have the following rows
    CONT_ID                   UPDATED_DATE                                     STATUS
    1                        3/16/2010 2:19:01.552700 PM                          P
    1                        3/16/2010 12:29:01.552700 PM                         A
    1                        3/16/2010 12:29:01.552700 PM                         P
    1                        3/16/2010 12:19:01.552700 PM                         NIn my final query how can I get the row with seq_num 189 as it's the latest in Master table and from child table the row with status of P as it's the latest one based on the time. Here is the query i have but it returns the latest row from the child table only and basically repeats the master table rows as opposed to one row that is latest from both:
    Thanks

    Hi,
    You can use the analytic ROW_NUMKBER function to find the latest row for each cont_id in each table:
    WITH     got_m_rnum     AS
         SELECT     cont_id,     seq_num,     description
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          seq_num     DESC
                           ) AS m_rnum
         FROM    master_table
    --     WHERE     ...     -- any filtering goes here
    ,     got_c_rnum     AS
         SELECT     cont_id, updated_date,     status
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          updated_date     DESC
                           ) AS c_rnum
         FROM    child_table
    --     WHERE     ...     -- any filtering goes here
    SELECT     m.cont_id,     m.seq_num,     m.description
    ,     c.updated_date,     c.status
    FROM     got_m_rnum     m
    JOIN     got_c_rnum     c     ON     m.cont_id     = c.cont_id
                        AND     m.m_rnum     = c.c_rnum
                        AND     m.m_rnum     = 1
    ;If you'd like to post CREATE TABLE and INSERT statements for the sample data, then I could test this.
    If there happens to be a tie for the latest row (say, there are only two rows in the child_table with a certain cont_id, and both have exactly the same updated_date), then this query will arbitrarily choose one of them as the latest.

  • Problem with a master tree table and its detail table

    Hello,
    I have a master treetable showing on a page and a separated detail table below the treetable on the same page.
    To make the things clear, three tables are involved here: one master and one detail table to compose the treetable, and another detail table for the current selected row in the treetable.
    Things usually work fine when operating on the detail table. However, if I create or delete some rows from the detail table and press Rollback, some unwanted behaviour happens.
    In facts, on Rollback, both the master treetable and the detail table are redrawn on the page.
    However, once refreshed, despite the current selected row in the treetable still appears as the one before clicking Rollback (suppose not the first one), the detail table always correspond to the first row of the master treetable.
    Is there a way to either make the current selected row the first one the master treetable, or (preferred) to make detail table reflect the visible current selected row in the treetable?
    thanks

    jabr,
    ok . i will go through
    but if u don mine here john n timo says for me. pls check it.
    on rollback
    create insert options
    Edited by: Erp on Oct 12, 2011 5:14 AM
    Edited by: Erp on Oct 12, 2011 5:15 AM

  • Master advance table with two detail advanced tables

    Hi All,
    I have this in mind..please let me know if that is possible.
    I want to have two detail advanced tables within a master advance table.
    The two detail advance tables will be wrapped in a subtab layout.
    My questions are:
    Can a master table have two details tables?
    Can a advance table have two inner advance tables?
    Your help or ideas would be valuable to me.
    Thank you,
    Arun

    Hi OAF Gurus
    I just want to know whether this is possible or not.
    I have created two view links and three view objects
    Table in Table in Table
    Table1--> Table2 --> Table3
    One problem i am facing when i click on Show link of Table1,it displays details of Table2 and when i click Show link of Table2,it displays details of Table3.
    but when i click on Hide of Table1, it says
    oracle.jbo.NoDefException: JBO-25002: Definition <Table3 View Object> of type Attribute not found
    Could you please anybody throw some pointers on this?
    Thanks
    Hitesh

  • Bc4j:RowScope on a Master Detail page always returns 0 rows for detail

    Hi,
    I have a problem with a Master Detail page that is called from another page. The Master Detail page has two View Objects, Budgets and Budget Versions. These are linked properly in BC4J and when I use these VOs together I can navigate through the Budgets (master) and the Budget Versions (details) are populated correctly.
    However, I want to navigate to this page from another page which lists all possible Budgets. I pass the key of the selected Budget to the Master Detail page and the correct Budget is displayed, BUT the Budget Versions are NOT displayed - I get 0 rows returned.
    The mechanism I use to pass the selected Budget ID to my Master Detail page is:
    <ctrl:property name="key">
    <ctrl:selection name="ViewTable" key="key"/>
    </ctrl:property>
    My BC4J Registry is set up as follows:
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="BudgetModule"
    defFullName="BudgetPackage.BudgetPackageModule"
    configName="BudgetPackageModuleLocal"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="ItiBudgetsView1">
    <bc4j:rowDef name="CurrentBudgetRow" usesCurrency="True">
    <bc4j:propertyKey name="key"/>
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    <bc4j:viewObjectDef name="ItiBudgetVersionsView2" rangeSize="15"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    I then use
    <bc4j:rowScope name="CurrentBudgetRow">
    to get the correct Budget row in my master VO. But this always returns 0 rows in my detail VO. If I comment out the rowScope element, I don't get the desired Budget row, but I do get the correct Budget Version rows displayed. Is the rowScope element on the Budget VO interfering with the Budget Version VO?
    Hope this is not too confusing!!
    Thanks,
    Steve

    Steve,
    I tried to create a comparable set of two pages and initially ran into the same problem. I just realized that my issue (which I hope is yours too) is that the rootAppModule name was different across my two pages. This led to each page having its own application module instance, so the currency was different on each page.
    By changing all of my pages to use the same application module name (in the registryDef, in the appModuleScope tags in the page, and in the findAppModule tags in the handlers), I resolved this problem.
    My event handler to go to the master/detail page from the master page, FYI, looks like this:
      <event name="details" >
       <bc4j:findRootAppModule name="MyApp" >
        <!-- establish the ViewObject scope -->
        <bc4j:findViewObject name="CustomersView1" >
         <!-- find the selected Row -->
         <bc4j:findRowByKey>
          <bc4j:keyBinding>
           <bc4j:selectionKey name="viewTable" key="key" />
          </bc4j:keyBinding>
         </bc4j:findRowByKey>
        </bc4j:findViewObject>
        <bc4j:executeQuery />
        <go name="OrdersByCustomer_View" redirect="true" />
       </bc4j:findRootAppModule>                     
      </event>Hope this helps.
    -brian
    UIX Team

  • What are the master data tables for 'Plant'?

    Hi friends,
    What are the master data tables for 'Plant' that contain below data?:
    PLANT
    NAME1
    NAME2
    LANGUAGE
    HOUSE_NUM_STREET
    PO_BOX
    POSTAL_CODE
    CITY
    COUNTRY_KEY
    REGION
    COUNTRY_CODE
    CITY_CODE
    TIME_ZONE
    TAX_JURISDICTION
    FACTORY_CALENDAR
    Thanks a lot!

    Hi,
    Plz try out following tables for your requirement.
    TOO1W
    ADRC
    J_1IMOCOMP
    T001W :  werks TYPE t001w-werks, "PLANT
            name1 TYPE t001w-name1, "PLANT DESCRIPTION
            adrnr TYPE t001w-adrnr, "PLANT ADDRESS NUMBER
    ADRC:  addrnumber TYPE adrc-addrnumber,  "ADDRESS NUMBER
             str_suppl1 TYPE adrc-str_suppl1,  "STREET2
             str_suppl2  TYPE adrc-str_suppl2, "STREET3
             street TYPE adrc-street,          "STREET
             city1 TYPE adrc-city1,            "CITY
             post_code1 TYPE adrc-post_code1,  "CITY POSTAL CODE
             post_code2 TYPE adrc-post_code2,  "PO Box postal code
             tel_number TYPE adrc-tel_number,  "TELEPHONE NUMBER
             fax_number TYPE adrc-fax_number,  "FAX NUMBER
             str_suppl3 TYPE adrc-str_suppl3,  "STREET4
             location TYPE adrc-location,      "STREET5
             city2 TYPE adrc-city2,  
    For Tax Details :
    J_1IMOCOMP :   werks TYPE j_1imocomp-werks,
                              j_1icstno TYPE j_1imocomp-j_1icstno,
                              j_1ilstno TYPE j_1imocomp-j_1ilstno,
    Hope this will help.
    Regards,
    Archana

  • Join Master Data table with fact table

    Hello gurus.
    I have a requirement on a characteristic. I have to obtain the description of those values that are not filled with data in the cube, the example looks like this:
    Data in the cube:
    Characteristic 1 |  charactersitic 2 |  value
    AU                           HPDV              200
    TB                           OPPG              500
    TC                           HPDV              900
    TR                           OPMR             400
                                   HPDV              300
                                   OPMR             200
                                   OPPG             100
    Master Data Table:
                                Description
    HPDV    AU       Auditoria  
    OPPG    TB       Servicios Logisticos
    HPDV     TC       Occidente
    OPMR    TR       Oriente
    HPDV     AI        Punta Norte
    OPGS    CV       Escandón
    HPDV    QR       Barquisimeto
    HPDV    MM      Valencia
    HPDV    DT        Barcelona
    I need to display in the query only the description of the characterstic whose data is not in the cube, according to the example the values that are missing in the cube are:
    HPDV     AI        Punta Norte
    OPGS    CV       Escandón
    HPDV    QR       Barquisimeto
    HPDV    MM      Valencia
    HPDV    DT        Barcelona
    How can i achive this ?? 
    Thank you in advance.

    Hi Guillermo,
    I think you are trying to achieve this: To display characteristic values for which no transaction data or only low values exist for the selected period.
    See here for the solution details:
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/d1603d13b5c72ee10000000a114084/content.htm
    Hope this helps...

  • How to refresh a child table each time I select a row in the master table

    I've 2 tables, a master table and a child table.
    When i click on each row of the master table, the child table needs to be refreshed.
    I've given the id of table1(master) as the CreatePartialTrigger value in table2(child).
    The refresh does happen but it happens in an inconsistent manner.
    For eg. in my scenario,
    1.I add a row to the master table
    2.Click on the create button of the child table, this opens a popup and i enter a few values and the child row gets added.
    3.Now when i toggle between the rows in my master table, the refresh does not happen and I see duplicate rows in the child table but in the datebase only one record gets stamped..
    Is there any clean way to refresh the child table based on the row selection in the master table.
    Kindly let me know.
    Table1
    <fnd:applicationsTable tableId="table">
    <af:table value="#{bindings.Actions1.collectionModel}" var="row"
    rows="#{bindings.Actions1.rangeSize}"
    fetchSize="#{bindings.Actions1.rangeSize}"
    selectedRowKeys="#{bindings.Actions1.collectionModel.selectedRow}"
    selectionListener="#{bindings.Actions1.collectionModel.makeCurrent}"
    rowSelection="single" id="table1"
    contentDelivery="immediate" editingMode="clickToEdit"
    columnSelection="multiple" autoHeightRows="10"
    summary="#{HcmActionsTopGenBundle['Header.Action.ActionCode']}" rowBandingInterval="0"
    styleClass="AFStretchWidth"
    partialTriggers="::create ::createMenuItem">
    <af:column id="column1" headerText=" " width="5"
    rowHeader="true"/>
    <af:column sortProperty="ActionCode" sortable="true"
    headerText="#{bindings.Actions1.hints.ActionCode.label}" width="150"
    showRequired="true" rendered="true" id="c1">
    <af:inputText value="#{row.bindings.ActionCode.inputValue}"
    label="#{bindings.Actions1.hints.ActionCode.label}"
    required="#{bindings.Actions1.hints.ActionCode.mandatory}"
    columns="#{bindings.Actions1.hints.ActionCode.displayWidth}"
    maximumLength="#{bindings.Actions1.hints.ActionCode.precision}"
    shortDesc="#{bindings.Actions1.hints.ActionCode.tooltip}" id="it1"
    autoSubmit="true"
    />
    </af:column>
    </fnd:applicationsTable>
    Table 2
    <fnd:applicationsTable tableId="table2"
    styleClass="AFStretchWidth"
    id="AT2"
    actionsMenuRendered="false"
    secondaryToolbarRendered="false"
    createPatternType="secondaryWindow"
    createText="#{hcmActionsBundle['Action.Add']}"
    createAction="#{backingBeanScope.SetupUiBean.invokeCreatePopUp}"
    createPopupId="create1"
    editEnabled="false"
    createPartialTriggers="table1"

    Hi Frank,
    As you mentioned I already have the id of my master table which is 'table1' as the createPartialTrigger in my child table.
    In my case there are 2 scenarios.
    I add a row to the Master table and when I click on the create button on the chile table, I get a pop with 'Yes' , 'No' and 'Cancel'
    Scenario1
    If I click 'Yes' , then I get another popup where I enter the values for the ActionReasonsActionReasonUsagesVO which is a combination of the ActionReasonsEO and the ActionReasonUsagesEO, now when I click on OK, a new row gets created in the ActionReasonsActionReasonUsagesVO.
    In the above scenario things work fine, as I toggle between the rows in the Master table the child table gets refreshed.
    Scenario2
    If I click 'No' I get a search popup where I can query up the ActionReasonsVO and select existing data,on clicking OK, the values get mapped from the ActionReasonsVO to the ActionReasonsActionReasonUsagesVO.
    Now when I toggle between the rows in my master table, I observe 2 types of behaviors
    1.Due to incorrect refresh, the child table rows vanishes from the UI.
    2.There are duplicate rows in the child table.
    The issue is specific to this scenario where the refresh of the child table rows does not happen correctly.
    Edited by: 944295 on Apr 18, 2013 5:16 PM

  • How to find the number of entries in a master data table

    Hi Experts,
    I am trying to find the entries in 0CUSTOMER master data.
    BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
    I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .

    Hi Dev,
    Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Abap code not working  - deleting based on master data table information

    Hi,
    I wrote a piece of code earlier which is working and during test we found out that it will be hard for the support guys to maintain because it was hard coded and there is possibility that users will include more code nums in the future
    sample code
    DELETE it_source WHERE /M/SOURCE EQ 'USA' AND
    /M/CODENUM NE '0999' AND
    /MCODENUM NE '0888' AND.
    Now I created a new InfoObject master data so that the support people can maintain the source and code number manually.
    master data table - the codenum is the key.
    XCODENUM    XSOURCE
    0999               IND01
    0888               IND01
    now I wrote this routine all the data gets deleted.
    tables /M/PGICTABLE.
    Data tab like /M/PGICTABLE occurs 0 with header line.
    Select * from /M/PGICTABLE into table tab where objvers = 'A'.
    if sy-subrc = 0.
    LOOP at tab.
    DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM NE tab-XCODENUM.
    ENDLOOP.
    Endif.
    But when I chage the sign to EQ, I get opposite values , Not what I require.
    DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM EQ tab-XCODENUM.
    Cube table that I want to extract from
    /M/SOURCE                             /M/CODENUM
    IND01                                       0999
    IND01                                       0888
    IND01                                       0555
    IND01                                       0444
    FRF01                                      0111
    I want to only the rows where the /M/CODENUM = 0999 and 0888 and i would also need FRF101
    and the rows in bold  should be deleted.
    thanks
    Edited by: Bhat Vaidya on Jun 17, 2010 12:38 PM

    It's obvious why it deletes all the records. Debug & get your answer i wont spoon feed
    Anyways on to achieve your requirement try this code:
    DATA:
          r_srce TYPE RANGE OF char5, "Range Table for Source
          s_srce LIKE LINE OF r_srce,
          r_code TYPE RANGE OF numc04,"Range table for Code
          s_code LIKE LINE OF r_code.
    s_srce-sign = s_code-sign = 'I'.
    s_srce-option = s_code-option = 'EQ'.
    * Populate the range tables using /M/PGICTABLE
    LOOP AT itab INTO wa.
      s_code-low = wa1-code.
      s_srce-low = wa1-srce.
      APPEND: s_code TO r_code,
              s_srce TO r_srce.
    ENDLOOP.
    DELETE ADJACENT DUPLICATES FROM:
    r_code COMPARING ALL FIELDS,
    r_srce COMPARING ALL FIELDS.
    * Delete from Cube
    DELETE it_source WHERE srce IN r_srce AND code IN r_code.

  • M or P master data table  to be used in routine read statement

    Hi
      I update of a DSO i had a requirment for a routine to get the Attribute of a Infoobject.
      So which master data table  M or P table i need to use in my read statement and why
    Thanks

    Use M table as it it the view on time dependent(P table) and time independent(Q table) tables.
    M table is view on time dependent and time independent attributes, you can see characteristic values and all the attributes for the Characteristic.
    The tables that go in the view are the Master Data Table and the Time-Dependent Master Data Table. If the characteristic only has time-dependent attributes, only the time-dependent master data table goes in. If the characteristic has only non-time-dependent attributes, only the master data table goes in.

  • Which master data table to be used to get attribute value

    Hi all,
    I am writing  routine in update rule to get data for one master data attribute of master data 0customer.
    But I am cofused in choosing master data table to get data.
    There are two master data table in master data tab of  0customer characteristics.
    1. View of MstrDtaTbls  :-  /BI0/MCUSTOMER
    2. Master data tab          :-  /BI0/PCUSTOMER
    Suggest me which one to take .
    Although I have tried with 2 one and it is working fine.

    Hi,
    If the attribute is not time-dependent please use  /BI0/PCUSTOMER, else use /BIC/QRCOSTCTR.
    Just remember P table and Q table.
    Regards,
    Frank

  • How are attribute and text master data tables linked in SAP R/3?

    Hello,
    how are attribute and text master data tables linked in SAP R/3?
    Most tables with attribute master data like T001 for company codes,
    have a text master data table T001T (add "T" to table name).
    When looking at the content of table T001 via transaction se11,
    the text are automatically joined.
    But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
    has no text table TVBURT), but in se11 you get texts. There is an address
    link in TVBUR, but the Name1, etc. are empty.
    a) Where are the text stored?
    b) How does the system know of the link?
    Hope someone can help!
    Best regards
    Thomas

    Hi Thomas
    The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
    The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
    -> Foreing key with table TVBUR
    -> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
    ->Cardinality-> 1-:CN
    It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
    U can find out the text table of master table by SE11: GoTo->Text Table
    U can fined some information in table DD08L.
    Max

  • How to create time dependant master data table in R/3?

    Hi gurus,
             I am new to BW.I try to execute the 'Time dependant Attribute' into BW.in my scenario my source system must give me the data like "salesrep ID,Manager ID,Date to,Date from,Sales region". I like to know how to define this master data in SAP R/3(Source system)?. Give me the steps to create master data table in R/3.
    Manager may change periodically.even i need to maintain all the changes in R/3.
    Thanks & Regards,
    Bharath

    built-in type method means.,
    there is no need to create data element and domain objects seperately for each and every field of the table which ever you are creating, system will implicitly fix the size based on the data type you selected....

  • Insert data in a user master data Table

    Hi every body,
    I've created a User Master data table named 'MyTable'. i want to add data to this table but there is an error which occur : 'to generate this. First Define the Numbering Series in the Administration Module'.  I want to add data to this table using C# code,  without using UDO.
    Is it possible?
    Thank you for helping me
    Haifa

    Hi,
    thank you for your answer.
    I didn't understand very well, i will ask the question in an other way.
    it is possible to insert records in a master data table by using the code C#
    I mean :
                usertable = _Company.UserTables.Item(tablename);
                usertable.Code = code;
                usertable.Name = name;
                usertable.UserFields.Fields.Item("U_ContCode").Value = ContCode;
                usertable.UserFields.Fields.Item("U_CardCode").Value = CardCode;
                lRetCode = usertable.Add();
    without encountering the problem of numbering series.
    Haifa

Maybe you are looking for

  • Uploading picture to the material master data

    Hi friends, I searched the forum about this subject, however there are mostly answers related to retail sector. I'd like to learn if ECC 6.0 could only itself is able to this. I mean is ECC 6.0 enough to add pictures to material master data or is the

  • How much longer will I be ignored/unhappy with my phone service??

    I have been a Verizon customer for 12 years and have been tricked into staying with them once again, lied to, misled, and nobody will do a thing about it. I didn't want to resign a 2 year contract but the plan that was shown to me had the best covera

  • CL_HTTP_CLIENT, Typo3/Mittwald server

    We are using CL_HTTP_CLIENT to access a service on the web (another part of the same project). In other words, the SAP-system acts as a client. The "other side" is using Typo3/Mittwald technology (German). If I understand correctly, Typo3 is a PHP-ba

  • Template - box popup behavior - help

    Follow up from this discussion: http://groups.google.com/group/macromedia.dreamweaver/browse_thread/t... Hej Murray Long time ago you helped me with this message to show but NOW I had to remove it from the Internet because the website which is functi

  • TabNavigator: Adding Tab Dynamic

    Hi, I would like to create an application that is using a TabNavigator to show different information (tabs) when user press different buttons. I create a button and call a function to add a tab into tabnavigator to show a custom control (base on Pane