How to model parent child relationship with DPL? @Transient?

Hello All,
I want to model a parent entity object with a collection of child entities:
@Entity
public class Parent{
@PrimaryKey
String uuid;
List<Child> children;
@Entity
public class Child{
@PrimaryKey
String id;
I know that the DPL won't support automatic persistence where it'll recursively go through my parent bean and persist my children with one call. Is there a way of applying the equivalent to JPA's @Transient annotation on "children" so I can persist the children manually and have the engine ignore the collection?
If not and I want to return to the user a Parent with a List named "children," do I have to create a new object which is identical to Parent, but doesn't have the BDB annotations and manually assemble everything? If possible, I'd like to avoid defining redundant objects.
Thanks in advance,
Steven
Harvard Children's Hospital Informatics Program
Edited by: JavaGeek_Boston on Oct 29, 2008 2:22 PM

Hi Steven,
The definition of persistence is here:
http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/persist/model/Entity.html
And includes this: "All non-transient instance fields of an entity class, as well as its superclasses and subclasses, are persistent. static and transient fields are not persistent."
So you can use the Java transient keyword. If that isn't practical because you're using transient in a different way for Java serialization, see the JE @NotPersistent annotation.
In general a parent-child relationship between entities is implemented almost as you've described, but with a parentId secondary key in the Child to index all children by their parent. This enables a fast lookup of children by their parent ID.
I suggest looking at this javadoc:
http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/persist/SecondaryIndex.html
as it describes all types of entity relationships and the trade-offs involved. The department-employee relationship in these examples is a parent-child relationship.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to create Parent Child relationship of Assets

    Hi All
    can any one provide the solution for the below mention requirment.
    Problem Description: How to create Parent Child relationship of Assets in below case.
    1. If asset Category of Child assets are different but both parent & child assets are already capitalized.
    2. If asset Category of Child assets are same but both parent & child assets are already capitalized.
    3. If asset Category of Child assets are same for new assets.

    Hi All
    can any one provide the solution for the below mention requirment.
    Problem Description: How to create Parent Child relationship of Assets in below case.
    1. If asset Category of Child assets are different but both parent & child assets are already capitalized.
    2. If asset Category of Child assets are same but both parent & child assets are already capitalized.
    3. If asset Category of Child assets are same for new assets.

  • How to achieve parent-child relationship using self join?

    my table structure is as follows
    parent child name
    -1     1     A1
    1     2     A2
    1     3     A3
    how to achieve the hierarchy model using self join. this can be easily achieved using "connect by prior". but how to achieve the same using self join?

    Hi,
    Yes, that's definitely possible. If you only need to display two levels from the hierarchy, a self-join is a good option. Make it an outer join if you need to show everyone on one level, regardless of whether they have a match on the other level or not; for example, if you want the output:
    child_name     child_id     parent_name     parent_id
    A1          1
    A2          2          A1          1
    A3          3          A1          1It's good that you posted some sample data. Now post the results you want from that data, and your query (what you think is the best attempt you've made so far). If you haven't tried anything so far, then look at some other simple self-join to get ideas.

  • How to know 'parent-child relationship' of equipments

    Hello experts,
    I am currently having a problem here. How can I know if a certain equipment has a child/subordinate equipemt under it? for example, I typed in the value 000000345534 for the 'ILOAN' field in EQUZ table to get it's EQUNR and HEQUI. Now, where can I know if it has a child equipment under it? for example:
    12610 (highest primary)
    12611
    12612 (subordinate and primary)
      12613
    Also, I have to display it in the report output like this:
    ASSET    PARENT   DESCRIPTION  LOCATION  NETBOOK VALUE

    Hi,
    I had developed  a code wherein I had a similar scenario.Please refer the same. Will give you an idea.
    FORM link.
      SKIP 2.
      ULINE.
      WRITE : / 'Link b/w Transform No and Conn. No' COLOR 6
      INTENSIFIED ON.
      ULINE.
      TABLES:
            iflo.
      INCLUDE <line>.
    **Data type declaration
      DATA: BEGIN OF h_iflo_sel OCCURS 0,
                tplnr LIKE iflo-tplnr.
      DATA: END OF h_iflo_sel.
      DATA :  i_iloa1 LIKE TABLE OF iloa WITH HEADER LINE,
              i_iloa2 LIKE TABLE OF iloa WITH HEADER LINE.
      DATA : BEGIN OF t_inet,
              kante LIKE inet-kante,
              eqnach LIKE inet-eqnach,
              END OF t_inet.
      DATA: BEGIN OF h_iflo_tab OCCURS 0.
              INCLUDE STRUCTURE iflo.
      DATA: END OF h_iflo_tab.
    *For Final Display.
      DATA : BEGIN OF i_final OCCURS 0,
                data(30) TYPE c,
                desc(40) TYPE c,
              END OF i_final.
      DATA : BEGIN OF i_finalitab OCCURS 0,
                eqvon LIKE inet-eqvon,
                eqnach LIKE inet-eqnach,
                eqtyp LIKE equi-eqtyp,
                eqktx LIKE eqkt-eqktx,
                tplnr LIKE iflo-tplnr,
                pltxt LIKE iflo-pltxt,
                kunum LIKE zconnection-kunum,
                END OF i_finalitab.
      DATA : BEGIN OF i_eqkt OCCURS 0.
              INCLUDE STRUCTURE eqkt.
      DATA : END OF i_eqkt.
      DATA : i_iflo LIKE TABLE OF iflo WITH HEADER LINE,
             i_zconn LIKE TABLE OF zconnection WITH HEADER LINE,
             i_kna1 LIKE TABLE OF kna1 WITH HEADER LINE,
             i_equi LIKE TABLE OF equi WITH HEADER LINE,
             i_inet LIKE TABLE OF inet WITH HEADER LINE.
      DATA : var TYPE i VALUE 2,
             count TYPE i VALUE 0,
             tempcount TYPE i VALUE 0,
             lv_index LIKE sy-tabix,
             flag(5) TYPE c VALUE 'ODD' .
      DATA :  kante LIKE inet-kante,
                eqvon LIKE inet-eqvon,
                eqnach LIKE inet-eqnach.
      DATA: equnr LIKE zconnection-equnr.
    *Fetching the transformer no and the Connection no
      SELECT a~kante a~eqvon a~eqnach
              INTO CORRESPONDING FIELDS OF TABLE i_inet
              FROM ( inet AS a
              INNER JOIN zconnection AS b ON a~eqnach = b~equnr )
              WHERE a~eqvon = dy_equnr.
      LOOP AT i_inet.
        MOVE i_inet-eqvon TO i_finalitab-eqvon.
        MOVE i_inet-eqnach TO i_finalitab-eqnach.
        APPEND i_finalitab.
      ENDLOOP.
      LOOP AT i_finalitab.
    *Fetching the Functional Location for Connection number
        CALL FUNCTION 'EQUIPMENT_READ'
             EXPORTING
                  equi_no = i_finalitab-eqnach
             IMPORTING
                  eqkt    = i_eqkt
                  iloa    = i_iloa1.
        MOVE i_iloa1-tplnr TO i_finalitab-tplnr.
        MOVE i_eqkt-eqktx TO i_finalitab-eqktx.
        MODIFY i_finalitab.
      ENDLOOP.
    * Fetching desc of func location of conn no
      SELECT * FROM iflo
                      INTO TABLE i_iflo
                      FOR ALL ENTRIES IN i_finalitab
                      WHERE tplnr = i_finalitab-tplnr.
      LOOP AT i_finalitab.
        READ TABLE i_iflo WITH KEY tplnr = i_finalitab-tplnr.
        IF sy-subrc = 0 .
          MOVE i_iflo-pltxt TO i_finalitab-pltxt.
          MODIFY i_finalitab.
        ENDIF.
      ENDLOOP.
    * Fetching the customer no's for each connection no in Z table
      SELECT   * FROM zconnection
                    INTO TABLE i_zconn
                    FOR ALL ENTRIES IN i_finalitab
                    WHERE equnr = i_finalitab-eqnach.
      LOOP AT i_finalitab.
        lv_index = lv_index + 1.
        READ TABLE i_zconn WITH KEY equnr = i_finalitab-eqnach.
        IF sy-subrc = 0.
          MOVE i_zconn-kunum TO i_finalitab-kunum.
          MODIFY i_finalitab.
        ENDIF.
      ENDLOOP.
    *Fetching the equipment category for each conn no
      SELECT * FROM equi
               INTO TABLE i_equi
               FOR ALL ENTRIES IN i_finalitab
               WHERE equnr = i_finalitab-eqnach.
      LOOP AT i_finalitab.
        READ TABLE i_equi WITH KEY equnr = i_finalitab-eqnach.
        IF sy-subrc = 0.
          MOVE i_equi-eqtyp TO i_finalitab-eqtyp.
          MODIFY i_finalitab.
        ENDIF.
      ENDLOOP.
    *Fetching the Functional Location for Transformer number
      CALL FUNCTION 'EQUIPMENT_READ'
           EXPORTING
                equi_no = dy_equnr
           IMPORTING
                eqkt    = i_eqkt
                iloa    = i_iloa2.
    *For Fetching the description of the func loc. of Transformer Number
      REFRESH i_iflo.
      SELECT SINGLE * FROM iflo
                      INTO i_iflo
                      WHERE tplnr = i_iloa2-tplnr.
    *Moving into the final internal table .
      MOVE dy_equnr TO i_final-data.
      MOVE i_eqkt-eqktx TO i_final-desc.
      APPEND i_final.
      MOVE i_iloa2-tplnr TO i_final-data.
      MOVE i_iflo-pltxt TO i_final-desc.
      APPEND i_final.
    *For finding the superior functional location.
      REFRESH h_iflo_sel.
      MOVE i_iloa2-tplnr TO h_iflo_sel-tplnr.
      APPEND h_iflo_sel.
    *Finding the Superior Func. Location until it reaches the top.
      h_iflo_tab-tplma = '1'.
      DO 100 TIMES.
        IF h_iflo_tab-tplma <> ' '.
          REFRESH h_iflo_tab.
          CALL FUNCTION 'FUNC_LOCATION_ARRAY'
               EXPORTING
                    selfield     = 'TPLNR'
                    spras        = sy-langu
                    tabstructure = 'IFLO'
               TABLES
                    iflo_sel     = h_iflo_sel
                    iflo_tab     = h_iflo_tab.
          IF h_iflo_tab-tplma <> ' '.
    *To find the above func .location
            REFRESH h_iflo_sel.
            MOVE h_iflo_tab-tplma TO h_iflo_sel-tplnr.
            APPEND h_iflo_sel.
    *For Fetching the description of the func loc. of Transformer Number
            REFRESH i_iflo.
            SELECT SINGLE * FROM iflo
                            INTO i_iflo
                            WHERE tplnr =  h_iflo_tab-tplma.
    *Moving the values into the final internal table
            MOVE h_iflo_tab-tplma TO i_final-data.
            MOVE i_iflo-pltxt TO i_final-desc.
            APPEND i_final.
          ENDIF.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    *Displaying in a tree structure
      IF NOT i_final[] IS INITIAL.
        DESCRIBE TABLE i_final LINES count.
        tempcount = count.
        DO tempcount TIMES.
          READ TABLE i_final INDEX count.
          count = count - 1.
          WRITE: i_final-data COLOR 4 INTENSIFIED ON.
          WRITE: i_final-desc.
          IF count <> 0.
            WRITE:/var sy-vline NO-GAP.
            ULINE :/var(8).
            var = var + 9.
          ENDIF.
        ENDDO.
      ENDIF.
      SKIP.
    * Displaying the Customer no's.
      WRITE : /'Transformer no'COLOR 7 INTENSIFIED ON,18(18)
            'Connection no'COLOR 7 INTENSIFIED ON,37(3)'Cat'COLOR 7
            INTENSIFIED ON,41(40)'Connection desc'COLOR 7 INTENSIFIED ON,
            81(42) 'Connection Object'COLOR 7 INTENSIFIED ON,123(40)
           'Conn Obj Desc'COLOR 7 INTENSIFIED ON,
            163(10)'Customer'COLOR 7 INTENSIFIED ON.
      IF NOT i_finalitab[]  IS INITIAL.
        DESCRIBE TABLE i_finalitab LINES count.
        tempcount = count.
        DO tempcount TIMES.
          READ TABLE i_finalitab INDEX count.
          count = count - 1.
          SKIP.
      WRITE: / i_finalitab-eqvon COLOR 4 INTENSIFIED ON, i_finalitab-eqnach
               COLOR 5 INTENSIFIED ON,i_finalitab-eqtyp COLOR 4 INTENSIFIED
                         ON, i_finalitab-eqktx, i_finalitab-tplnr
        ,i_finalitab-pltxt
        ,i_finalitab-kunum.
        ENDDO.
      ENDIF.
    ENDFORM.
    Regards,
    Gayathri

  • Parent Child Relationships with code

    Hi
    I've a requirement where I need to provide the user with a dashboard and 3 links. Each link creates an item in 3 other lists X,Y,Z but reference List A, so creating a relationships. I plan to create the items using JSOM and add foreign keys in X,Y,Z.
    Normally, I create lookups but in this case I think its better to create items using code because:
    When creating an item in X,Y,Z the lookup(ID) needs to be set automatically to the ID of LIST A. I tried edited the Newform.aspx but it gets messy as all XYZ forms need editing, hence thinking of a coded solution.
    Is this method the right approach as it doesn't allow any form of integrity as a normal lookup does ?
    Thanks

    Hi,
    As my understanding, you want to add three links that each link creates an item in 3 other list X,Y,Z, and also when creating items in the three lists, the look up column will be set automatically.
    What did you mean "I tried edited the Newform.aspx but it gets messy as all XYZ forms need editing"?
    I am wondering whether you try to set the value of the lookup column using OOB method.
    I suggest you customize these lists using InfoPath, and use rules to set the value of the lookup column.
    There are useful posts for your reference:
    http://www.bizsupportonline.net/infopath2003/autofill-fields-infopath-dropdown-selection-secondary-data-source.htm
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/ebc9e578-eeeb-4902-8bbc-ac0c9536c3d5/populate-infopath-form-with-dropdown-list-of-ids?forum=sharepointcustomizationlegacy
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Material with Parent Child Relationship

    Hi,
    Need some advise.
    We have this scenario, use purchased materials (.e.g Computer bundle with mouse, monitor and keyboard). We need to track these components separetely at different cost and update inventory with serial no.
    Upon creating Sales Order for the above materials, how to we ensure that the full set of materials is picked and delivered. As each components has it own material code.
    Is there possible to link up these materials with some sort of parent child relationship? And how to handle it in SAP MM and SD moduld.
    Thank you.

    Peck,
    Unless I am missing something, this is not a Materials Management issue, it is a Sales/Distribution issue.
    I think the easiest way is to check the 'complete dlv.' (Complete Delivery) checkbox on the Sales order (VA02>Sales Tab).
    When this flag is set, none of the items in the sales order can be confirmed unless all of them are confirmed.  All confirmations must be for the same day.  No delivery can be created unless all items are deliverable.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/560602545a11d1a7020000e829fd11/frameset.htm
    Rgds,
    DB49

  • How to use GL Parent Child relationships in Discoverer?

    Subject: How to used GL Parent Child relationships in Discoverer?
    How to use GL Parent Child relationships in Discoverer?
    Please let me know how to incorporate the parent -child relation ships exsiting in GL Accouting flexfield Segments in Discoverer for drill downs? we have GL - BIS views installed.
    How to create the specific Parent -child relationship hierarchies in Discoverer from the FND_* tables?
    Please help.
    Thanks.
    KS.

    Hi,
    I'm also trying to implement this. If you have come any further in solving this any hints would be much appreciated...
    regards,
    AJ

  • How to output the outline parent-child relationship using a report script?

    I'd like to extract the outline's dimension members with it's parent-child relationship using a report script. Anybody can provide a sample script? Thanks.
    Example:
    DimensionX
    -----MemberX
    ----------ChildX
    Output:
    Dimension X MemberX
    MemberX ChildX
    Edited by: obelisk on Jan 11, 2010 5:16 PM

    Sorry a report script won't do it. You have two options
    1. Use at Essbase Outline API to walk the outline and get it for you
    2. Use the Outline extractor available from Applied Olap (it is a free download). It can be run interactively of as a bat file.
    Frankly, I would rather use 2 since I don't have to code it myself

  • How do I identify parent/child relationship

    How do I identify parent/child relationship in Designer?

    turn your object into a symbol, and place multiple instances of it on the artboard, when you edit the symbol all instances will update.

  • Update column with parent child relationships

    Hi,
    i need to update a column with parent child relationship.
    Please provide the possible queries..
    Gobi..

    Hi,
    Depending of the objective and the size of the tables, personally, for maintenance purposes, I preferred duplicate the parent with the new column value and duplicate the child records with this same new value. Other alternative is disable the foreign key temporarily.
    You can take a look on this link below too:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5773459616034
    Cheers

  • Reverse Engineering fails to "identify" parent - child relationship

    Using Reverse Engineering I obtained two classes - visual compapesence clearly shows that one is inherited from another.
    I wish I could copy and paste individual "class Diagrams' for each of those two to demonstrate my point ...
    How I could merge those two class diagrams together and "force"
    to recognize "parent" <-> child relationship /

    On possible solution is to create a diagram in each pacakge that was reverse engineered.
    I agree with peter, that a single diagram would not be useful when revese engineering a large project. When diagram get that large, it is hard to see more than a couple of model elements at one time. While we do have the Navigate Link tool, it is still painful to navigate around the diagram. If you printed a diagram that big, it would take up an entire wall.
    It is hard to determine what diagrams are needed to explain a software project. For this reason, we have tried to make it easy to build diagrams. Peter, mentioned the first mechanism. Create Diagram From Selected (CDFS) was designed to allow the user to select the model elements that need to populate a diagram. When performing CDFS the diagram will be populated, Relationship Discovery will be executed, and the diagram will be layed out.
    Another approach is to create a dependency diagram. You can select a model element, and create a dependency diagram. The contents of a dependency diagram will be the model elements that the selected model element uses. For example, if the model element generalizes from another model element, the super class will be present on the diagram. If another model elements extends the selected model element, the subclass will not be represented on the dependency diagram.
    Another diagram creation tool that might be needed is a inheritance diagram creator. An inheritance diagram creator, would make it very easy to see model element super classes, implemented interfaces, and the subclasses.
    I hope this helps.

  • Help needed in retrieving parent child relationship values

    Hi,
    I have a requirement to get parent child relationship values as below.
    Ex: Address table
    cont cont_code state state_code
    C1 10 S1 1
    C1 10 S2 2
    C1 10 S3 3
    C2 20 S4 4
    C2 20 S5 5
    C3 30 S6 6
    C3 30 S7 7
    C3 30 S8 8
    I want a result of country/state and corresponding code like below.
    corresponding states should be displayed under each country with some space appended to it.
    Geography code
    C1 10
    S1 1
    S2 2
    S3 3
    C2 20
    S4 4
    S5 5
    C3 30
    S6 6
    S7 7
    S8 8
    I am using oracle 10g version.
    Thanks in advance.

    Hi,
    When you post formatted text (like your output) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    I think you're saying that you want this output:GEOGRAPHY CODE
    C1 10
    S1 1
    S2 2
    S3 3
    C2 20
    S4 4
    S5 5
    C3 30
    S6 6
    S7 7
    S8 8
    If so, UNION, as Hoek suggested, is a good way.
    GROUP BY ROLLUP is more efficient, but harder to understand:SELECT     CASE
              WHEN GROUPING (state) = 1
              THEN cont
              ELSE ' ' || state
         END          AS geography
    ,      CASE
              WHEN GROUPING (state) = 1
              THEN MAX (cont_code)
              ELSE MAX (state_code)
         END          AS code
    FROM     t
    GROUP BY cont
    ,      ROLLUP (state)
    ORDER BY cont
    ,      state          NULLS FIRST
    By the way, this looks like a bad table design.
    In a relational database, the fact that the name 'C1' belongs to cont_code 10 should only be stored in one place.  You have the same information on 3 separate rows.
    Also, if 'C1' and 'S1' are both names, they should probably be in the same column, so that (to give just one example) you can find the information about 'x1' without knowing if it is a cont or a state.
    A better design would be.NAME     CODE     PARENT     DSCR
    ====     ====     ======     ====
    C1     10          CONT
    S1     1     10     STATE
    S2     2     10     STATE
    S3     3     10     STATE
    C2     20          CONT
    S4     4     20     STATE
    S5     5     20     STATE
    C3     30          CONT
    S6     6     30     STATE
    S7     7     30     STATE
    S8     8     30     STATE
    If the data is this simple, then the dscr column isn't needed.  Whether parent is NULL or not tells whether the rows represents a cont or a state.
    To get the results you want from a table like this, you could use CONNECT BY.  Using either UNION or ROLLUP, you have to know, at the time you write the query, how many levels there will be in the parent-child tree, and the length of the code is proportional to that depth, and the table has to be changed if you ever need to add another level.  CONNECT BY can handle any number of levels, and the length and complexity of the code is the same whether you have just 2 levels (countries and strates), or 7 levels (continents, regions, countiries, states, districts, cities and neighborhoods) or 72 levels.  The table doesn't need any more columns, no matter how deep the tree gets.
    Edited by: Frank Kulash on Sep 16, 2010 11:54 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to handle parent-child dimension in OWB?????

    i have a dimension have many levels,and the amount of levels is varing,so i cannot use the wizard to define my dimension ,seems with OWB i can only define dimension with certain amount of levels.......
    my dimension data is stored with this format:
    child parent
    Los Angles US
    US WORLD
    it is called a parent-child relation ,how can i define dimension with parent-child relation witn OWB...
    Can OWB do it ?????

    i have a dimension have many levels,and the amount of levels is varing,so i cannot use the wizard to define my dimension ,seems with OWB i can only define dimension with certain amount of levels.......
    my dimension data is stored with this format:
    child parent
    Los Angles US
    US WORLD
    it is called a parent-child relation ,how can i define dimension with parent-child relation witn OWB...
    Can OWB do it ????? You must define a dimension, define the dimension levels and the hierarchy inside the dimension (a hierarchy can have as many levels as you want, parent-child relationship is a normal hierarchy concept - no rocket science here). Then you have to map the data source for the dimension levels appropriately. Please refer to the user manual, chapter 4 ("Defining dimensianal targets") for details.
    Regards:
    Igor

  • Parent-Child Relationships in Essbase Studio

    In Essbase Studio, I am defining a hierarchy in which a parent member (Wholesaler) is from one dimension table and child member (Rep) is from another. When I preview this hierarchy or build an outline to include it, a few of the Reps that should rollup to a certain Wholesaler are missing. They are not dropped, but Essbase Studio just never recognizes these Reps as being children of that Wholesaler in the first place. However, if I run a sql query against the source data mart with the correct joins, these missing reps do show up in the records of that Wholesaler. Also, the missing Reps are showing up fine in the hierarchy preview as long as I don't make them children of anything in the Wholesaler dim. So Essbase Studio is able to see these Reps, but just can't figure out how they are related to the given Wholesaler. Again, this is only happening for about 10% of the Reps for the Wholesaler. Other Reps are showing up fine in the parent-child relationship.
    In the source data mart, I don't see any NULLs or anything amiss in the records for the missing Reps. What other reasons would Essbase Studio not recognize a particular joined record?

    it really does sound like a join issue. You say if you just load the children without the parent, they load, but if you associte them to the parent, they don't. You might try when creating the joins to do a full outter join to see if they load and to what.
    One other thing you could try would be to create a user defined table that has the join in it. I've found data atype issues in joins from different tables before. Studio is very pickey about this
    Edited by: GlennS_3 on Oct 20, 2010 9:12 AM

  • Question about File Content Conversion and parent-child relationships...

    Hello!
         I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one.  I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario.  The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content. 
    The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
    Here is the flat (non-XML) file layout that is coming into the file adapter:
    FileHeader
    DocumentHeader
    DocumentItem
    DocumentHeader
    DocumentItem
    and so on (until the number of documents is complete
    I would really like the content to be converted so that the line items stay under their parent document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader>
       <ItemHeader>
       </ItemHeader>
    </DocumentHeader>
    <DocumentHeader>
       <ItemHeader>
      </ItemHeader>
    </DocumentHeader>
    But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <ItemHeader></ItemHeader>
    Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
    Thanks,
    John

    Hi,
    Check some links on FCC.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

Maybe you are looking for

  • How to create a secondary list of alv grid inside the function module

    Hi All, My requirement is to create a RFC function module to display the alv grid of one table. i have created that. while clicking on the records of the alv it should open the secondary list of another table. My problem is it is not fetching the rec

  • I deleted all my photos...

    Hi everyone, after several hours of editing work on 200 photos, i wanted to delete 1 photo and guess what... i had all the photos selected and so i deleted them all Before this, i didn't quit Lightroom so it didn't create a backup of these last edits

  • Process Chain - Unable to delete overlapping request

    Hi Gurus I'm in the mid of creating process chain to load transaction data  in which I need to delete the previous load that loaded in using the same DTP previously In the process chain , i have included a process "Delete Overlapping Request from Inf

  • Changing directory structure & song file locations: iTunes query

    I have an external hard-drive which I have loaded with thousands of songs over the years but have never really used it. Now, I want to organise my iTunes songs but my limited knowledge has brought me to a stop... Please help! On the external HDD, son

  • Report to screen

    Anybody can help ? I send a report to screen and I want to turn off the print button and the menu file. How can I do it ? what parameter should I pass ? Thank.